• Post Reply Bookmark Topic Watch Topic
  • New Topic

How tp detach a Frame from the Main Application ?

 
Pratik Khetia
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I've seen many examples of applets on the net that gives a button on the web-page (detach) which separates the applet window from the web-pagae.
I want to have the similar functionalities for my application where I am using JSplitPane right now. But instead of that I want to use attach/detach sort of functionality in that ...
Any help would be greatly appriciated !
thanks
Pratik
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could create a tiny applet that opens a JFrame.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's some code that illustrates what you need to do:



-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!