Is SWT only in use for Eclipse? Like is it basically Eclipse's version of Swing? I was reading some stuff online when I thought of this.
Ex. http://www.mkyong.com/swt/swt-hello-world-example/
Is SWT only in use for Eclipse?
No.
SWT: The Standard Widget Toolkit
SWT is an open source widget toolkit for Java designed to provide efficient, portable access to the user-interface facilities of the operating systems on which it is implemented.
http://www.eclipse.org/swt
Related
I've been coding basic UIs in Java manually and using NetBeans, but recently switched to Eclipse Indigo. I use the visual class builder to design SWT user interfaces in Eclipse but found out that it's painfully slow and laggy. It takes about four seconds for a change to be displayed and it's virtually impossible to build complex and large UIs with it effectively. Is this its usual behavior and is this the preferred way of building a Java Swing GUI in Eclipse?
Since Google aquired Instantiations and then donated WindowBuilder to Eclipse foundation it is the preferred free, open source visual GUI editor for Swing, SWT and GWT.
You can also use Jigloo.
Their eclipse update site it, http://cloudgarden.com/update-site
I have used it in windows quite well. But when I use it in mac, most of the time it crash.
But windows builder seems better to me.
I'm writing an app in Java and swing using Netbeans, and I need property editor (like this). How I can add it to my application?
I really recommend using the NetBeans Platform. It's really simple and well documented rich client platform. Then you can use exactly the same property editor as in NetBeans. Porting from plain Swing applications to NeatBeans RCP is quite simple too.
I want to create a desktop application, but do not want to use SWING. I have heard about of SWT as alternative to SWING. Any another solutions exists? And what do you recommend to use?
You can build an Eclipse Rich Client Platform (RCP), using SWT and JFace.
What about just AWT in java.util.awt and subpackages? You can use the older equivalents of Swing's components.
i'm new for java how can i add a button or others like Microsoft visual studio?
If you mean that you want a GUI builder, you'd better consider NetBeans with its Matisse. I think it is the most popular now for Swing apps.
This Google search shows a number of GUI builders for Eclipse
Many people prefer building GUI in Swing manually (just writing code) because it is by far not that difficult as in MSVC++ applications.
If you are looking for the Eclipse IDE to help with the development of Java applications, this can be found on eclipse.org.
Though I'm not sure I understood your question correctly.
What you are looking for is Eclipse Visual Editor. However, as pointed out by others, the GUI Builder from NetBeans (formerly known as Matisse) is more popular for Swing development.
Download Netbeans, its visual editor is very good, and will give you a the perfect Swing User Interface. Its also very easy to use.
When making desktop applications, i always do it with Netbeans, if i know the application will be more complicated later, then i do only one or two JFrame classes with Netbeans, and use them in a new project in Eclipse :)
Is there any framework or lib out there to create a Java swing menue that can be edited by the user via drag and drop?
Added: Implementing a polished solution myself can take a lot of time. What i would like to see: display the entry while dragging, opening submenus automaticially, showing a line where the item would be placed when releasing the mouse. Actually like the windows startmenu in XP. This would take a lot of time, i am still hoping to find framework or a subclassed Jmenu with these features.
You can implement drag and drop on most (all?) Swing components. See this tutorial to get started.
Update: based on your updated question. have a look at JFrameBuilder (note that its not free).
JFrameBuilder is an easy-to-use visual Java GUI builder.
JFrameBuilder provides the application GUI solution for Java developers. It enables Java developers to create sophisticated Swing GUI applications using drag-and-drop interface without spending a lot of time writing code.
Personally I find it a lot simpler to write pretty UIs in SWT (the toolkit used by Eclipse), it has more access to the underlying OS and provides a richer experience that's closer to what you're after in my opinion. Here's a guide to implementing drag and drop in SWT.