JDialog 2 « Dialog « Java Swing Q&A





1. JDialog    java-forums.org

How can I make the following JDialog run the getAccountID() mehod when it closes (disposes)? I want to be able to call it from another class in the following way (Or something similar): Java Code: int id = NewAccountDialog(); Java Code: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ...

2. jDialog box disappears    java-forums.org

Hi, I have a jDialog box which opens when I click a button.If I move away from the window and go to some other application(check email or something) and click again on my application,The dialog box doesnt appears and my application seems stuck. Any pointers what is causing the issue.please help Thanks

3. JDialog Not Functioning Properly    java-forums.org

10-26-2011 06:34 PM #1 StevenTNorris Member Join Date Oct 2011 Posts 9 Rep Power 0 JDialog Not Functioning Properly So, my program worked fine until I wanted to add a JDialog cancel popup to one of my searches. The concept is that when a search started (running in a seperate thread), a popup appears that says "Searching....." with cancel ...

4. JDialog appearing in the toolbar    java-forums.org

This JDialog is a lock-out dialog, which appears when a time-out expired. It ask to insert a pwd if you want to unlock the application. Since it is possible that when my app is running, the user works with other apps, the lock-out dialog can be "ignored" by user, and when he want to come back to my app, he should ...

5. [HELP] cannot create instance of jdialog???    java-forums.org

hi! i'm using netbeans to create a project my Form LibSys contains the following: ->mainPanel (contains some controls) ->menuBar - fileMenu - jMenuItem1 - exitMenuItem -helpMenu ->login_dialog when the user clicks on jMenuItem1, he's led into method jMenuItem1ActionPerformed..inside this method, the program should show the login_dialog that will do something.. i tried this: login_dialog log = new login_dialog(); ..but it says ...

6. Launch a Jdialog from men    java-forums.org

Hi everybody, I'm very very new in Java and I would like to implement some project: Now I'm using NetBeans 7, I had just create a simple project with a Main form and 3 JDialog Form. In my Main Form I have an Men with some MenuItem, every menuItem will be launch a Jdialog. By Netbeans I can link an action ...

7. Trouble with JDialog    java-forums.org

Hi! This one compiles just fine, but here only the JLabel is visible cant get "add(new NyttDyr(),BorderLayout.SOUTH);" to work... Whats wrong?? public NyHareDialog(JFrame foreldre){ super(foreldre,"Registrer ny hare",true); add(new JLabel("Tast inn informasjon om ny hare:"),BorderLayout.NORTH); add(new NyttDyr(),BorderLayout.SOUTH); setLocationRelativeTo(null); //setSize(300,300); pack(); } Here is rest of the code.. import java.util.*; import java.io.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; class DyreRegister extends ...

8. show the chart in JDialog    jfree.org

9. JDialog    forums.oracle.com





10. Clear JDialog and rebuild it..    forums.oracle.com

11. JDialog best practice    forums.oracle.com

I am building a custom JDialog that includes a JPanel so that it's easier for me to customize (I'm using NetBeans). This is my first solo project as a developer so I want to make sure I follow best practice whenever possible. I have two questions in that regard. 1. If I need to pop-up a user interface from my main ...

14. desparately need help with JDialog    forums.oracle.com

16. JDialog    forums.oracle.com

Hey all, I want to not only have the button event handler display the next but i also want to keep a running total of the buttons pressed. For some reason java does not like int total=total +25; It will not let me do that. When i create a new variable say total1 it says i havent initialized it. Can someone ...





17. Remember my decision-JDialog?    forums.oracle.com

you mean "remember my decision between runs of the program"? so if I decide I don't want a particular dialog popping up, next time I run the program again, it still won't? you need to persist this decision somewhere. a simple properties file living inside the user directory or somewhere should suffice. you could have a whole "user preferences" file, that ...

18. JDialog AudioClip problem    forums.oracle.com

19. Using JDialog    forums.oracle.com

20. Calling a function through JDialog    forums.oracle.com

Hi all, The title might be a bit confusing, but the topic is about the following: I've got a JFrame as the main application. From the main application a JDialog gets called when you want to see more about an item in the JFrame. Because I want to collect all clicked information in the JDialog(so you can see what you've click ...

21. ImageIcon in JDialog    forums.oracle.com

22. JDialog jdk1.5 vs jdk1.6    forums.oracle.com

23. when jdialog now onwer the java get javax.swing.SwingUtilities$SharedOwnerF    forums.oracle.com

The task is. When dialog myLogin have not owner, then myLogin must have one view (with 3 buttons). But when myLogin have owner, then myLogin must have another view (with 2 buttons). For this purpose I use methos getOwner() from class java.awt.Window. This work when myLogin have owner. But when myLogin have not owner it's not work. The question is, how ...

24. Using JDialog    forums.oracle.com

25. Problem with JDialog location    forums.oracle.com

A Java newbie question. Have a JFrame that provides the primary GUI for the application. It has a menu bar, plus a JSplitPane. The left side of the JSplitPane holds a JScrollPane and then a JTree. The right side of the JSplitPane holds a map. When the user right-clicks on the tree, am showing a dialog which gathers additional data. The ...

26. Netbeans and JDialog Values    forums.oracle.com

Good evening. I have a little app created with NB 6. From a JPanel (under a JFrame) I have a JButton that should open a custom JDialog class: this one has a list of values (3 columns), queried from a database. The user should select the one he needs and confirm with a "SET" button. Until here everything is OK. My ...

27. setTitle in a JDialog    forums.oracle.com

Really ? ;-( ) No I mean the 2. point with the setUndecorated( ) method. Your message came just before I wrote my last message. The setUndecorated method doesn't only undecorate the title bar. Also the borders and events. That's why I meant a faster solution Yeh, I meant solution 2, as well. Just seems that the font used in the ...

28. User Settings JDialog    forums.oracle.com

Hi, I have a jdialog in cardlayout which acts as a user settings frame for my main application. On each of the panels is some user settings function (general, file settings etc.). On each of these panels i have action listeners to handle the events that relate to each section. All this works fine but what i would really like is ...

29. Problem with JDialog    forums.oracle.com

What's with all the inner classes trying to access each others properties? Please redesign this mess. Use separate classes so it's easier to see what belongs where. Main problem: your class LogonInfoDialog cannot access information from the inner class Logon (why is this named the same as the outer class)? Where did you even get the idea to write code in ...

30. JDialog problem    forums.oracle.com

31. Problem with JDialog    forums.oracle.com

I have created a JDialog with two buttons: button for selection a file from file chooser & the other button will upload number of files to DB. The situation is when I press the upload button the dialog hang there & I cannot back to the main application until the uploading process is finished. I have put the upload code in ...

32. JDialog    forums.oracle.com

33. JDialog dances or frickles    forums.oracle.com

Hi everybody, I've created my own JDialog by removing windows' default border, creating my own TitleBorder and managing dialog drag on this TitleBorder. I've used MouseMotionListener(mouseDragged()) and MouseListener(mousePressed()) to manage dialog dragging. My problem is that when i have a few components in my dialog and that i drag it, it starts to frickle. Every component, including the dialog itself starts ...

34. problem with java version ?? - Jdialog form    forums.oracle.com