File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes View not coming after certain screen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "View not coming after certain screen" Watch "View not coming after certain screen" New topic
Author

View not coming after certain screen

Anant Jagania
Ranch Hand

Joined: Oct 20, 2004
Posts: 49
Hi,

I am very new to swing.

I am having a class call Navigation View which has two button. Each button will take us to the next screen.

The issues is when run the application from Netbeans, it works fine but when I download from the webserver as a webstart and run the jnlp file, it doesn't take me beyond the Navigation View. Any button I click, there is no response.

I have used jDesktop in this application. All the views are JFrame.

Following is the code for the action performed on the button pressed in the Navigation view.


Following is the code inside "ClientApplication.getApplication()"

Please help me to understand and solve this problem.
Anant Jagania
Ranch Hand

Joined: Oct 20, 2004
Posts: 49
Some more clue i got.

I have two threads getting executed from the FileView JFrame.

If I have these two threads executed from the constructor of the FileView then I dont see any the screen.

If I have these two threads started outside the constructor then I can see the View by these two threads are not executed. Weird

I am not sure why Swing is behaving like this.

PLease help me out with this.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19718
    
  20

Anant Jagania wrote:I have two threads getting executed from the FileView JFrame.

If I have these two threads executed from the constructor of the FileView then I dont see any the screen.

If I have these two threads started outside the constructor then I can see the View by these two threads are not executed. Weird

I am not sure why Swing is behaving like this.

You aren't doing any user interface updates from those threads, are you? Please read concurrency in Swing.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: View not coming after certain screen