JFXStudio: sketch, hack, share

JavaFX forms and menus ilustration

Posted by: zlaja1 on: May 22, 2009

In this simple example I’ve ilustrated an approach how to create infrastructure for GUI part of business application with JavaFX.

On the left side of application there is menu. Central area is reserved form forms that shown after choosing  menu item in the menu. At the bottom right area there is rounded task bar with icons of forms.

Start application

30 Responses to "JavaFX forms and menus ilustration"

Starting the application gives me a big, white blank window and a process I can’t kill (on ubuntu)

I’ve developed the application on kubuntu and it works fine. Is your java version correct? I use jdk1.6 update 13.

[...] JavaFX forms and menus ilustration Posted May 22, 2009 [...]

Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

… and I also don’t have any problems running any of the other javafx examples.

Can’t work out what the issue is?

Any chance of giving a link to the source?

Nick,

It should works. Problem can be if you don’t use Sun’s JDK but gnu version. Your browser should be configured to Sun’s JDK.
I suppose this is problem.

firefox is using javaws on the classpath which is the Sun javaws

If the browser was configured for openjdk then none of the javafx examples would work.

This is indeed strange

OK, works now. … although I did absolutely nothing to the runtime environment

Nice result

it is nice to hear that you started the application.

Do you think someone pay you for application like this? So ugly…

He he. You are right for colours, but It is not about ugliness or about payment.

It is about JavaFX.

This is awesome. Is there any way you can post the source? I am just starting a business application using javafx and am looking for a good starting point. I would definitely appreciate it.
Jared

Looks nice!

this is a very nice application. keep on the good work .. ! Some improvement in this sample can pay you as well.

Hi zlaja1,

very nice “real world” application. See you possibility to make source code open?

Dieter

Hi,

I’ve just updated application. I’ve added popup dialog. Dialog is draggable, just press mouse button on dialog title and move it around.

To see dialog choose MenuItem4.1 form and then click Add button on form.

Trere were some questions about source code availability.
It is not problem I will publish it soon.

Please publish the source code as soon as possible … maybe today itself ! thanks in advance

I’ve published source code

http://code.google.com/p/frameworkfx/downloads/list

Cheers

if someone wants to join me to develop this together please contact me on mail zlatko.josic@gmail.com

This a very nice app!!!!

Thanks for the code.

Hi,
I have made changes to your slash dot menu i got from your source code and tabbed pane i got from some other website to make some good menus .

check the menus below :

fxUtils

fxUtils

javafx(
{
archive: “http://sites.google.com/site/javafxpoint/fxUtils.jar”,
draggable: true,
width: 800,
height: 400,
code: “demo.demoFx1″,
name: “fxUtils”
}
);

Hi Sorry,
I tried to publish the HTML Source in the above comments but some how it did not get published . I tried to demo these cool menus in my googlesites blog but it also did not allow me to publish the javafx script tage in the web page .
Any pl. check it out once .

Thanks

Hello,
Finally i upload the demo to
http://sites.google.com/site/javafxpoint/fxmenu

I have made a few changes to the code to make the menus independent of the other code and re usable .
Once pl. check it out .

Thanks

Hi zlakto,
Thank you so much for your source code .
Your source code has helped me a lot to develop various kinds of menus . I have modified your code and made it to suit different types of menus and skinable .
The demo of the various types of menus are available at :

http://sites.google.com/site/javafxpoint/fxmenu/0fxxpmenudemo
http://sites.google.com/site/javafxpoint/fxmenu/1fxhorizontaldropdownmenu
http://sites.google.com/site/javafxpoint/fxmenu/2-fxslashdotmenudemo
http://sites.google.com/site/javafxpoint/fxmenu/3-fxverticaldropdownmenu
http://sites.google.com/site/javafxpoint/fxmenu/4-fxxpmenudemo

I’ll also host the source code very soon .

Thanks for all your help .

Thanks

I have not had a chance to view your code. Is that a JTable in the main window? I have been looking for sample apps that use JTable.

Thanks,
Harry

Hi,

No, the table in main window is not JTable. I suggest you to use
JTable in your app.

Here is link

http://jfx.wikia.com/wiki/SwingComponents

Hi Zlakto,
sorry for the delay .
Here is the modified source code .

http://sites.google.com/site/javafxpoint/fxMenus.zip
It’s in the form of a zipped netBeans project file .

I did not find time to organize the code in a better way
but when i have time i’ll make it more re usable .
By adding gradients in the right way we can make very good menus with this code .

I have surfed net like anything but so far i haven’t found any good webSite on how to achieve the best effects using the right color Combination and Gradients, i.e for making buttons and menus . In case if you find any good guides regarding that , pl. tell me .

When i have time I’ll make further modifications to this code to make it better and support any type of menu .

Pl. look in to this code and suggest me in case if we can improve something.

And let me tell you one more thing .
The demos which i have hosted in my google Sites blog only comes up in IE . In Mozilla they do not come up because it seems that mozilla does not support Applet in an IFrame .
( http://forums.sun.com/thread.jspa?threadID=5411206 )

Thanks

FYI
Hi,
I have succeeded in emulating cool GIMP gradients in JavaFx .
The demo is available at
http://sites.google.com/site/javafxpoint/home/fxgimpemulator

and it can be seen using Internet Explorer .

I think i can configure the menus i have posted earlier using these cool gradients .

Thanks

Leave a Reply

Challenge: Small is the New Big

This month's challenge: code something cool in only 30 lines, using the theme of Five

Tags