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.
looks like as issue with awt.ScrollPane, have to use swing.JScrollPane instead
you are issue with mixing lightweight and heavyweight components
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With