• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

View not coming after certain screen

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic