Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2007, 09:04 AM
Member
 
Join Date: Nov 2007
Posts: 1
mustahsan4u is on a distinguished road
Problem in Text Editor
Hello Dear
I am new in this forum. I have a text editor running in an applet.
I am using JTextPane and the problem is that if any character is pressed with out spacebar that character string moves outside the Textpane but never moves to next line until a space bar or enter key is pressed. So how to move the cursor to next line (Same as it works in MS WORD)
Please solve the problem. Thanks
Mustahsan Saeed

Last edited by mustahsan4u : 11-20-2007 at 09:38 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-21-2007, 09:29 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,189
hardwired is on a distinguished road
Code:
import javax.swing.*; public class Test { public static void main(String[] args) { System.setProperty("swing.aatext", "true"); JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(new JScrollPane(new JTextPane())); f.setSize(500,400); f.setLocation(200,200); f.setVisible(true); } }
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 03-26-2008, 03:34 PM
Member
 
Join Date: Mar 2008
Posts: 1
Claud is on a distinguished road
New member
Hello,

My name is claud!
I am new in Java. The reason I want to start with JAVA is that I want to build an application.

Thank you for all the information
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem trying to display the contents of a text file in JTextArea warship New To Java 1 04-01-2008 03:07 AM
Text Area problem mcal New To Java 0 02-11-2008 10:42 PM
Editor for java thirdy_veritech Other IDEs 6 12-24-2007 07:17 AM
problem trying to view the contents of a text file in JTextArea warship AWT / Swing 0 07-17-2007 04:30 PM
Xml Editor Marty XML 3 05-11-2007 10:27 AM


All times are GMT +3. The time now is 12:04 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org