• Post Reply Bookmark Topic Watch Topic
  • New Topic

Open GUI on top of another GUI  RSS feed

 
Cyrus Varza
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody tell me how to open a GUI on top of another GUI? I have built a GUI and have a button that when pressed I want to open a new GUI which is another java application within the project, it seems pretty straight forward and I just need to insert 'new [name of application]()' but this is not working I feel like i'm missing something, below is the portion of my code that involves the selection of the button, thank you!

 
Tony Docherty
Bartender
Posts: 3210
78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch,

Do you mean you want to open another window (ie a dialog style window) that displays on top of your application's window or are you trying to launch a whole new Java application?
 
Cyrus Varza
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! I want to launch another application that's part of the same Java project, I actually figured it out though it turned out that I needed to add window.open(); to open the window.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!