SWT Menu unresponsive on MAC - java

I was trying out example of how to create Menu using SWT. I am using Eclipse on Mac. I was referring to this example. Whenever I run this example, I have two problems:
The Menu doesn't show up until I make it full screen.
The Menu buttons are unresponsive i.e when I click on Help, it doesn't show up the dropdown containing Get Help.
Do I have to make some spwcific changes while creating Menus on Mac?

Probably 7 years too late, but if anybody finds this I had the same problem and I simply switch to another window and switch back to the display and it worked. I don't know why it works but it did it for me and I hope it will for you as well.

Related

Eclipse predict the direction of submenu in popup

How to know where eclipse will open the next sub menu inside popup.
For example in Java Class file, right click and the menu appears, mouse over an item which has sub menu.
Even when there is enough space most of the time it is illusive. Is there a rule of thumb for correctly predicting eclipse behavior
cheers :)
Not sure this is what you want but you might try customizing your Java perspective: Window->Perspective->Customize Perspective...
You'll have to look through the tabs (2 of which I included) to see what can be done.

NetBeans moving tabs navigation to the right

I've seen few people use it like that and Im struggling with figuring: how can i move the navigation of my open files inside NetBeans IDE to be navigating through a tool bar on the side.
In other words, instead of navigating between files horizontally (just like in the browser), i want the tabs to be displayed on my right on NetBeans.
Any chance someone could explain?
Thanks in advance.
You want to put the window tabs to the right side?
At Tools|Options|Misc|Windows set "Tab placement" to "right"
See also https://blogs.oracle.com/geertjan/entry/upcoming_netbeans_feature_multi_row
In Netbeans 8 the tab placement options are in Tools -> Options -> Appearance -> Document Tabs -> Tab placement.
Hey am not pretty sure about the Netbeans. If you see in the eclipse there is an short cut ctrl+f6 in order to change the you can directly go to editor settings and then you can change it to what ever you want.
If you come to net beans i saw in one of the post they mentioned ctrl+tab try to look this link it might help you.
Thanks,

OpenSwing Open Window Tab Bar - 6 tab maximum

We are using the OpenSwing Framework for our application and ran into a problem with the viewOpenedWindowIcons() method.
We have noticed that when we open more than 6 windows (depending on screen size), the "opened windows tab bar" does not display tabs for these additional windows.
Does anyone know if there is a scroll function that we can implement to have the ability create more than six tabs?
I never use swing and this framework more than 1 year. just some suggestion may help you...
change the look&feel to system default , may not have this problem.
please find org.openswing.swing.mdi.client.WinIconsPanel, which is a JPanel with FlowLayout(FlowLayout.LEFT).and you could make it scrollable with the scrollbar hidden,and add two arrow(left,right) button on the side of it.

Java 5 - Bring Modal Dialog to Front on any click

Setting: Java 5 - no upgrade possible.
I have a large application that has a number of modal dialog windows. I have heard that hidden modal dialogs can result in uninformed users going so far as to restart their computer. Even if a user knows how to ALT-TAB (in MS Windows, at least), it's a pain. From what I understand, this was in part fixed in later versions of Java, but that's not an option here, unfortunately.
So, is there any way to force a modal dialog to be shown if any part of the running application is clicked on? I was thinking it might have something to do with either MouseListeners, GlassPanes, or something else. However, I've got a bunch of other stuff I'm supposed to be working on, so I don't have a lot of time to devote to hashing this out right now. Can anybody point me in the right direction?
Thanks so much!
So, is there any way to force a modal dialog to be shown if any part of the running application is clicked on?
When you create the dialog you need to specify the parent frame as the owner of the dialog. Then whenever you click on the frame any dialog that is a child will also be shown.

Google WindowBuilder for Java

I made a GUI in Eclipse using the Google WindowBuilder plugin. The problem is that when I right-click on the design representation of my code and click, "Test/Preview," my GUI works and looks perfectly (the picture on the right), but when I click the "run" button in Eclipse to actually run the code, the GUI looks all weird (the picture on the left).
Does anybody have a clue as to what the problem is?
Ok this could have multiple reasons, the most obvious one being, that you (accidentally?) set your JButtons' background Color to the same dark-gray as your Frame's background. Check This first! WindowBuilder's preview has a quirk of sometimes not showing recent design changes on some elements immediately.
If that Is not the case with you, it might be some weird formatting thing.
Have you manually changed your buttons' formatting within the code and not within the design tab? Then add (Say your button is called okButton) okButton.repaint(); after the changes you manually made.
If this still doesnt work,
Try adding okButton.setVisible(true); (Althought that is pretty far fetched, seeing that a button outline can be seen!)

Categories

Resources