JFrame « Dialog « Java Swing Q&A





1. Java Communication Between Classes and JFrame JDialog    stackoverflow.com

i have written a standalone connect 4 game. next i would like to be able to play it over network and also have a chat function. connect 4 GUI (JFrame) holds -> ...

2. Substance UI & undecorated JDialog/JFrame    stackoverflow.com

I have noticed that while using the Substance UI for Java that when I set a new JFrame or JDialog to undecorated it is not honored. e.g.

frame.setUndecorated(true);
frame.setVisible(true);
When run under Substance shows a ...

3. How to over ride Dialog boxes over JFrames?    stackoverflow.com

I Have a java program that does sort of this: It starts off with dialog boxes, then after user clicks OK/Cancel or X or whatever, it goes to JFrames or dialog boxes. ...

4. what is different between jframe and jdialog?    stackoverflow.com

What is different between JFrame and JDialog? why we can't use setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE); for jdialog?

5. MVP, JFrame, JDialog : GUI is freezing    stackoverflow.com

I have main frame (with JFrame field) asi view, then presenter (created in view's constructor) that adds listeners to buttons and stuff. I do that like this:

public static void main(final String[] ...

6. JFrame application with a JDialog and Timer    stackoverflow.com

I have an application in which I have a JFrame which has a button "start". On clicking that button a JDialog should be opened as unclosable and which has a timer ...

7. java setFullScreenWindow hides log in dialog in Mac    stackoverflow.com

I was using a full screen window to something similar to screensaver. Using the method here,

GraphicsEnvironment.getLocalGraphicsEnvironment()
                ...

8. Swing: How JDialogs talk back to the JFrame    stackoverflow.com

I'm building my first Swing app and am trying to figure out how my JDialogs - exclusively invoked when the user selects a JMenuItem - can update the components in the ...

9. Passing Data From JFrame to JFrame Or to JDialog    bytes.com

HI Can anyone help with the scenario where where you have to pass a certain data from one JFrame to another. For example, suppose you have a JFrame is your main ...





10. JFrame or customed JDialog or ?    coderanch.com

11. JFrame / JDialog communication    coderanch.com

12. Difference between JDialog and JFrame - URGENT    coderanch.com

Hi Koray, The advantage of Dialog over Frame is that Dialog can be made modal (waits for user interaction) and it will always remain on top of its parent. The advantage or Frame over Dialog is that the Frame can act as a separate application without interaction with other frames. It comes down to a personal preference and what you are ...

13. JDialog and JFrame *HELP* !!!    coderanch.com

You are not suposed to mix AWT and SWING Components. And even if you could, I don't see why you would want to add a FRAME to a JFRAME. When you create a JDIALOG, you are not ADDING it to the JFRAME. You are simply creating a new FRAME that is MODAL to something, or not MODAL. JFRAME extends FRAME. It ...

14. Access JFrame Components from JDialog    coderanch.com

15. JFrame or JDialog    coderanch.com

Hi Greg, I think it depends a bit on your users. My users are average office admin types. I have used JOptionPane but found that most of my users would eventually complain that my app froze. In about three cases where I was able to investigate, I found that they had somehow managed to hide the dialog box behind the main ...

16. Getting a list of currently opened JFrames and JDialogs    coderanch.com

All, Is there a Java API method call that will return a list of the currently opened JFrames and JDialogs? In the past I've manually tracked this information in the actual application but I've started work on an existing project that doesn't currently track this. Looking through the Java API nothing jumped out at me. Thanks, Dave





17. JFrame as a Dialog    coderanch.com

Hi, i am using 2 JFrames, one JFrame( say Frame 'A') calling other ( Say Frame 'B')as a dialog Frame, but the problem i am facing is that when both the frames are visible then i can also click on Frame A, instead i want that when both of them are visible than i can only operate on Frame B(Just As ...

18. Passing data between JFrame & JDialog    coderanch.com

Hi, Here's the situation and what I've done so far - I have a JFrame in my program, which is instantiating a JDialog. Each of the two contain a JTextField. When I type in the JDialog's JTextField and press Enter, its text should be passed to JFrame's JTextField. I have tried to solve this in 2 ways. The code that I've ...

20. problems with jDialog in a JFrame    java-forums.org

public class recordpage extends JDialog{ private Container contain; private JLabel Nick, Pass, ConfimPass, Mail; private JTextField textNick, textMail; private JPasswordField textPass, textConfirmPass; private JButton register; public recordpage (){ super(); Container contain =getContentPane(); contain.setLayout(new FlowLayout()); JLabel Nick =new JLabel("Nick "); JLabel Pass =new JLabel ("password "); JLabel ConfimPass new JLabel ("Confirm your password"); JLabel Mail =new JLabel ("your email: "); JTextField textNick ...

21. Returning data from a JFrame/JDialog?!    java-forums.org

Hi Ok. I have a JFrame or JDialog, whatever. On it are 3 textboxes. When the object is closed I want to return a string array containing the data in each of the 3 textboxes. How can I do this? When I start a new JFrame/JDialog box the process will halt untill the object is closed, by which time all data ...

22. Communicate JFrame with JDialog    java-forums.org

Hello everybody! :) I'm having problems when trying to communicate a JFrame with a modal JDialog child of it. Here is the thing: the JFrame has a button that opens the JDialog which has a JTable and 2 buttons: "Accept" and "Cancel". What I want to do is that when the Accept button is pressed some information is sent to the ...

23. passing an object from one JDialog to Jframe    java-forums.org

Hi , am a newbie to Swing . I have an appliction consisting multiple components , I created a JFrame where I have a load button . When i hit the load button , it opens a jdialog , where I have to fill in some crieteria for filtering a data out of db . I have to send that filtered ...

24. vm runs through jdialog directly to jframe    java-forums.org

hallo everybody i have a jframe showing a jtable with data readed from a mysql table. now i want to prompt a jdialog for username, password for the connection to mysql. i already got the code with buttons and actionslistener for the jdialog, but the problem is that the vm is not waiting till the user has entered his name and ...

25. How to show JDialog is a JFrame ?    java-forums.org

26. Passing value from JFrame to JDialog    java-forums.org

27. JFrame, Jdialog or Application Window    java-forums.org

Above the two classes created by Eclipse... What sould I pick? :) Paula JFrame import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; public class Testframe extends JFrame { private JPanel contentPane; /** * Launch the application. */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { Testframe frame = new Testframe(); frame.setVisible(true); } ...

28. Java Communication Between Classes and JFrame JDialog    forums.oracle.com

i have written a standalone connect 4 game. next i would like to be able to play it over network and also have a chat function. connect 4 GUI (JFrame) holds -> connect 4 game model i would like to implement connect 4 network GUI(JDialog) (here the user can choose to act as a server or client) that holds Network API. ...

29. Need some advice on JFrames and JDialogs    forums.oracle.com

the first question is up to you... how you want the app to work. You can give a dialog a null parent frame, I think, but it you won't be able to at least change the icon on the dialog titlebar. But this is probably a bad idea as you don't have the hook to the window. A dialog is meant ...

30. difference between Jdialog and JFrame    forums.oracle.com

There is a subtle difference between these components. JFrame is a fully-functional Windows window, where as JDialog is a popup-sort-of window. That sounds pretty weak. Essentially, you should use a JFrame for the part of your program that is always visible (unless it's minimized), while JDialog's pop up when you need them, and disapear when you don't.

31. difference between Jdialog and JFrame    forums.oracle.com

There is a subtle difference between these components. JFrame is a fully-functional Windows window, where as JDialog is a popup-sort-of window. That sounds pretty weak. Essentially, you should use a JFrame for the part of your program that is always visible (unless it's minimized), while JDialog's pop up when you need them, and disapear when you don't.

33. JFrame/JDialog update    forums.oracle.com