Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is the quickest and the best way to develop java desktop app

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys, i am pretty comfortable with java but i'll like to start developing java desktop application using swing with netbeans, please is this the quickest way to develop java desktop and what books can you recommend in this direction that will make me very through in java desktop using netbeans.If you have some better opinion please let me know, your views will be highly appreciated.
 
Sheriff
Posts: 22791
131
Eclipse IDE Spring Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The quickest way? Yes. The best way? Nowhere even near. You'll be able to create both simple and complex user interfaces, yet you will not understand one thing about how they work. And when you need to tweak the code to do things Netbeans can't, you're screwed.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

If you are looking write less code, you should try with groovy
specially the swing builder library.

http://groovy.codehaus.org/Swing+Builder
 
Saloon Keeper
Posts: 15656
367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm with Rob. For your first few applications, I recommend not using a builder at all. Go through Oracle's Swing tutorial, and refer back to it often as you work on your application.

http://download.oracle.com/javase/tutorial/uiswing/
http://download.oracle.com/javase/tutorial/ui/features/components.html
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rob,Stephan ++
Search the forums. This question has been asked and discussed numerous times before. The consensus is that hand coding is best.

Rob Spoor wrote:The quickest way? Yes.


I have my doubts about this one. Mouse clicks are anytime slower than typing.
 
Rob Spoor
Sheriff
Posts: 22791
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But with a few clicks you can sometimes have the GUI builder create dozens lines of code. Still, I wouldn't use a GUI builder if I didn't have to.
 
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't use NetBeans, but I have to believe that one can write Swing code using NetBeans without using the NetBeans GUI Builder (which you didn't even mention). If you know and like NetBeans as a Java IDE and would like to use it to write Swing code, by all means do so. BUT, as others have already recommended, rather than use the NetBeans GUI Builder, learn to code the Swing "by hand."

The reasons for avoiding the GUI Builder are:
1. It generates code that cannot be easily understood,
2. Because of number 1 (and other reasons) GUI Builder code cannot be easily maintained.

As for books, I'm learning Swing through tutorials I find on the web, so I can't recommend a book from personal experience. You might look through the book reviews here.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another way to speed up development is to use (or create) better building blocks; see the SwingFaq for references to GridLayout2, SGLayout, and the article Speed up your Swing GUI construction with better building blocks.
 
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic