looks like as issue with
awt.ScrollPane
, have to useswing.JScrollPane
insteadyou are issue with mixing lightweight and heavyweight components
Java JTextArea overlaps JMenuItem
Question
I have a jmenu called file with one menu item called quit when you click it it activates
System.exit(0);
its all fine until in the jtextfield when ever I enter anything and click enter If I then click on the file button on the jmenubar the quit button is hidden under the jtextarea.
Its quite hard to explain so here is a before and after typing image:
Iv'e looked into it and It could be something to do with focusing but any attempts to refocusing the quit button haven't worked.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow