JTextPane

Can someone give me a short example of a JTextPane with things such as File, Options, ect at the top.I dont want the Text Sampler Demo
[148 byte] By [grimakisa] at [2007-11-26 18:44:12]
# 1
Please help
grimakisa at 2007-7-9 6:18:07 > top of Java-index,Desktop,Core GUI APIs...
# 2
> I dont want the Text Sampler Demo So you expect someone to write you a full blown editor?Use the concepts from the demo and write your own code. If you have specific questions then ask them, but we are not going to write an editor for you.
camickra at 2007-7-9 6:18:07 > top of Java-index,Desktop,Core GUI APIs...
# 3
Ok... how do you draw a window with a editable text field inside, do not redirect me to the FAqs.
grimakisa at 2007-7-9 6:18:07 > top of Java-index,Desktop,Core GUI APIs...
# 4

> how do you draw a window with a editable text field inside,

No idea what you are talking about. You don't draw a window. You create a JFrame and then you add components to the frame. These components can be menus, toolbars etc.

Check out this posting for more information:

http://www.catb.org/~esr/faqs/smart-questions.html

camickra at 2007-7-9 6:18:07 > top of Java-index,Desktop,Core GUI APIs...
# 5
That didnt help, can someone just explain how to create a J TEXT FIELD....
grimakisa at 2007-7-9 6:18:07 > top of Java-index,Desktop,Core GUI APIs...
# 6
> That didnt help, can someone just explain how to> create a J TEXT FIELD....JTextField jtextfield=new JTextField(10);
qUesT_foR_knOwLeDgea at 2007-7-9 6:18:07 > top of Java-index,Desktop,Core GUI APIs...
# 7

>That didnt help, can someone just explain how to create a J TEXT FIELD....

Even though you might not belive it; Google is your best friend! use it. Search for: JTextField tutorial.

This is the first result you get: http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html

Have a look around there and eventually you might find this link: http://java.sun.com/docs/books/tutorial/uiswing/components/examples/TextDemo.java

Which contains an example which you are intressted in.

This is the best and probably only way your gonna learn about java, through the internet, if not through school will say. So if not for the last option then use the internet like most people do.

prigasa at 2007-7-9 6:18:07 > top of Java-index,Desktop,Core GUI APIs...
# 8
Also use the forum search, belive it or not, your not the first to need help with java problems, I bet you can find tons of simular questions with answeres if you just put some effort to it.
prigasa at 2007-7-9 6:18:07 > top of Java-index,Desktop,Core GUI APIs...