tags:

views:

69

answers:

1

I added a TextPane in jForm. The form has a menu bar but the menus are displayed on the back of the TextPane. How can i fix it?

+4  A: 

I assume you mean a JFrame, not a JForm (whatever that is). Not to be rude, but if you can't even tell us the objects you're using, you'll probably not get much great assistance.

So, are you doing something like this in your init code:

JFrame frame = new JFrame("Blah");
frame.setJMenuBar(new JMenuBar());
frame.setContentPane(new JTextPane());

I use new objects here, but they could be local or member variables.

Kristopher Ives