Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use JdesktopPane in javafx

 
shalini chaurasia
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want the window which can work same as JDesktopPane, so whenever i open child window it should be contained by parent window only and there should be single open window in taskbar. so is there any alternate to use JdesktopPane in javafx.
 
John Damien Smith
Ranch Hand
Posts: 287
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no equivalent of JDesktopPane in JavaFX 2.2.

There are some 3rd party controls which provide some similar functionality (see also DromblerFX).

JavaFX can be embedded in Swing applications, so you could create a Swing application making use of JDesktopPane, and use JFXPanels for the pane content so you are still building and rendering the majority of your UI in JavaFX, just using a swing wrapper for the internal pane management. Java 8 also includes a SwingNode allowing the vice-versa situation of a JavaFX app with Swing components (like JDesktopPane) embedded in it.
 
shalini chaurasia
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can you send me some links relate to DromblerFX because i did not found much while search.
 
John Damien Smith
Ranch Hand
Posts: 287
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My reply contained a link to DromblerFX.
 
shalini chaurasia
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii

Actually i need one more help, when i'll run my JavaFXapplication with web Browser it should be fit to screen so how can i make it possible.
 
John Damien Smith
Ranch Hand
Posts: 287
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shalini, fitting a JavaFX app to a browser window is a different question, please ask it in a new thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic