This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextPane  RSS feed

 
Bacchi Gerem
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 53769
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!