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
0
votes
3 answers

How to run two frames at the same time in java

I am trying to create a loading screen for my program so it will display the loading screen while loading the main screen or while executing a particular task. I tried to use a JDialog as the loading screen but for some reason, once the loading…
John
  • 836
  • 2
  • 25
  • 39
0
votes
1 answer

Add JTree (CheckboxTree) to JDialog

This is probably a simple question, I'm not very used to Java programming. But I need to create a dialog with a CheckboxTree (a variant of JTree with checkboxes, see http://www.javaworld.com/javaworld/jw-09-2007/jw-09-checkboxtree.html) Please note:…
Anders
  • 12,556
  • 24
  • 104
  • 151
0
votes
2 answers

Extracting Blob from MySQL and put it into JDialog

I have a connection with a MySQL database, and I try to resolve a issue which appear when the blob (image) extracted from database don't render correctly into a JDialog (see screenshot). Note: I have multiple images (size ~50-60 Kb), some of them…
0
votes
1 answer

Solaris 5.10: How do I hide a JWindow button on the task bar?

I am using a JWindow object in my Java application to simulate a mouseover dropdown menu. When the user mouses over a JLabel, the window appears and remains until the mouse exits either the label or the newly visible window. My problem is that…
Dan
0
votes
4 answers

Changing the modality of an existing JDialog

I'm integrating an applet and I need to hack one of the dialog and change its modality. My problem is I don't know Swing, and my attempts have no effect in practice. Current…
plus-
  • 45,453
  • 15
  • 60
  • 73
0
votes
1 answer

How to transfer information from a JFrame to the method instantiating it?

I am writing an application (an implementation of the Game of Life) and want it to work as follows: A JFrame (not a JDialog!) pops up where the user can choose some settings. Pressing the "Start"-button on this frame stores the settings somewhere,…
andreasdr
  • 3,804
  • 4
  • 28
  • 32
0
votes
2 answers

JTextArea not updating after display jdialog

I am trying to update the jtextarea after displaying JDialog but it is not updating can anyone help me. public static void main(String[] args) { JFrame frame = new JFrame(); frame.setBounds(0, 0, 500, 500); …
Bharat Sharma
  • 3,926
  • 2
  • 17
  • 29
0
votes
2 answers

CustomDialog, modality and dispose on close

I have a CustomDialog that extends JDialog. In its constructor I have setModalityType(ModalityType.APPLICATION_MODAL); setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); They dont seem to work well together: i think the Modality stucks the…
alessiop86
  • 1,285
  • 2
  • 19
  • 38
0
votes
1 answer

Using JDialog with Tabbed Pane to draw different pictures

I am using NetBeans, and I have a class that extends to JDialog, inside that Dialog box I have created a Tabbed Pane. The Tabbed Pane contains 6 different tabs, with 6 different panels of course. What I want to do is when I click on the different…
Bryam Ulloa
  • 144
  • 2
  • 5
  • 17
0
votes
1 answer

open a new JDialog only once when JButton is clicked

How can stop duplicate of JDialog opening up upon clicking JButton twice or more?
user1708134
  • 643
  • 1
  • 9
  • 21
0
votes
1 answer

Adding a JFrame to a JFrame, force new JFrame to be closed before first can be used again

I'm trying to add a JFrame (bar) to a JFrame (foo), which would force bar to be closed before foo can be intergrated with once again. Such as this, where the "About Eclipse" frame must be closed before I can write code once again: Something like…
Zar
  • 6,786
  • 8
  • 54
  • 76
0
votes
2 answers

Delay in displaying contents in JDialog

Please have a look at the following code import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.List; import java.util.ArrayList; public class SendEmailForm extends JDialog { private JLabel to, cc, bcc, subject,…
PeakGen
  • 21,894
  • 86
  • 261
  • 463
0
votes
1 answer

how to strict user to go parent JFrame

I want to make JFrame like JDialog box so user can not go outside the JFrame or parent JFrame. how can i make this. please help me. This is my code:- TestBedForm n = new TestBedForm(); JDialog dialog = new JDialog(); …
user591790
  • 545
  • 2
  • 15
  • 33
0
votes
2 answers

Closing JDialog box from a thread

I have a JDialg for showing the progress of a certain task. To display and hide the dialog box I have following methods, public class ProgressDisplayer extends javax.swing.JDialog { ...... public void s_show() { …
Harsha
  • 3,548
  • 20
  • 52
  • 75
0
votes
1 answer

How to simulate JDialog movement in JFC

I have a JDialog being displayed on screen and I want to simulate its movement (Drag from one location to another) based on a condition. Is there any way this can be done ?
DarkKnight
  • 243
  • 1
  • 4
  • 10