• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Getting started with GUI Swing?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all I'm an intermediate programmer java I want to ask what I should learn to start programming swing ??
 
Ranch Hand
Posts: 70
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to be able to do something like that, I think yes. It's reasonable because you will learn the working with different types of layouts and so on.

 
alexe john
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you very much this helping me a lot
 
Saloon Keeper
Posts: 14283
321
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to CodeRanch Alexe!

You can start by reading the Swing tutorials, but skip the NetBeans IDE lesson. It's best to begin coding GUIs by hand so you really understand what happens before you let tools take over for you.

Then create a hobby project that you want to make a GUI for. Try to apply the things you've learned in the Swing lessons, and submit your code on our boards for peer review. There's no better way to learn than to listen to constructive criticism.
 
Stephan van Hulst
Saloon Keeper
Posts: 14283
321
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think that's particularly great sample code. It's auto-generated by a GUI builder, and comes nowhere near the clean design you can do by hand.
 
Marshal
Posts: 76432
366
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

You need a general grounding in object‑oriented programming and basic understanding of the syntax of Java®. Then find a basic Swing book or the Java™ Tutorials. And make sure to discuss your learning with somebody helpful; you can find such people here
 
Campbell Ritchie
Marshal
Posts: 76432
366
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:I don't think that's particularly great sample code. . . .

Agree. You won't find it at all easy to understand; the field names are also unhelpful.
 
alexe john
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much my friend Stephan van Hulst I will work with your advice and I will follow the course.
 
alexe john
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much my friend Campbell Ritchie I have studied the algorithms and java  I think I am ready.
 
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic