Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

View not coming after certain screen

 
Anant Jagania
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic