Top "Jdialog" questions

The main Java Swing class for creating a dialog window.

How to create a modal JDialog on top of another modal JDialog

I have a modal settings dialog which is a JDialog. In this settings window I placed some components including a …

java swing user-interface modal-dialog jdialog
How to add components to JDialog

d1=new JDialog(); d1.setSize(200, 100); t1=new JTextField(); t1.setBounds(10,10,40,20); d1.add(t1); I want to add components in JDialog …

java swing layout-manager jdialog
Show JDialog ("Please Wait") on JFrame

I have a JFrame and this JFrame has a JButton. I want in JButton first show JDialog (display "Please wait") …

java swing jframe jdialog
Disable JFrame minimize button

I am developing a tool for my laptop. I want to disable minimize button in the JFrame. I have already …

java swing jframe jdialog jwindow
JDialog setVisible(false) vs dispose()

Does it make sense to use setVisible(false) on a dialog and reuse it later or is safer to call …

java swing jdialog
Is there a way to only have the OK button in a JOptionPane showInputDialog (and no CANCEL button)?

I've seen that this is possible in other types of dialog windows such as "showConfirmDialog", where one can specify the …

java swing joptionpane jdialog
Swing: set a fixed window size for JDialog

I tried setPrefferedSize and setSize methods, but the dialog still opens at minimum size. private void method() { commandDialog.setPreferredSize(new …

java swing layout jdialog preferredsize
When creating a dialog with jquery, how do I hide the dialog div?

I am creating a dialog like in this page: http://jqueryui.com/demos/dialog/#modal-confirmation (click view source) on the …

jquery css jdialog
How to get parent for JDialog from JPanel

In my Swing app. I have a JFrame with few JPanels. One of it I use for placing another panels. …

java swing jframe jdialog
Dynamically Add Components to a JDialog

I am having trouble adding JComponents to a JDialog when the user clicks a button on the JDialog. Basically I …

java swing jdialog