• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tool to create Swing graphics without coding ?

 
Lexington Smith
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • 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.
 
Anayonkar Shivalkar
Bartender
Posts: 1557
5
Eclipse IDE Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
Campbell Ritchie
Sheriff
Pie
Posts: 49845
70
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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.
 
Winston Gutkowski
Bartender
Pie
Posts: 10509
64
Eclipse IDE Hibernate Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
Pie
Posts: 10509
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • 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
Sheriff
Pie
Posts: 49845
70
  • Mark post as helpful
  • send pies
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic