How to surround JTable with JScrollPane through windowbuilder?

In the Eclipse Jigloo plugin, you can right-click on JTable and select "surrond with JScrollPane".

But in windowsbuilder pro plugin I can't find a way to make JTable with JScrollPane

+6
java eclipse user-interface swing eclipse-plugin
source share
4 answers

Add a scroll bar to gui. Then drag the table onto the scroll bar. While dragging over the window of the scroll window, select its areas - make sure that you are down to the center.

+8
source share

The following also changes:

  • Add JTable
  • Right click on JTable in tree structure
  • Select: Surround With> JScrollPane
+4
source share

Another option would be to use NetBeans to execute some of your Swing layouts.

I had limited experience with WindowBuilder, but I'm using NetBeans for prototyping and it's much easier to create user interfaces. The resulting code generated from NetBeans will also be available for viewing using WindowBuilder.

+1
source share

I am using WindowBuilder 1.7.0 and Swing designer 1.7.0 in Eclipse on Mac. At first I found a similar menu like Jigloo, which I did not find. My Jigloo always crashed into a Mac and showed a licensed message, so I dropped it :) Later with some games I found how to do it in WindowBuilder, especially if you already developed JTable / JTextArea / JTree and don’t want to delete it. After that you need to scroll through them. You can use the tree structure on the left. Usually you cannot drag a component to the scroll. However, add scrolling to the frame. Set the correct layout for the component in which you want to place the scroll. Usually its BorderLayout, maybe in a JPanel. Drag the JScrollView to the target area. Use the tree view for all of these actions. Then finally drag the JTree / JTable to the JScrollPane into the frame design view. In my experience, this works better. Play with the layout of the parent components.

enter image description here

0
source share

All Articles