I’ve been told that creating GUI’s using drag and drop generates unnecesary code and is frowned upon by most Java developers.
I’m used to dragging and dropping things using Windows Forms **but ** I’m also very comfortable creating things using XAML for WPF applications.
I’m a bit lost however on how to create a basic GUI in Java using only code.
What I’m using: Netbeans 6.8
What I want to do: Create a simple Window that will act as the main one
that opens up when the application
launches.
How can I create a simple Window with the standard window buttons (close, minimize, maximize) and have a little button on the middle of it. Using only code.
Also, what type of project do I create using NetBeans?
Thanks for the help.
I heard that one before. I don’t know what is with java developers and always insisting that you have to write the gui by code and can’t use drag and drop tools. For me I don’t care if it generates unnecessary code. I personally don’t think it will make that much of a difference.
The only thing I would never recommend is using a designer for websites since they usually never look the way you designed it when you actually test it on a browser but for windows GUI just use a designer.
I look at it this way. There might be a bit more of unnecessary code but your bosses won’t care about that. They will be more concerned why your taking so much longer on something and costing the company so much more money on little to no effect to the final product.
To answer your question you probably can pick up any book from java and they will have tutorials on how to make GUI’s by code.