sentence
stringlengths 1
1.38k
| label
stringclasses 3
values |
---|---|
There is a large number of excellent Beans you could easily add to your development GUI like i.e.
|
p
|
toedter.com JCalendar.
|
o
|
@Andrew in addition to PLAF and layout, JGoodies offers more: beans binding (for presentation model pattern), validation and a "JSR-296 like" framework (that one is commercial).
|
o
|
you forgot for Java Desktop Aplication based on JSR296 as built-in Swing Framework in NetBeans excluding AWT and JavaFX are all of your desribed frameworks are based on Swing, if you'll start with Swing then you'd be understand (clearly) for all these Swing's (Based Frameworks) ATW, SWT (Eclipse), Java Desktop Aplication(Netbeans), SwingX, JGoodies all there frameworks (I don't know something more about JGoodies) incl.
|
o
|
JavaFX haven't long time any progress, lots of Swing's Based Frameworks are stoped, if not then without newest version just my view - best of them is SwingX, but required deepest knowledge about Swing, URL_http://stackoverflow.com/questions/3954616/look-and-feel-in-java [Look- and-Feel] for Swing's Based Frameworks .
|
n
|
SWT isn't based on swing?
|
o
|
part of them on AWT Components, part on Swing JCompoentns, but between AWT and Swing is difference with implemented, accesible and inherits methods, for example Swing JComponents directly (API) implements lots of inherit or nested methods directly from AWT :-).
|
o
|
The JSR296 is dead.
|
o
|
It is no longer "maintained" and the support for it has been removed from NetBeans.
|
o
|
(And it never was a really good framework to start with).
|
p
|
@a_horse_with_no_name that right with same progress in SWT, SwingX, new owner, new maniers.
|
o
|
SWT, developed by IBM, is not based on Swing, it is/was a competing technology.
|
o
|
Swing uses AWT.
|
o
|
JavaFX isn't based on Swing either.
|
o
|
It is an entirely new framework.
|
o
|
Some are calling it the successor to Swing, but it's still too immature to call that battle.
|
o
|
I am making the exact same decision at the moment, and Swing is my candidate, simply for the fact that it is the most mature, yet realistic option available.
|
o
|
SwingX is extensions to Swing (which is why it requires Swing knowledge), in fact, some of SwingX's features have been rolled into Swing itself.
|
o
|
I've been quite happy with Swing for the desktop applications I've been involved in.
|
p
|
However, I do share your view on Swing not offering advanced components.
|
o
|
What I've done in these cases is to go for JIDE.
|
o
|
It's not free, but not that pricey either and it gives you a whole lot more tools under your belt.
|
n
|
Specifically, they do offer a filterable TreeTable.
|
o
|
Good to know!
|
p
|
So JIDE has created their own components based on Swing...
|
o
|
Yes, JIDE has made quite a few components covering grids, trees, tables, graphs and the like.
|
o
|
Like I said, it's not free but given the time it would take to make these things yourself your'e probably better off using something that is already made.
|
p
|
Furthermore, as far as I understand, JIDE is flexible with regards to letting open source projects use their components in exchange for a link to their website or a logo in the 'About' dialog.
|
p
|
I would go with Swing.
|
o
|
For layout I would use JGoodies form layout.
|
o
|
Its worth studying the white paper on the Form Layout here - URL_http://www.jgoodies.com/freeware/forms/ [ URL_http://www.jgoodies.com/freeware/forms/ ] Also if you are going to start developing a huge desktop application, you will definitely need a framework.
|
p
|
Others have pointed out the netbeans framework.
|
o
|
I didnt like it much so wrote a new one that we now use in my company.
|
o
|
I have put it onto sourceforge, but didnt find the time to document it much.
|
o
|
Here's the link to browse the code: URL_http://swingobj.svn.sourceforge.net/viewvc/swingobj/ [ URL_http://swingobj.svn.sourceforge.net/viewvc/swingobj/ ] The showcase should show you how to do a simple logon actually.. Let me know if you have any questions on it I could help.
|
p
|
Is this GUI threadsafe (Using Swing)?
|
o
|
I have the following code in my constructor for my GUI CODESNIPPET_JAVA1 .
|
o
|
The problem was that when I the "//do stuff" runs, it takes a while, and it doesn't let me do anything else.
|
o
|
So I made "//do stuff" into a thread, and it runs, and I can do other stuff in the GUI at the same time.
|
o
|
I wasn't sure if this was threadsafe or not, and if not, how to fix the problem.
|
p
|
The problem is that you were probably blocking the main Swing event thread (the thread that handles things like button clicks).
|
o
|
You can read up about it (and one possible solution) on URL_http://download.oracle.com/javase/tutorial/uiswing/concurrency/worker.html [Swing-Worker-Threads] .
|
o
|
I discovered them recently and this is really it.
|
o
|
You should check it out.
|
o
|
IDE for Swing.
|
o
|
Is there any IDE that simplifies creating Swing applications (ideally something along the lines of Visual Studio) .
|
o
|
@Thorbjrn Ravn Andersen news only all answers about Netbeans and Framework based on JSR296 are outdated because this Swing Framework was refused by Oracle, and later was depreciated in the Netbeans Platform.
|
n
|
@mKorbel SAF is deprecated, Swing is not.
|
n
|
@Thorbjrn Ravn Andersen huuuh sorry???
|
o
|
when, where, ...
|
o
|
I talked about Swing :-), only about Swing Framework or Framework based on JSR296.
|
o
|
@mKorbel Netbeans editor works just fine with "plain Swing" applications.
|
p
|
@Will - If this question is closed, what happens to the bounty?
|
o
|
@Rothschilde should be refunded.
|
o
|
Like others have mentioned, Netbeans' visual editor is pretty good, but its based pretty heavily on the URL_https://java.net/projects/appframework/ [Swing-Application-Framework] so you'd need to get an understanding of how it works to properly use it (although you don't need to dig in to just test things).
|
p
|
Other than that there's also:
the URL_http://www.jetbrains.com/idea/ [IntelliJ-IDEA] visual editor ( URL_http://www.jetbrains.com/idea/features/gui_builder.html [flash-demo-of-the-features] )
and Eclipse's URL_http://www.eclipse.org/vep/WebContent/main.php [Visual-Editor] Personally I've used Netbeans' and IDEA's visual editors.
|
o
|
Both are nice but I thought Netbeans had a leg up because it doesn't use any proprietary way of saving the GUI structure and instead does something similar to what Visual Studio does - auto-generating the code that you can then add to.
|
p
|
IDEA stores the information in a separate file which means you have to use IDEA to edit the layout visually later.
|
o
|
I have not used Eclipse's Visual Editor.
|
o
|
My vote is for Netbeans' visual editor.
|
o
|
I think it satisfies what most people are looking for in a visual editor and leaves it flexible enough to plug the holes manually through code without affecting the visual editor (so you can switch back and forth between code and design views without breaking either).
|
p
|
That is not true.
|
o
|
Netbeans' visual editor is not heavily based on Swing Application Framework at all unless you opt-in to use the framework in the beginning.
|
n
|
Matisse did use to have an extra dependency on GroupLayout but now it's included in jre so there is no dependency on SAF.
|
o
|
An example of that dependency is the storing of string literals used for display (like label text).
|
o
|
Those are stored in properties files that are automatically managed (loading, structure) by the SAF.
|
o
|
It's all built-in to the latest JREs so you don't need extra jars, but you do need to understand the architecture of the SAF in order to use it effectively.
|
o
|
Yeah that is not true.
|
o
|
It does not depend on the Swing Application Framework at all.
|
o
|
You do not have to know anything about the SAF.
|
o
|
I have done multiple projects in Swing on NetBeans and I know absolutely nothing about the SAF.
|
o
|
Based on my experience, my comment above applied in 2008.
|
o
|
But that was 2+ years ago and I haven't really used Netbeans heavily since so I do not know how things have changed with the latest releases.
|
n
|
I like the URL_http://www.netbeans.org/features/java/swing.html [Swing-GUI- Builder] from the URL_http://www.netbeans.org/ [NetBeans-IDE] .
|
o
|
There are 2 that you can use (I've used them both, and they are both very powerful, and easy to use):
URL_http://netbeans.org/ [Netbeans] which has a built in URL_http://netbeans.org/features/java/swing.html [Gui-Builder] .
|
p
|
or you can use:
URL_http://www.eclipse.org/ [Eclipse] with the URL_http://www.eclipse.org/windowbuilder/ [Windowbuilder] URL_http://marketplace.eclipse.org/content/windowbuilder-pro-gui-designer [plugin]
(it can be downloaded URL_http://marketplace.eclipse.org/content/windowbuilder-pro-gui-designer [here] and URL_http://www.eclipse.org/windowbuilder/download.php [here] ) Personally, I prefer eclipse with URL_http://marketplace.eclipse.org/content /windowbuilder-pro-gui-designer [Windowbuilder] , but that's just me.
|
p
|
You can use either one.
|
o
|
is a picture of the URL_http://www.eclipse.org/windowbuilder/ [Windowbuilder] plugin:**!
|
o
|
[enter image description here]( URL_http://i.stack.imgur.com/HRrVE.gif )
here is a picture URL_http://netbeans.org/ [netbeans'] built in URL_http://netbeans.org/features/java/swing.html [Gui-Builder] :** !
|
o
|
[enter image description here]( URL_http://i.stack.imgur.com/uBnha.png ) .
|
o
|
For me, the best visual swing editor is URL_http://www.jformdesigner.com [JFormDesigner] , which you can run standalone or as a plugin for Intellij and Eclipse.
|
p
|
It generates proper (actually readable) source code, it's very ergonomic and intuitive and, above all, very extensible.
|
p
|
That last point is really important, because if you want to build a decent swing application, you'll have to extend the base components or use some third-party libraries and it
be easy** to integrate those in the visual editor.
|
p
|
It's not free but it's a bargain for the power you get (129 EUR / 159 USD).
|
n
|
I've been using it for a few years and love it.
|
p
|
+1.
|
o
|
JFormDesinger is the most polished GUI Builder I've ever seen.
|
o
|
You just have to try it to see how it works - no screenshot can show how good it works.
|
p
|
I've worked with JFD for quite a while, and I can definitively say that it's miles ahead of other options I know.
|
o
|
Try URL_http://www.instantiations.com/index.html [Instantiations] ' URL_http://www.instantiations.com/windowbuilder/index.html [Windows-Builder- Pro] .
|
o
|
It includes URL_http://www.instantiations.com/windowbuilder/swingdesigner/index.html [Swing-Designer] , which is a Swing UI builder.
|
o
|
It is based on Eclipse.
|
o
|
This is now part of [Google's Web Toolkit]( URL_http://code.google.com/intl/sv - SE/javadevtools/wbpro/).
|
o
|
I think this is the superior option.
|
o
|
It has a lot of detail and if you start hand-coding (you will) it offers a lot of flexibility.
|
o
|
Also, the code it generates is easily readable.
|
p
|
It handles internationalization schemes and dynamic calls without breaking.
|
o
|
I also like the lack of meta-data.
|
n
|
It simply drops a little piece of information into your Javadoc marking it as an entry point.
|
n
|
Netbeans has some GUI-building support, and it's one of the most popular Java IDEs on the market.
|
p
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.