Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How GUIs are developed in the Industry  RSS feed

 
Gihan Madushanka
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone !!!

I am still learning Java and these days I am in the process of designing UIs using Netbeans IDE.
It is very easy to use Netbeans drag and drop facility to design UIs rather than writing codes for each and every swing component.
What I want to know is how GUIs are developed in software companies?
Is it a good practice to use drag and drop facilities as a professional?
 
K. Tsang
Bartender
Posts: 3624
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know how the industry thinks but it is not recommended to use drag-and-drop tools like the one comes with Netbeans to do GUI.

As a developer, it is better to learn the API and use coding to create components.

Coding the GUI will make the source more easier to read since drag and drop software will produce hidden extra source code which is understood by that software.
 
Gihan Madushanka
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the comment. What my opinion is use of codes to create components will help a beginner like me to master the language, but creating our own codes takes relatively a long time. Is it practical when developing products which has a tight schedule ?
 
Campbell Ritchie
Sheriff
Posts: 53734
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gihan Madushanka wrote: . . . Is it practical when developing products which has a tight schedule ?
Yes. If you become experienced you can write the code much faster.
 
Randall Twede
Ranch Hand
Posts: 4583
6
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't work for a company, but i will give my opinion anyway. i don't use an IDE. i like writing it myself(like someone else said, the source code is much more readable). you would be surprised how quickly you can create a GUI once you have a few under your belt. copy/paste/edit is my best friend
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gihan Madushanka wrote:Is it practical when developing products which has a tight schedule ?

I have always had doubts if the DnD is really fast (as compared to writing code).

Consider a use case. Set the JFrame title to 'DnD Sucks'
With code all I need to do is write one line


With DnD, I think this would be
Right click frame.
Bring up properties dialog
Scroll to find the 'title' attribute' If it doesnt exist, create one.
Set the value
Commit

Second use case. Set the JFrame title to Welcome back, {userName} after the user is successfully logged in. Let us imagine the authentication call returns a User POJO which is accessible to the frame.
With code


With DnD, can one even do such a kind of thing?

I think hand coding wins, well, hands down.
 
Bernhard Goetz
Ranch Hand
Posts: 57
1
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have been creating swing GUIs for some years (at work). I still regard myself as a novice in the gui/swing field as the frequency at which we create new UIs is rather low compared to other programming fields. Most of our people use window builder. We switched from visual editor some time ago. It's easy to create GUIs fast AND have a fast preview of it. Depending on your kind of application, running the application may be as fast or even faster. If we create more sophisticated GUIs, window builder is just a tool to play around with the layouts. When we start to implement events and integration into the application you still have to review the source completely. I won't compare hand coding with editor creation since I regard the editors as an assisting tool - not a replacement.

Best regards,
Bernhard
 
Gihan Madushanka
Ranch Hand
Posts: 78
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!