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 decorated frame.
When run under system default L&F shows an undecorated frame.
Anyone have ideas for working ar...
I have a dialog class with a constructor like the following
public SampleDialog(JComponent parent, String title){
super((Frame)SwingUtilities.getAncestorOfClass(Frame.class, parent), title, false);
setLocationRelativeTo(parent);
init();
}
However, this positions the dialog so that it's upper right hand corner is in the c...
I want to create in Java Swing a JDialog which, when it's open, its parent window cannot be accessed (just like when you open the file explorer dialog in Microsoft Word). Is there any method in the JDialog class that provides this behaviour?
...
Hi,
I have a Java/Swing desktop application (Java 6u16 on Windows XP) which occasionally appears to the users to hang. I say appears to because in reality what is happening is that the application is showing a modal dialog but this dialog is not being rendered. If the user uses Alt-Tab to switch away from the application and then subse...
How filter the files by extensions (in the screen), like this example
thanks,
celso.
...
I've created an application in Netbeans IDE 6.9. I've different sizes of most of the dialog boxes. But when i run the application, all my dialog boxes have the same size and that size is that of the biggest dialog box.In the eye preview button i get different sizes, only when I run the application I get the same big size. Can anyone sugg...
I am making a dialog box for the application.And I want to fetch the values from the other fields(such as textField) based on the value of combo box. Can anyone please tell me how to link both of these components?
-Thanks in advance
...
Imagine two common situations combined: A JDialog(or JFrame) which closes on VK_ESCAPE (set as key binding on the root pane) and an inner JPopupMenu which is supposed to close on ESC as well. The problem is: pressing escape always closes the dialog - event if the popup is visible. Apparently the popup doesn't even receive the key event s...
I'm trying to create a dynamic module where I drop an object on screen. Then a jQuery dialog opens with three drop-down lists. When I select a value in the first drop-down list I'm trying to filter the results in the next list via Ajax.
This is my JS code:
$("#ddlTableType").live(
'change',
function()
{
...
My goal is to use one method that moves two windows on the screen from the original location and size of the first window to the original location and size of the second. At first, I tried this:
public void morphInto(final Window fromWindow, final Window toWindow)
{
stop();
final Rectangle FROM = fromWindow.getBounds(), DEST...
I have created in Java swing an option dialog with the JOptionPane.showOptionDialog method. This dialog includes different buttons, and among those a Cancel button. I would like to attach a listener method to this Cancel button so that once selected, the dialog is disposed.
My question is: how do I "retrieve" (or return) the dialog gen...
When I am using the wait() method in the following code its throwing the following Exeption
Exception in thread "AWT-EventQueue-0" java.lang.IllegalMonitorStateException
The code is as follows:
private void newMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
newFileChoo...
So there's a frame (main app). From here, I open a Modal JDialog and start a background thread working whilst displaying progress (log entries) in a table. This process is critical and should not be stoppable/hideable/closeable, thus why the dialog's close button is de-activated until everything's finished. However, the user can at any t...