• 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

Tool to create Swing graphics without coding ?

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't want to learn swing right now. I want to make GUI for my code.
The GUI should take input from a user and store it in the right
variable or call a method with that input.

Is there a GUI tool which can help me to do this ?
I am looking for some tool which will let me draw my front-end with all its
elements such as drop down menu, text-box etc. Then, I can join the element
with the variable it is supposed to correspond to.

Thanks.
 
Bartender
Posts: 1558
5
Eclipse IDE Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lexington,

NetBeans IDE provides almost similar facility as you are looking for (i.e. you'll have to drag-drop the controls, and corresponding code will be generated automatically).

However, please note that the generated code is so complex that it's quite tricky to make some extra changes, and its almost impossible to debug that code. If you are in hurry and don't need to make much changes in generated UI, then it's fine. However, in long run, learning swing is much better idea.

Another tools is Jigloo plugin for eclipse - which also provides basic UI functionalities.

I hope this helps.
 
Lexington Smith
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anayonkar Shivalkar wrote:Hi Lexington,
Another tools is Jigloo plugin for eclipse - which also provides basic UI functionalities.



Thank you ! Will try Jigloo. Need a quick fix before I start studying Swing in detail.
 
Lexington Smith
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Lexington Smith wrote:

Anayonkar Shivalkar wrote:Hi Lexington,
Another tools is Jigloo plugin for eclipse - which also provides basic UI functionalities.



Thank you ! Will try Jigloo. Need a quick fix before I start studying Swing in detail.



Does not install from within eclipse, shows an error.
Stack overflow users discourage using any kind of GUI builder
 
Marshal
Posts: 76401
364
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Lexington Smith wrote: . . . Thank you ! Will try Jigloo. Need a quick fix before I start studying Swing in detail.

Don’t. Learn Swing coding the hard way, by hand, and only use a GUI builder when you know what the code means. Otherwise you end up with a large block of code illegible to the human eye and don’t know why your layout looks peculiar.
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Lexington Smith wrote:I don't want to learn swing right now. I want to make GUI for my code.


I think most of the others have covered that contrdictory statement.

The GUI should take input from a user and store it in the right variable or call a method with that input.


There's nothing to stop you doing all of that without a GUI; and furthermore, it's not a bad habit to get into because it separates the problem from its visual representation.

My advice: Unless the display itself is a major part of your problem, solve it first using keyboard input and a console display, and then refactor it for a GUI.
That way, when you come to the Swing part, you'll already be pretty sure that the "problem" part of your app is already working. Also, If you design it right, you'll be a fair way down the road to an MVC solution (Google it).

Winston
 
Lexington Smith
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:

Lexington Smith wrote: . . . Thank you ! Will try Jigloo. Need a quick fix before I start studying Swing in detail.

Don’t. Learn Swing coding the hard way, by hand, and only use a GUI builder when you know what the code means. Otherwise you end up with a large block of code illegible to the human eye and don’t know why your layout looks peculiar.


That is exactly what happened to me after i managed to add it to eclipse. I am like why is the exit button occupying the whole window ? :P
 
Lexington Smith
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Winston Gutkowski wrote:
My advice: Unless the display itself is a major part of your problem, solve it first using keyboard input and a console display, and then refactor it for a GUI.
That way, when you come to the Swing part, you'll already be pretty sure that the "problem" part of your app is already working. Also, If you design it right, you'll be a fair way down the road to an MVC solution (Google it).
Winston



Thanks, thats what I will be doing now. The GUI is not really important. But who likes looking at a dichrome screen ?
 
Winston Gutkowski
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Lexington Smith wrote:Thanks, thats what I will be doing now. The GUI is not really important. But who likes looking at a dichrome screen ?


Me, for starters; but I'm an old fart.

But that's not the point: Solve the problem first. Then display it.

Good luck.

Winston
 
Campbell Ritchie
Marshal
Posts: 76401
364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Lexington Smith wrote:. . . Stack overflow users discourage using any kind of GUI builder

Great minds think alike.

We discourage it too.
 
World domination requires a hollowed out volcano with good submarine access. Tiny ads are optional.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic