Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Gridbaglayout unwanted columnWidths, rowHeights, etc...(Unwanted code generated for GridBagLayout)
Gridbaglayout unwanted columnWidths, rowHeights, etc... [message #1759995] Fri, 21 April 2017 04:40
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 101
Registered: December 2010
Senior Member
I've noticed that when I use a GridBagLayout in a JPanel, WindowBuilder is constantly generating code like:
		GridBagLayout gbl_contentPanel = new GridBagLayout();
		gbl_contentPanel.columnWidths = new int[]{0, 0, 0};
		gbl_contentPanel.rowHeights = new int[]{0, 0};
		gbl_contentPanel.columnWeights = new double[]{0.0, 1.0, Double.MIN_VALUE};
		gbl_contentPanel.rowWeights = new double[]{0.0, Double.MIN_VALUE};

By having these lines, it pretty much completely breaks the power of GridBagLayout, and many of the cell specific settings will NOT work correctly.

Is there any way to prevent it from generating those lines?
Previous Topic:WB not rendering/painting in IDE
Next Topic:WindowBuilder offline installation - Eclipse Neon
Goto Forum:

Current Time: Wed Sep 28 10:04:33 GMT 2022

Powered by FUDForum. Page generated in 0.02201 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top