How to get "Eclipse View" widget from SWT Library? - java

As far as I understand, SWT is the GUI building block for Eclipse IDE.
And in Eclipse, we have a concept of "View" widget, such as the following example:
The "View" widget can be docked, minimized, maximized, and can also be made floated.
I think it will be useful for my project, but unfortunately can't find it in the standard SWT Widget shown here http://www.eclipse.org/swt/widgets/
How to create this widget in SWT? Can I just extract it from the SWT library. Or perhaps, it is shipped as extension to SWT?

Related

How to change LookAndFeel in my NetBeans RCP application if it is written in pure JavaFX?

I found there is a link teaching you how to change the LAF of the NetBeans Platform Framework Application. However I don't know how to make it if our application's UI is completely rendered in JavaFX. AFAIK, NetBeans is built in swing, so I'm also wondering, whether the change on LAF only affect the outside window frame and won't affect the part rendered in JavaFX.

How to use drag and drop in IntelliJ for java swing

I am using IntelliJ for java application development using swing . It is difficult to manage content using layout manager. So, is there is any facility to make drag and drop features like in visual studio for vb.net...
You can use IntelliJ's GUI designer
JetBrains website has some resources detailing how to use it:
Designing GUI. Major Steps
Creating and Opening Forms
GUI Designer Basics
Components of the GUI Designer
There are also several walkthroughs available on YouTube
Here are a few screen shots showing how to launch/display the designer:
The designer:

No components visible in visual editor of Vaadin

Do you know why I can't see the components in the visual editor of Vaadin. The thing is that if I drag'n'drop from there, I can put the components into the layout. They are just not visible.
because its about jre,
solution
you should install 7u71 to see your components visible in visual editor of Vaadin

how do i get a collapsable pane like the netbeans palette

i like the style of netbeans palette (Window -> Palette, best seen when creating a gui). i would like to integrate a similar collapsable panel in my application, but i have no idea how to find this component. i guess its not a standard swing component, although it looks kind of similar to a jTree. i poked arround the netbeans framework, but i couldnt find the corresponding class.
I know about swingx's JXTaskPane, but i would really prefer an easy, clean way to hide, show and group ui components, without fancy-animation bloating my app needlessly. The netbeans palette seems just perfect. but how is it called & where can i find it?

Open-source improvements or replacements for Swing components

I develop a number of desktop Java applications using Swing, and while Swing is quite powerful (once you get the hang of it), there are still a lot of cases where I wish some advanced component was available right out of the box.
For example, I'd really like to see easy-to-use components (without writing them myself, which I could do given enough time) like:
Multi-line label
Windows File Explorer-like Icons or Thumbnails view
Drop-down button (like Firefox's old Back button)
5-star rating widget
Combo box with automatic history (like the text field on Google)
An Outlook-style accordion-style bar
and so on
I know of a couple of sources of free Swing components, like SwingLabs, home of JXTable, JXDatePicker, and a few others.
Where do you go for Swing components beyond those included with Java itself?
The following are worth a look:
swingX
Glazed lists
Substance look'n'feel
Flamingo components
Ken Orr's Mac Widgets
Jide's open source components
As for: "Windows File Explorer-like Icons or Thumbnails view"
They are built in in swing.
File explorer icons are accessed through FileSystemView class ( it is used by JFileChooser ) when the L&F is Windows of course.
FileSystemView.getFileSystemView();
Icon driveIcon = fsv.getSystemIcon( new File("C:\\"));
And the Thumbnails icon can be retrieved with the sun.com class that are discouraged by Sun
sun.awt.shell.ShellFolder getIcon( boolean largeIcon )
But this one may not perform very well some times ( due to native resources handling I think ).
I know you can get an awesome wrapping labe and an accordion from javaswingcomponents, however they are not open source implementations.
Otherwise Jide and SwingX are great choices.

Categories