Design Tab is Blank in Eclipse IDE - java

I recently bought Macbook with an M1 processor for programming. I have installed Eclipse IDE for JAVA Programming. After Installing Window BUilder and the required Softwares from Eclipse Market place for java GUI, My design Tab is still blank. The same method worked on my Windows desktop but not working Here What should I do? So it works

I faced the same issue, it was apparently a bug from WindowBuilder. Is fixed in the upcoming version 1.9.8. You can use it if you want.
Found details here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=572210
https://github.com/eclipse/windowbuilder/issues/45

Either your Java Class File does not extend a JFrame, or you do not have a JComponent.
To fix this, make sure that your Java Class File deals with JFram, JPanel, or JComponent. To make such class, create a JComponent class using this.
Otherwise, reinstall your Windows Builder.

Related

Java swing - Keyboard input does not work on windows [duplicate]

This question already has an answer here:
addKeylistener() not working
(1 answer)
Closed last month.
I am making an RPG game in Java using my Swing-based engine, and everything works on my FreeBSD as well on Linux, but on Windows it seems like the keyboard handler is broken. I have no idea why it happens, the same JAR file works good on Linux/BSD.
I have no source why does this not work as no error popups in the console and everything runs as expected except for the key input.
The game is too large to provide source scraps here (I have no idea what is wrong), but it is on my git: http://codeberg.org/glowiak/gnengine
Package com.glowiak.gnengine contains the engine, com.glowiak.myrpg contains the game and that's all worth noting.
I tried switching JREs but nothing did fix it, on Linux OpenJDK ran it fine, on Windows it did not.
On windows, if you click the game window, then press the Tab key, the controls then work. This is because when you press the the Tab key, you are setting the focus onto your JPanel, which is required for a Key Listener to work properly in java swing. For more details, see this answer by hovercraft full of eels.
My recommendation would be to follow the advice of that answer, and instead of using KeyListeners use KeyBindings.

Elements in Eclipse WindowBuilder Look Old

So, I'm making a window in WindowBuilder with Eclipse Photon, and this is the GUI:
It looks pretty normal. However, when I run the program, I get some Windows Vista-looking design:
It used to show up regularly, but for some reason it has changed, any idea what triggered this, and how to get it back?
P.S Just so you know, in case this proves useful, I am using Eclipse Photon, but for personal reasons, I installed Eclipse Neon about twenty minutes ago. My thinking is maybe Eclipse Neon changed it during installation, is that right?
I think you have to fiddle with the look and feel with Swing [1]. You can also switch to SWT which uses the native widgets as much as possible instead of drawing each widget itself.
[1] https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

Artifacts when drawing Qt & Java apps after durable work on Ubuntu 15.10 (and other)

Short history of problem:
After upgrading to Ubuntu 15.10 I had some problems with any Qt-apps after durable work with IntellijIDEA. In apps like tortoisehg I saw painting problems, like not filled areas or shifted text. It was fixed after reading post in archlinux forum. Just set up property for Qt and changed my openjdk to oracle's.
The next story, that possibly is relative to first, consists in my work in IntellijIDEA and other Java swing applications (like Netbeans RCP): after long term working some dialogs became transparent, were inaccessible or just clicked through it to something under. Reopen of the dialog or window helps, but my colleagues have same problems on other OS, like Fedora (with KDE).
This bug is annoying, because our product is written on Netbeans and works under *nix distributive. Sometimes we stuck with problem of click-through problem: dialog or window just clicked into window after it.
I think the problem in wrong settings of x-server and in Qt- and Java- toolkit clash. This leads to artifacts on both application groups.
Does anybody stuck with this problem and do you have some ideas to resolve it?
The possible reason is described in Russian here (https://toster.ru/q/267833?e=3090918#clarification_329784).
Some bugs of it are found in:
https://bugs.kde.org/show_bug.cgi?id=350976
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1512760
Summary: the Java and Qt applications use shmem that is never cleaned by Java, after some time Qt cannot use this memory to work right. Google it with words «Java Qt shmem».

GUI designer in netbeans does not load a specific JPanel designer

It has been a few days that I've started using netbeans's gui designer.
I have built and tested all the panels I need for my project,
but today when I wanted to add some action listeners to my MainPanel.java class and tried to open it in design view, it didn't open.
It shows loading the panel but there is no sign of viewing it.
I can see the JPanel's code and I can see and open my other panels' design view.
It's only this one.
I searched the net but I couldn't find a proper answer.
Can anyone help me?
Does anyone have any idea what is the problem?
I'm using windows 7 and netbeans 8.0.2.
here are my design classes:
FinancialDocumentsJFrame.java
MainPanel.java
BillEntryPanel.java
ReceiptEntryPanel.java
SearchPanel.java
PaymentJFrame.java
I can open the design view of other classes. It's only MainPanel.java that dose not open and can see its code only. I'm also using some other java classes, too. Rather than form classes.
I made a new class and copied the existing class code in to it and it worked again.
Good Luck with your codes.

Is there a real Android visual designer for IDEs?

I'm trying to develop an Android application with UI. So it's little complex for me to create UI with codes. I was using Visual Studio for long time where visual design is piece of cake. I also used Netbeans and Eclipse for java applications with UI but when it comes to Android I can't find a good way for UI desing. There is a visual design part in Eclipse but I want to use Netbeans as long as it's possible. Also I think DroidDraw is not good enaugh too. So I seached on web for Netbean's visual design tool and found nothing. If there is no tool or plug-in like this WHY? Thank you for any help.
Edit:
Well, long time passed. I just get used to code my ui. Also I am using Android Studio. 8)
edit
just saw that you've used DroidDraw.
There is official GUI designer included in ADT. Browse for main.xml (project/res/layout/main.xml) and doubleclick it :)
enjoy!
The combination of ADT (Android Development Kit) and eclipse 3.1 + will help you to develop the application graphically. Once you open the layout xml files, click “Graphical Layout” tab at the bottom of the section to open the graphical view. Now you can drag and drop components & also update layout.
But it is better to understand how the xml is defined in the layout. This will help you to fix any problems (in case).
Hope this helps.
Using Embarcadero RAD Studio XE7 (delphi or c++builder) allows for that task but it builds apk files with ome 10mo,

Categories