문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top