Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java GUI programming tutorial part 2  (Read 1598 times)
0 Members and 1 Guest are viewing this topic.
Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Posted 2012-08-19 22:58:40 »

As mentioned in this thread, I am making a Java GUI tutorial. Part 2 is now up. You can access it at http://markbernard.wordpress.com/2012/08/19/java-gui-made-easy-part-2/

All comments are welcome, either here or in the tutorial post.

Offline Jimmt
« Reply #1 - Posted 2012-08-20 02:02:02 »

Looks good, however your code goes off the "paper" (white space) Grin.
Offline ReBirth
« Reply #2 - Posted 2012-08-20 05:00:02 »

I believe wordpress has code tags.

Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Reply #3 - Posted 2012-08-21 01:43:53 »

Thanks guys. Temporarily fixed code going off the screen. I haven't looked into Wordpress  tags yet. Will have to do that next.

Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Reply #4 - Posted 2012-08-21 02:12:59 »

Ok. Found out how to highlight sourcecode properly for Wrodpress. Both posts have been updated.

Offline Cero
« Reply #5 - Posted 2012-08-21 02:37:46 »

btw is there anything equivalent to NetBeans's "Swing GUI Builder" for Eclipse ?
I found JFormDesigner, but its commercial.
Is WindowBuilder Pro good ?

Offline R.D.

Senior Member


Medals: 2
Projects: 1


"For the last time, Hats ARE Awesome"


« Reply #6 - Posted 2012-08-21 10:36:57 »

Eclipse has it's own Gui Builder now. Works for SWT or Swing (And some GWT magic too afair).
Imho the NetBeans's one is faster, the one in Eclipse is kinda slow on a lot of GUI-Elements (could be my laptop tho).

Mr. Hat I
- RadicalFish Engine - Ideas, Bugs? Open an Issue ticket!
Offline sproingie
« Reply #7 - Posted 2012-08-21 17:51:09 »

The netbeans gui builder (Matisse) has a very nice UI, but the code it generates is unmaintainable.  Eclipse's old VE had much nicer generated code, but the builder interface itself was a disaster.  I don't know about the code output of WBP, but it has to be better than Matisse.

Offline gene9

Junior Member


Medals: 2



« Reply #8 - Posted 2012-08-21 19:07:53 »

As mentioned in this thread, I am making a Java GUI tutorial. Part 2 is now up. You can access it at http://markbernard.wordpress.com/2012/08/19/java-gui-made-easy-part-2/

All comments are welcome, either here or in the tutorial post.

Swing has been completely superseded by JavaFX already. Why would you work on new tutorials on Swing at this point?

It still makes sense to use Swing as a shim to a bare-bones canvas or OpenGL context, but actually doing menus and Swing components in a non-legacy codebase doesn't make sense any more.
Online gimbal

JGO Coder


Medals: 15



« Reply #9 - Posted 2012-08-21 20:35:35 »

Swing has been completely superseded by JavaFX already. Why would you work on new tutorials on Swing at this point?

Not entirely, JavaFX is still lacking useful GUI components and on top of that: it is lacking a solid documentation base (quickly growing though). Swing still has its uses, even if they quickly reduce to "quick & dirty" kind of stuff.

As to why: I guess it is "because I can".
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline gene9

Junior Member


Medals: 2



« Reply #10 - Posted 2012-08-22 00:07:26 »

Not entirely, JavaFX is still lacking useful GUI components and on top of that: it is lacking a solid documentation base (quickly growing though). Swing still has its uses, even if they quickly reduce to "quick & dirty" kind of stuff.

What useful GUI components is JavaFX lacking? It seems to have all the basics. I wrote a JavaFX app and the API docs seemed fine. There is a dearth of code examples on the Internet, of course.
Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Reply #11 - Posted 2012-08-22 01:38:44 »

Part of this is also an exercise for me in writing. I know Swing a lot better than JavaFX. I also haven't been following that JavaFX has been brought into Java 7 as part of desktop UI. I thought it was still just for web UIs. So once I finish the Swing part I am going to write it in JavaFX so I can learn the ins and outs of JavaFX.

Offline StumpyStrust
« Reply #12 - Posted 2012-08-22 01:51:07 »

Idk. I feel like javaFX is just reinventing the wheel to run a little better. If people already know how to use Swing to do all sorts of thing, why switch to javaFX? Is it that much of performance/work flow boost?
Offline nsigma
« Reply #13 - Posted 2012-08-22 11:27:27 »

I also haven't been following that JavaFX has been brought into Java 7 as part of desktop UI.

Strictly speaking, it's shipped with Oracle's Java, but not planned to be a core part of Java SE until Java 9.  Swing isn't going anywhere (possibly in both senses!  Wink ) for a while.

Praxis LIVE - Open-source graphical environment for developing intermedia performance tools, projections and interactive spaces.
Praxis LIVE on Twitter
Online gimbal

JGO Coder


Medals: 15



« Reply #14 - Posted 2012-08-22 21:11:00 »

Not entirely, JavaFX is still lacking useful GUI components and on top of that: it is lacking a solid documentation base (quickly growing though). Swing still has its uses, even if they quickly reduce to "quick & dirty" kind of stuff.

What useful GUI components is JavaFX lacking?

Actually after making that statement (that's the way to do it - first moan and then verify) I was checking over the JavaFX 2.2 docs and I must say it looks pretty complete now. I was leaning on my memories of JavaFX 2.0 to be honest.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (76 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (119 views)
2013-05-16 00:53:38

gouessej (113 views)
2013-05-16 00:17:58

theagentd (125 views)
2013-05-15 15:01:13

theagentd (112 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (178 views)
2013-05-12 17:10:36

kutucuk (178 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.101 seconds with 21 queries.