oddbin
asked on
Application GUI Interface "greys" out
Hi,
I have a Java Application that after a period of time "grey"'s out the GUI interface.. ie : the application itself is visible but the GUI interface ( buttons, text fields etc ) are not.. The application does not stall as the logging continues to work as does its port communiction. The design is such that every port communication being done is runningit its own thread therefore i cannot understand why its lokking up. Note that I start the GUI using
SwingUtilities.invokeAndWa it(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel(U IManager
.getSystemLookAndFeelClass Name());
} catch (Exception ex) {/* IGNORE use default L & F instead */
}
new Application();
}
});
I assume this is OK to use ?
I have a Java Application that after a period of time "grey"'s out the GUI interface.. ie : the application itself is visible but the GUI interface ( buttons, text fields etc ) are not.. The application does not stall as the logging continues to work as does its port communiction. The design is such that every port communication being done is runningit its own thread therefore i cannot understand why its lokking up. Note that I start the GUI using
SwingUtilities.invokeAndWa
public void run() {
try {
UIManager.setLookAndFeel(U
.getSystemLookAndFeelClass
} catch (Exception ex) {/* IGNORE use default L & F instead */
}
new Application();
}
});
I assume this is OK to use ?
About your code: why don't you do like everybody else:
public void main(String[] av)
{
try
{
UIManager.setLookAndFeel(U IManager.g etSystemLo okAndFeelC lassName() );
}
catch (Exception ex)
{
/* IGNORE use default L & F instead */
}
.........................
Using a thread here is insane.
;JOOP!
public void main(String[] av)
{
try
{
UIManager.setLookAndFeel(U
}
catch (Exception ex)
{
/* IGNORE use default L & F instead */
}
.........................
Using a thread here is insane.
;JOOP!
ASKER
Thanks for the code segemnt but I've tried all the basic stuff and nothign is working. I'm running on an XP Pro machine and have also tried it on a Win2003 box but still get the problem.. What are the main threading issues with Swing components ? and is there any main cuase to GUI's greying out ? in code ..
OK, you ruled the hardware out.
As I suspect that your application is large, there is only one thing you can do:
copy the project to a new place and start pruning it there: take out part after part
that you think has nothing to do with the problem.
Finally you'll find that removing a certain thing takes away the problem.
It will take time, but that approach wins in the end; I solved almost all my
problems over decades.
;JOOP!
As I suspect that your application is large, there is only one thing you can do:
copy the project to a new place and start pruning it there: take out part after part
that you think has nothing to do with the problem.
Finally you'll find that removing a certain thing takes away the problem.
It will take time, but that approach wins in the end; I solved almost all my
problems over decades.
;JOOP!
ASKER
Thanks for the tip.. started that yesterday but to dismay its been non stop removal since :(
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
P.S.: I got a problem with JFileChooser that only happens with a large program .................
;JOOP!
;JOOP!
I know a few screensavers that do this, merely on LINUX.
Is someone badgering you? Right click on the desktop and see what screensaver you got.
If I'm wrong it can only be your hardware. I had weird problems with a Matrox card
that started to scatter my screen after a few minutes.
;JOOP!