javafx 2 - Child window with maximize and close buttons -


still working on learning here ... i'm trying make application window (stage) can call child windows. parent naturally comes minimize, maximize , close (x) buttons, when add child window can't move or resize child, , not have standard 3 buttons.

here's code i've been toying with:

// stage ventasstage = new stage(); // child stand alone , had standard 3 buttons anchorpane ventas = (anchorpane) fxmlloader.load(punto_de_venta.class.getresource("ventasgui.fxml")); //    scene ventasscene = new scene(ventas); //"stage" , "scene" removed add "getchildren" home.getchildren().add(ventas);  

the getchildren gets new window part of parent scene, cannot 3 standard buttons. assume buttons added stage , not anchorpane (which getchildren getting here) getchildren can't used stage, right? how make parent interchangeable children each child moveable, resizable , has standard 3 buttons (minimize, maximize , close)?

three buttons correspond standart window (it provided os), , stage. scene - object, corresponds scene graph , propeerty of stage. use stage.setscene(..) set scene stage. stene has root node (usually, kind of layout). , seems me, should use scene.setroot(...) method.

btw, stage: can use stage.init...() use different decoration schemas, , different types of modality.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -