Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Open GUI on top of another GUI

 
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
Saloon Keeper
Posts: 3145
72
  • 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.
 
Fire me boy! Cool, soothing, shameless self promotion:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!