swingutilities Questions

0

While trying to port swing code to be compliant with the Java module system I got stuck trying to replace SwingUtilities3.setDelegateRepaintManager. I have a component, which when any of its childr...

4

Solved

After years of Java programming I always used to create my main() methods like this : public static void main(String[] args) { runProgram(); } But recently I studied some codes from the Web an...
Psilocybin asked 8/3, 2013 at 19:47

4

Solved

How can I get the JFrame in which a JPanel is living? My current solution is to ask the panel for it's parent (and so on) until I find a Window: Container parent = this; // this is a JPanel do { ...
Maccabees asked 10/3, 2012 at 22:47

7

Solved

I am trying to make an application in Java. To make Swing work correctly, I did this: public static void main(String[] array){ String outerInput; SwingUtilities.invokeLater(new Runnable(){ @O...
Humfrid asked 14/9, 2011 at 15:24

2

SwingWorker is used for the following purposes: For running long-running tasks in a different thread so as to prevent the GUI from being unresponsive For updating GUI with the results produced by...
Palp asked 13/5, 2010 at 18:41

2

Solved

I have a JTable inside a JScrollpane. I do not have access to the JScrollpane variable. But I have access to the JTable. Now how can I access the JScrollpane using the JTable. For Example -> m...
Unworthy asked 26/2, 2014 at 11:59

1

Solved

What is the best practice way to start a java swing application? Maybe there is another way to do it. I want to know if i have to use the SwingUtilities class to start the application (secound pos...
Mcelhaney asked 24/9, 2013 at 8:54

3

Solved

On my three button mouse MouseEvent.BUTTON2= Middle Click and MouseEvent.BUTTON3 = Right Click. Is this the case on a two button mouse? Thanks
Sanctify asked 24/12, 2010 at 10:29

6

Solved

This simple issue confuses me. You can display a JAVA GUI application by setting the frames' setVisible property true. But in almost all the examples I found on internet they use a separate thread ...
Rubie asked 1/10, 2012 at 3:10

3

Solved

Possible Duplicate: What does SwingUtilities.invokeLater do? SwingUtilities.invokeLater I have seen this little piece of code hundreds of times: public static void main(String[] arg...
Humanoid asked 22/8, 2012 at 16:11

1

Solved

Please is there another way how to change Font at runtime as using FontUIResource, for the whole AWT/Swing GUI, without any knowledge / interest about if there are local variables and type of JComp...
Catarina asked 31/3, 2012 at 17:17

3

Solved

Can someone highlight on the differences between these two and the instances both are required?! I have an application which uses both intercheably, but want to know if one is better than the othe...
Pitching asked 26/4, 2012 at 12:34
1

© 2022 - 2024 — McMap. All rights reserved.