Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
JTextPane
Bacchi Gerem
Ranch Hand
Posts: 120
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
How can i add JComboBox to JTextPane After a partcular line of text.
program:
JTextPane Message = new JTextPane();
Message.setEditable(false);
String
text = "increase the size\n" +
"additional size\n"+
"\n Maximum Size: " + Value + "\n" +
"\n New Size : "+
"\n increase size?";
Message.setText(text);
I have to add a JCombobox after New Size(text).
Thanks
Campbell Ritchie
Marshal
Posts: 79177
377
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I tried it and it didn't work. So I don't think you can. You might have to split your pane into two and put the combo box between them.
Anybody else got any ideas?
CR
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Adding an Image to a JTextPane
setting focus on the appended text in JTextArea
JTextPane viewable area
Formatted text pane problem
Having different text styles in the same JtextArea
More...