Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WindowBuilder Design Tab incomplete in Eclipse

I was creating a JFrame for a project and while trying to edit it, the design tab was blank.

I've created a test project with everything on default and this "error" still there.

This is what the design tab shows

Here's the code of the test:

package test;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class Test extends JFrame {

private JPanel contentPane;

/**
 * Launch the application.
 */
public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            try {
                Test frame = new Test();
                frame.setVisible(true);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    });
}

/**
 * Create the frame.
 */
public Test() {
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setBounds(100, 100, 450, 300);
    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    contentPane.setLayout(new BorderLayout(0, 0));
    setContentPane(contentPane);
  }

}

And this is what i've done already:

  • WindowBuilder is already installed, both 1.9.5 and 1.9.6.pre Nightly Build (i've tried installing only one of them too but no success).

  • I have installed all the necessary packages for Swing, including: Swing Designer, All SWT Components, and all WindowBuilder Components.

  • I've tried to uninstall and install it again all of those packages and components, but still no success.

  • The option "Associate WindowBuilder editor with automatically recognized Java GUI files" on Window>Preferences>WindowBuilder is already checked.

The only thing left would be reinstalling Eclipse which i'm kinda concerned with because of how many plugins i have installed. Reinstalling them would be a pain (kinda of).

Does WindowBuilder have some incompatibilities with some plugin? I have a few for Python and others that is just QoL.

EDIT: Problem solved, for anynone going through that as well, just add --illegal-access=permit in the eclipse.ini in the last line.

like image 442
ReaperClown Avatar asked May 05 '21 02:05

ReaperClown


People also ask

How do I get the Design tab in Eclipse?

If you can't see the Design tab yet, try the following: When opening a file, right-click and select 'Open with' > 'WindowBuilder Editor'. If Window Builder is installed, you will see the Design tab in the newly opened file.

How do I get WindowBuilder in Eclipse?

In order to install WindowBuilder on Eclipse let's click on Help -> Eclipse Marketplace…, type “windowbuilder” into “Find:” field and press Enter Download The Appendix. Then press the Install button and follow the wizard until it asks to restart Eclipse Exo Growl download.

How do I open a swing designer in Eclipse?

Just like others said, the solution is to right-click on the file and choose Open with ... > WindowBuilder Editor . Then the Design panel should appear on the bottom left of your screen.

How to Open Design tab in Eclipse 2020-09?

Help-->Eclipse Marketplace--> Type "WindowBuilder 1.9.4 (the last version up to now I think) and click update. After updating WindowBuilder, the design tab is opening now. Bests. I had the same issue after a fresh install of Eclipse 2020-09. Did you solve the problem? When opening a file, right-click and select 'Open with' > 'WindowBuilder Editor'.

Is there a windowbuilder tool in Eclipse?

I'm new to the WindowBuilder tool of Eclipse (or any frontend dev), and I installed WindowBuilder, SWT to check it out. When creating a new project, I go to:

How to add Java GUI to eclipse window builder?

The option "Associate WindowBuilder editor with automatically recognized Java GUI files" on Window>Preferences>WindowBuilder is already checked. The only thing left would be reinstalling Eclipse which i'm kinda concerned with because of how many plugins i have installed. Reinstalling them would be a pain (kinda of).

How to open a file with window builder installed?

When opening a file, right-click and select 'Open with' > 'WindowBuilder Editor'. If Window Builder is installed, you will see the Design tab in the newly opened file. Hope this solution helps you. For reference, I checked it in eclipse 2020-12. right-click and select 'Open with' > 'WindowBuilder Editor'


1 Answers

This is a known and already fixed issue when running Eclipse with Java 16 or higher:

WindowBuilder issue #45 - Reflective access with CGLIB breaks windowbuilder in java 16 and higher

Update: The issue has been fixed. It is already available in the WindowBuilder Nightly Build (update site: https://download.eclipse.org/windowbuilder/lastgoodbuild/) and will be available in the upcoming WindowBuilder 1.9.8 release.

like image 190
howlger Avatar answered Oct 17 '22 17:10

howlger