Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use JFrame instead of JDialog in Netbeans Wizard

I have build an application using the Netbeans Wizard Framework as outlined here and here. I have my application working properly, but the problem I have is that the application does not show in the windows taskbar. I am pretty sure the problem is that the Wizard Framework uses a JDialog instead of a JFrame, but I can't figure out if that can be changed.

If anyone has experience with this framework, please let me know if it can be made to appear in the taskbar.

like image 465
ewok Avatar asked May 07 '12 15:05

ewok


1 Answers

Changing is quite easy.

  • Open the form in NetBeans.
  • Change extends javax.swing.JDialog to extends javax.swing.JFrame.
  • Save the file and close it.
  • Reopen the file.
  • In designer mode, make a change. I usually just change the name of a component.
  • Save the file.
  • Undo the change and save the file again.

You should be all set.

like image 99
Devon_C_Miller Avatar answered Sep 24 '22 13:09

Devon_C_Miller