Skip to content
Advertisement

Tag: jdialog

How does java dialog inheritance work? I lose some properties

Sorry I don’t have much knowledge about Java or swing applications. I created a dialog called DlgShape and in it i have 2 text fields, 2 buttons and 2 labels. I tried creating DlgRectangle and instead of it inheriting from JDialog I inherited from DlgShape. The design of the parent and child class are identical but in the DlgRectangle I

JDialog not focused on OSX when Java is not on top

My JDialog is not focused when the Java program is not in the front in OSX. How do I achieve this? I have the following test program to illustrate the scenario (at the bottom), running using javac Test.java && java Test from a terminal. When the terminal output “Started first”, it will change focus to the Java program. I remove

Advertisement