I've been given an old java project created by an ex-employee to improve, but I'm having issues with trying to get a GUI tool working with the existing forms/java files in the project.
I've installed WindowBuilder Pro for Eclipse 4.3, but I can't bring up a design view for the main form window. Otherwise it does work if I add a new blank JFrame.
I also created the same project in Netbeans 7.3, but when I try bring up the design view, I'm given an error saying support for swing has been discontinued.
Does anyone know what I'm missing or what I could do?
If it helps anything, it was originally created with an earlier version of Netbeans, though I'd like to avoid using it if I can (partly because I don't know which version).
Does anyone know what I'm missing or what I could do?
Learn how to write a Swing GUI. For that, see Creating a GUI With JFC/Swing.
Related
Is it possible to get a good preview of the java swing application without running it repeatedly in IntelliJ? Whenever I modify code I have to run it again and again so that it looks good.
It also generates a bunch of classes that I don't really need since I'm committing to a GitHub repository How do I do this?
I don't know about IntelliJ, but Eclipse has WindowBuilder, a visual designer and development tool that supports Swing. You can install it into a variety of Eclipse releases, I don't think it comes pre-installed in any of the Eclipse packages.
eclipse and NetBeans does have some WindowBuilder future
if you are using eclipse download this
and if you are using Netbeans it does provide a WindowBuilder itself so read this article
I have started exploring javaFX, and came to know about aquaFX, I downloaded it and added it to my project as referenced libraries, but I don't know how to use aquafx in my project, I'm just trying to develop a basic UI for a desktop application.
Please explain how to use aquafx in my project, I know about UI elements and UIcontrol of javafx, but I can't understand how can I use aquafx with them.
I'm currently using eclipse oxygen 3A.
thanks
I am new to programming,
Can anyone suggest how to construct/edit the user interface in Java GWT with ui binder. A GUI editor/designer should be handy but unfortunately I couldn't find one
I am working on an existing project that uses Java and GWT with ui binder with the ui.xml files.
Eclipse Luna as the ide(python in the backend that's another story)
Searched across the internet to find that there is a GWT designer tool but that is discontinued on latest GWT. Rest all other tutorials says to add/edit the .java and .ui.xml codes which is a tired process as my project has got plenty of sheets.
Thanks in adavnce
Just do it by hand.
No editor exists anymore. The old editor you found is dead.
I guess because it was not good enough.
Never used it, programming should be done by hand.
This is more like a work around(as I wouldn't consider this an actual fix/answer)
Here is what I did
Loaded my Project onto Eclipse Kepler with GWT 2.6.1(this version has the fixed designer tool)
Voila, it works like a charm and now I can easily edit/modify the UI.
I know its a dead end if I can't move with an updated version, but its okay for now.
Hope I find an alternate.
Many thanks for the suggestions and answers.
I usually write java code using a simple text editor and .bat files to compile and run. I'm not used to IDEs like Eclipse or Netbeans and as a result every GUI I've made so far has been written by hand.
Questions:
Can I use eclipse to build a GUI easily (e.g. drag-drop features)?
Can this generated code use only the basic java packages (swing, awt) and not any other package provided by the IDE?
I'm saying this because -correct me if I'm wrong- from what I have read so far, I understand that Eclipse and other IDEs use their own packages (to achieve better layouts for example). I would like to avoid this dependency and if possible copy-paste the code generated by Eclipse and then work in the simple way I'm used to.
Thanks in advance.
[edit]
Having tried it for a couple of days, I can now say that WindowsBuilder is exactly what I was looking for. Thank you for all your replies.
Eclipse uses the Standard Widget Toolkit (SWT, not included in JRE by default), Netbeans uses Swing (included).
Since recent Eclipse versions, it includes WindowBuilder to create Swing or SWT via drag'n'drop. WindowBuilder is even bidirectional, so code generation is supported as well as reflecting hand-made changes. It don't know if Netbeans includes this feature, too. In 'New' dialog of Eclipse you find everything you need under the WindowBuilder category.
Yes , You can use the feature of drag and Drop in java by going through these few Steps:
Help → Eclipse MarketPlace → WindowBuilder(Install)
Can I use eclipse to build a GUI easily (e.g. drag-drop features)?
Yes, go to the Marketplace and pull in WindowsBuilder; it supports bi-directional GUI drag-n-drop / direct-code editing.
Can this generated code use only the basic java packages (swing, awt) and not any other package provided by the IDE?
The code generated by the Swing Design tool is strictly Swing/AWT based.
It does offer design tools for SWT and GWT as well.
If you want to create Drag n Drop Swing GUI, you should try Netbeans. Eclipse may have a plugin but i usually find netbeans very good in GUI and it is also recommended by Sun for making Swing/AWT GUI
I haven't seen such in Eclipse. In Netbeans you can of course. But I am warning you! Create the GUI by hand. Netbeans is using GroupLayout to build drag and drop GUI, and that's a nightmare when you look at it!!! If eclipse has the same function, don't expect more than this!! Apart from that, not like .NET, most Java developers create everything by hand (Yes, real programming..That's why most say Java is hard). So, it is better if you can get used to it :)
I cannot find one online and I am surprised there isn't one... but is there an online Java GUI Layoutmanager at least?
WindowBuilder for Eclipse is phenomenal. One of the things that awesome about it is that you can hand modify its' generated code and it will pick that up without a problem.
What do you mean by an online GUI builder? If you want one that's a webapp, it's not likely you're going to find one.
If you're looking for a GUI to build a GUI, I would recommend the Netbeans IDE. I forget where it is exactly in the IDE, but you can basically just do file->new->java-gui (or something of the sort) and you will get a very nice interface for constructing swing gui's.