I have written a java app using NetBeans 7.2 under Os X 10.8.2 on a 2012 Mac Book Pro and I have decided I want the screen menubar removed or hidden since there is no easy way of editing the screen menu bar for my java app. I have searched and searched on the screen menu bar but I have not found anything showing how to: edit or hide. The only information I have come up with, using NetBeans is how to combine my JMenuBar into the screen menu bar and the examples for that didn't work.
If someone can point me into a good direction for editing the contents of the Screen Menu Bar I would be more then happy to use it. But if there is no easy way of doing this without re-writing the source code with an override then I will stay with my own menu on the form and hide or remove the Screen Menu Bar if this can be done.
You cannot. The system menubar is a shared user interface element — you can only hide it if you're running full screen, at which point you end up with no menu bar at all.
You should really look into getting your application's menu bar to not appear in the window, as this is not an expected user interface idiom on Mac OS X. If you are not doing so already, this code may help:
System.setProperty("apple.laf.useScreenMenuBar", "true");
If that doesn't do it, there are a number of questions in the "Related" sidebar with information that may help.
Related
I designed a menu using Java language and now I want each menu item to go to the desired page when clicked.
And one more thing is that I want to have a light and dark mode in my menu, how do I do it?
But I don't know, can you please introduce me the pages that have this trainingenter image description here
I have made the menu but I don't know how to add day and night mode
and opening each menu item in a separate page
It is called Navigation Drawer, you can follow tutorial in this link to learn how to create it:
https://guides.codepath.com/android/Fragment-Navigation-Drawer
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.
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.
Creating a hardware device that will be running a custom version of Android (4.x). There will be additional functionality incorporated but we would like to use as much of existing Android as we can.
The device will only run one specific app at the start, then plan is to create our own custom system bar / action bar with fragments at the bottom of the screen. However, we ideally want the notification bar to stay at the top of the screen with all of its drop down goodness.
I am aware there are currently two mechanisms that address this:
Temporary absolute full screen hides the system bar until the screen is touched.
Dimming of the system bar where the system bar icons fade to black but still occupy the same space and come back when pressed.
Any help would be much appreciated,
Cheers
EDIT: I know it can be done by changing the source code, that is not possible in the timeframe though unfortunately
I know you can get rid of both the system bar and the notification bar by setting the app to full screen and if we could have that plus the notification bar that would be great.
You can't actually. You have a SYSTEM_UI_FLAG_HIDE_NAVIGATION that hides it, but the bar reappears whenever there is any interaction on the screen (the notification bar also reappears with this).
Seeing as you are looking to replace the system bar completely, you will have to do this at a source code level. You are only allowed to hide it during periods of interactive inactivity using the SDK
You have to create your own version of SystemUI application, and build Android with that version in place of default:
https://github.com/android/platform_frameworks_base/tree/master/packages/SystemUI
If I understand correctly, you can just add this in your manifest xml:
<activity
...
android:theme="#android:style/Theme.NoTitleBar" >
...
</activity>
This will keep the notification bar without going all-out full screen.
I have a Java Swing application running on OSX that uses Quaqua. All the TextFields and TextAreas have a popup menu on right click. This must be done by Quaqua as it is not standard in Swing.
My question is:
How do I set my own Actions on the popup menu?
Please Note. This is a question about Quaqua popup menus NOT any Swing popup menu. If you are not familiar about Quaqua then please don't answer.
A pop-up menu is the same as a regular menu. The Swing tutorial about menus covers how to use them, how to insert entries, ... . Reading that tutorial should get you started
The popup menu set by Quaqua can be removed by setting a client property:
myTextField.putClientProperty("Quaqua.TextComponent.showPopup", Boolean.FALSE);
You can then add your own MouseListener to handle creating your own pop up menu.
I haven't figured out, however, to make this change global, and so I have to set the client property on each of my text fields individually, which is a bit of a pain.