I'm a beginner in java
and so far I've found resources just about how to build simple GUIs using predefined components like text fields and buttons (i.e. Swing
).
How about build from your own layout without any restrictions?
Like the example below:
Asked
Active
Viewed 966 times
2

eddie
- 1,252
- 3
- 15
- 20

Keyne Viana
- 6,194
- 2
- 24
- 55
-
3What I would do is start with [How to Create Translucent and Shaped Windows](http://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html). I would then create an image of the UI you want to make and generate some kind of image map, which described the areas of the map which were "active", allowing your to perform simpler checks of the mouse position – MadProgrammer Jan 11 '15 at 20:45
-
2For [example](http://stackoverflow.com/questions/26205164/java-custom-shaped-frame-using-image/26208568#26208568), [example](http://stackoverflow.com/questions/13906687/how-can-i-smooth-my-jframe-shape/13906713#13906713), [example](http://stackoverflow.com/questions/13588786/jframe-the-same-shape-as-an-image-program-running-in-background/13594794#13594794) – MadProgrammer Jan 11 '15 at 20:46
-
1May I ask why you would want to create such a non-standard GUI in the first place? It looks like too much [skeuomorphism](http://en.wikipedia.org/wiki/Skeuomorph) to me. – Elliott Frisch Jan 11 '15 at 20:51
-
@ElliottFrisch The example is there just to illustrate a complex gui, it's not this one I'll try. I'm looking for something more close to HTML/CSS. Despite the fact that the is FXML I didn't find it as good as HTML/CSS. – Keyne Viana Jan 11 '15 at 20:56
-
@Telephone Sorry to say, but I think you're going to be bitterly disappointed then – MadProgrammer Jan 11 '15 at 22:38
-
If anyone has a JavaFX example, please post it in the comments, I'd be interested in seeing it as well – MadProgrammer Jan 11 '15 at 22:38