Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Clicking jButton must open an application  RSS feed

 
Sandeep Swaminathan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very basic question! There are two applications A.java and B.java
The task is to design an application with two buttons A and B. On clicking the button A 'A.java' has to open and on clicking button B 'B.java' must open. How to do? Help me out!
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add action listeners to the two buttons.
In one, create and display the UI of the first application.
In the other create and display the UI of the second application.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!