How to create a UI like below using JavaFX (fxml + css)? I am more interested about the sidebar menu component. An extensive Google search does not yield any resources on how to achieve it.
JavaFx control libraries like ControlFX or JFoenix do not provides anything like this sidebar menu.
Related
I used to develop my application in Swing. But recently I have begun to use JavaFx.
In Swing JTabPane we have this:
]
In JavaFx TabPane we have this:
We can see the selected Tab bigger than the other
But in JavaFx, we don't have this effect.
Question: How can I obtain the same Swing Tab style in JavaFx ?
Problem solve.
We can use CSS to make this style (Background-color, padding, :selected...)
Sorry I'm a beginner in JavaFx.
How do you add the file icon to the titlebar in JavaFX on Mac?
Like this:
And how do you indicate that the document hasn't been saved, like this:
In Swing, this is how you do it, but is it possible in JavaFX too?
No pre-coded solution in this answer. The feature you request is not available out of the box with JavaFX 8.
Some approaches you could consider:
See: JavaFX entirely customized windows? and the Undecorator project. Potentially you could use something like Undecorator in conjunction with resources from AquaFX to achieve what you want.
OR
Another way is to use two stages layered on top of each other, the top stage being transparent and overlaying the icon on the lower stage - you would need to keep them in sync for location, size, visibility and iconification states.
Use a Swing stage and application which implements the icon and place the JavaFX content inside the Swing stage using a JFXPanel.
In Windows Explorer, we have this:
Do we have similar in JavaFX? I'm totally OK with implementing my own but just in case there in one already built in(or maybe some other libraries that does this).
I've searched for a while but there's not much on TableView.
You can add a column chooser using table.setMenuButtonVisible(true). You can also style the button in css using .table-view .show-hide-columns-button and .table-view .show-hide-column-image. They are both stack panes.
How to create rearrangeable tabs in Swing? Like that found in Google Chrome browser or Opera Browser. In which user can drag the tabs and can arrange it. Is it possible to achieve the same in Swing or JavaFx 2.0 ?
I found this code example drag and drop tabs in jtabbedpane that looks like what you are looking for.
I would like to implement a list of interactive buttons using Swing. It is something similar as on the picture (from NetBeans UI designer):
You can drag and drop the items to a canvas, or single click on the item and then single click on the canvas. However, I don't know which swing components I should use. Are that JList or JButtons or something different?
There is a tutorial avalaible on how to achieve such functionality. It is utilizing the NetBeans Palette API, which makes you dependent on NetBeans as Framework, not IDE.
Depending on the goal, you might want to look into developing for the NetBeans Platform.