hi, i am new to this forum. so hope you all will forgive my mistakes if any....
Thank you in advance.
This is a answer for Rvince's question.
it is simple process though.
Just now before posting this reply I found the way. I was too searching internet for this answer. after all i found it my self.
i am doing an application for my personal use. it came up with the same issue when opening a dialog box, it hided the jframe. so i did a little bit of change to the code. and found workin better enough
this is the code which found erronic.
------------------------------------------------------
Code:
this.setVisible(false);
frmcompiler = new frmCompiler(this,true);
frmcompiler.setLocationByPlatform(true);
frmcompiler.setLocationRelativeTo(this);
frmcompiler.setVisible(true);
this.setVisible(true);
the statement
Code:
this.setVisible(true/false);
made it worst
it hided the jframe and the taskbar button vanished. so i made a little bit of change like the following
Code:
//this.setVisible(false);
frmcompiler = new frmCompiler(this,true);
frmcompiler.setLocationByPlatform(true);
frmcompiler.setLocationRelativeTo(this);
this.setState(javax.swing.JFrame.ICONIFIED);
frmcompiler.setVisible(true);
//this.setVisible(true);
this.setState(javax.swing.JFrame.NORMAL);
see the difference? i just commented the visiblity statement and
used the setState function to the parent form. so i can iconify the parent form, and the taskbar button stayed alive...
hope this will help you....
oops forget to type.
frmCompiler is the JDialog window. and "this" denotes the parent form.