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.
Related
I am on a project that uses GWT/ eclipse/ SQL Developer and the guy who originally implemented it is no longer on the project. We have a normal WAR and everything but the jsp files are kept in a different environment. Anyone know why? Can they not be run through GWT?
The issue we are facing is the only way we have to test/ compile JSPs is to actually deploy it into DEV which takes a lot of time. So we are in need of being able to run JSPs locally.
I have been told someone used to use Jdeveloper to do this, but I am unfamiliar with it and the only YouTube tutorials are in a foreign language (in regards to using JSPs with JDeveloper 11g). Someone else suggested notepad/ Tomcat? Or yet another option would be to configure eclipse to run it with our current project in GWT?
I am not familiar with any of this being I am brand new to JSPs,Tomcat, etc. and am in desperate need of some help.
What is the best way to accomplish my needs and are there any guides/ tutorials to help me through the process?
My requirements are just to run a folder with 4 linked jsps and be able to connect to the database to provide the information.
"I am not familiar with any of this being I am brand new to
JSPs,Tomcat, etc. and am in desperate need of some help."
That's sounds true!
One answer about the different environments is that jsp needs "EE" .I.E. EclipseEE but the GWT app just uses plain old eclipse (like an eclipse helios release with GWT plugin).
Regarding your requirements, I can't understand them clearly enough to begin to provide helpful information, but good luck.
Tony
I developed a Java Swing application using Eclipse. I would like to integrate the existing help documentation into my GUI.
Basically I want to start my help window with a typical menu item as common for most programs. So nothing
fancy at all.
I spent already a lot time to find which option would be best for my case and I'm kind of stuck. I thought integrating the help would be straight
forward but meanwhile I think this is not the case.
If anyone can point me in the right direction or show me a tutorial where I can get the idea how to accomplish it with eclipse help
and a swing application I would be really happy. I find a lot of tutorial discussing RCP applications or writing an eclipse plugin.
Somehow I tried a lot for such an easy usecase.
The following options are available as far as I can tell:
1. Eclipse like help
My favorite option would be to use an eclipse like help window but after playing around a bit I have the slight feeling
that this is only possible for eclipse RCP applications. Since my Swing GUI is not a RCP application I think that wont work
for me.
Is it possible to integrate the Eclipse help with only my help content into my Swing application? Eclipse won't be installed
on the PCs where my application is used.
Most probably those PCs are not even connected to the internet, so using the Eclipse help in info center mode is also not
an option.
Using the eclipse help in standalone mode requires to specify the eclipse installation directory when launching it. That's where I'm stuck.
2. Java help or Oracle help Java
Using these options is my next call also not my favorite one. I think both options are kind of outdated.
For Java help I would probably follow the Docbook approach. Even if I don't understand why this is so complicated at
all...
3. Custom panel
I'm almost close to design a customized panel to display my help content. Then I'm at least able to make sure that I like
the way it is designed.
In the beginning I thought this might be more time consuming, but after reading what effort is necessary to get a nice looking
help with Java help I think this option is not the worst choice.
Thanks Joe
My solution for now is to create the complete help system with HelpNDoc and then simply generate the HTML documentation.
The HTML document I will open from my swing GUI.
I also tried the CHTML but to be honest I like the look (which can be nicely configured) int the browser more.
Windows Help looks also too outdated to me. But that's just my personal opinion.
Right now this is the right solution for me and my energy will go into the help itself.
Thanks to everyone.
Joe
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.
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 :)
Netbeans seems to say in several places that it supports a library to just host the "Netbeans editor" widget in some other program. It has some weird documentation that seems to say a lot, but doesn't really say much about how to use it: http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-editor-lib2/architecture-summary.html
I can't seem to find any download for the "Netbeans editor library" (1 or 2), and the documentation they provide says to download the entire mercurial repository, which doesn't really help me, since it doesn't tell me what is part of this "library" and what is not.
If someone could point me to a download for this library, or some minimal documentation about how to use it, that would be great. I've already seen the blog post here, but it doesn't really help with getting the library, and it seems to be talking about classes which I can't find in the Netbeans sources I downloaded (Maybe a different version?)
The NetBeans editor is part of the NetBeans platform and thus is part of either NetBeans IDE itself or the separate platform download.
The platform itself can be downloaded from here: http://platform.netbeans.org/platform-get.html
But I'm not sure if you can use a platform module outside a platform application. If that should be possible it most probably will be a very complicated thing to do.
You might want to have a look at this article:
http://platform.netbeans.org/tutorials/nbm-htmleditor.html which explains how to create a standalone HTML editor based on the NetBeans platform by simply customizing the platform.