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.
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.
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.
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.
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.
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'.
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:
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).
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'
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With