Questions tagged [jdialog]

The main Java Swing class for creating a dialog window.

The main Java Swing class for creating a dialog window.
A Dialog window is an independent subwindow meant to carry temporary notice apart from the main Swing Application Window. Most Dialogs present an error message or warning to a user, but Dialogs can present images, directory trees, or just about anything compatible with the main Swing Application that manages them.

1021 questions
-2
votes
2 answers

JDialog doesn't respect dimensions of child components

I have a setup that usually works, but I'm finding it a bit of a pain at the moment. I have a JDialog (formerly a JFrame, but I've changed the UI flow recently to remove redundant JFrames) set to BorderLayout that contains three main JPanels,…
Gorbles
  • 1,169
  • 12
  • 27
-2
votes
1 answer

Why is the code creating two JDialog objects?

I have created a JFrame in my project which takes input from JComboBox. I have added EventListener to combo box. I.E. when I select "Other" item from ment, it should create one instance of JDialog. But It's creating two instances. Can anybody tell…
Bhushan Gadekar
  • 13,485
  • 21
  • 82
  • 131
-2
votes
1 answer

Pop up Swing window with both option and textfield

Given such codes: Object[] possibilities = {"ham", "spam", "yam"}; String s = (String)JOptionPane.showInputDialog( frame, "Complete the sentence:\n" + "\"Green eggs and...\"", …
chrisTina
  • 2,298
  • 9
  • 40
  • 74
-2
votes
3 answers

How to open a JDialog

I am creating an application that has 1 JFrame java file and 1 JDialog java file. In the JFrame, I have a button and when pressed I want it to display what I have designed in the JDialog. So for example, my JFrame java file is called MMainView.java…
user2771150
  • 722
  • 4
  • 10
  • 33
-2
votes
2 answers

How can I limit a JDialog location to an area inside of JFrame

I have a JDialog and I have it parented to a JFrame. I can move the dialog outside of the JFrame and I want to remove it. Visual example of the Problem What I want to happen: Fix
Jama
  • 1
  • 1
-2
votes
2 answers

Multithreading issues with Swing around dialog create/destroy

Possible Duplicate: SwingWorker in Java I have several classes that need to work together but, they're not. For one, I have Main: public class Main { public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { …
Karlovsky120
  • 6,212
  • 8
  • 41
  • 94
-3
votes
1 answer

How to set the parent of jDialog in netbeans?

I'm pretty confused about this, since I haven't been working with jdialogs so far...
Bugster
  • 1,552
  • 8
  • 34
  • 56
-3
votes
2 answers

How to access JFrame's method from JDialog?

I have my main JFrame and one more JDialog. If user click on the button, i want JDialog to call method from this JFrame(which contains some operations on ComboBox in this JFrame). How can I do that? I don't want to use MyJFrame form = new…
Persantarus
  • 37
  • 1
  • 6
-3
votes
1 answer

is there any way to reach working objects on RAM in java

I want to know is there a way to reach working objects in RAM in Java.. let's think that I have a JDialog class which is not modal . and dialog is appears in action of list compaund with given parameters non modal dialogs running statistically so…
Said
  • 1
-3
votes
2 answers

Creating database in Netbeans for Java web application

I have a Jdialog which contains JTextFields and a Save button.How do I create a database table which stores ProjectId, ProjectName and Description and store them locally?
mussdroid
  • 732
  • 1
  • 9
  • 22
-3
votes
1 answer

Button on JFrame is clickable, but JDialog is up

Got a JFrame with a Button on it, if the button is pressed then pops a JDialog up. If i click on the JFrame the JDialog dispose. But if the JDialog is active and I click on the JButton, disposes the JDIalog and open it again. I want to close the…
-3
votes
2 answers

JFrame as a dialog

I want to customize the jframe and that frame should work like a joptionpane. which is relative with parent. can i do like this. if it is possible please any one help me.
Tiru
  • 3
  • 3
-4
votes
1 answer

Purpose of JDialog#setModal

What is the purpose of d.setModal(true);? public DatePicker(JFrame parent) { dialog = new JDialog(); dialog.setModal(true); String[] header = { "Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat" }; JPanel panel = new JPanel(new…
Kamau Mbûgua
  • 777
  • 1
  • 10
  • 19
-5
votes
1 answer

How can be components added dynamically in the JDialog?

I am trying to create GUI like given in first picture, but I am not able to do it.here is the image I am getting only one combo1, combo2, combo3 and serialNoLabel instead of 5 [5 is the size of list] ArrayList list; // the size of the…
-5
votes
1 answer

NullPointerException when making a change from a JDialog to a JFrame

Cuando la ejecuto me marca este error `Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at ventana.VentanaPrincipal.actionPerformed(VentanaPrincipal.java:136) at…
1 2 3
68
69