Minimize JMenuBar application to systemtray

Hi, I have an application which is entirely a JMenu/JMenuBar setup. I do initially extend JFrame, but never actually "create" a JFrame. Now I've searched quite a bit for help to minimize to the systemtray and found help, however it's always relating to the JFrame. My question is can I minimize a JMenuBar to the systemtray or would I need to use a JFrame and maybe hide it so I can utilize its functionality?
thanks!

80sMetalForever wrote:
Hi, I have an application which is entirely a JMenu/JMenuBar setup. I do initially extend JFrame, but never actually "create" a JFrame. If you have a visible stand-alone program, than of necessity, you have "created" a JFrame or some other root container. You may not know that you are doing this, but you are. How else would Java be able to show it? If you think otherwise, then show your code.
Now I've searched quite a bit for help to minimize to the systemtray and found help, however it's always relating to the JFrame. My question is can I minimize a JMenuBar to the systemtray or would I need to use a JFrame and maybe hide it so I can utilize its functionality?Since I don't think a JMenuBar can exist as a visible entity on its own, I think that you must minimize the JFrame that holds it.

Similar Messages

  • Maximize and minimize an application

    Hello,
    I`m trying to make an application and i need to be able to maximize and minimize other applications too.
    For example minimize and maximize Firefox. Could you provide me with an example how can i control other applications and minimize/maximize them? I tryed google it for like 1 hour with now luck..
    Really sorry if i didn't looked that good and someone found the answer on google.
    Cheers

    DarrylBurke wrote:
    Could you provide me with an example how can i control other applicationsJava is not suitable for this.
    dbWe i didn't ment to say "Control", My bad.
    I`m working on a anti-hack for a game and want to check if game is minimized or maximized.
    I`m trying to work arround with JNI but maybe there is other way.
    Cheers

  • Macbook upgrade to Lion.. how do i minimize what applications start up from boot ?

    how do i minimize what applications start up from boot (start-up) ??
    excel, word, safari and mail are all opening
    takes too long

    Disable Resume...
    How To Disable Lion's 'Resume' Feature - MacRumors.com
    And if you restart your Mac from the Apple menu > Restart
    Deselect:   Reopen windows when logging back in

  • Minimize into applications doesn't work

    I've just noticed that the 'Minimize Into Applications' feature in the Dock System Preferences doesn't work in 10.6.1. Instead, each window is minimized on the right side of the Dock as it did in Leopard. Is anybody else noticing this problem?
    Plus, whenever I launch an application, its icon in the Dock doesn't work properly. It doesn't show the white triangle underneath it, and Dock Exposé doesn't work.

    Do you have any 3rd party apps that attempt to modify the Finder or Menus, etc.?
    If so, confirm they are compatible with Snow Leopard, install updates or remove them, etc.

  • How do you minimize fullscreen applications?

    Hi everyone,
    I was playing The Sims 2 earlier and I wanted to look something up on the internet at the same time. Being that I recently converted to Mac, I naturally pressed Alt+Tab (or Command+Tab) and nothing happened. So anyway, is it possible to minimize fullscreen applications in OS X?
    Thanks

    Well, The Sims is not a game you want to play in "Window" mode. It's a full-screen one that you could minimise on Windows OS. I am a Mac convert and absolutely love my mac, and I have eventually got used to not doing things the Windows way, which has worked fine so far. But with some things, like minimising the game, it's just annoying not being able to do it yet! (I bet there must be a solution). I've tried fn F12 to minimise the window, as well as combo of cmd + tab, cmd + alt + tab, etc etc etc. Nothing seems to work. In any case, it has to be aspyr or EA games the ones who make a key compatibility in order for OS X users to be able to do this!!!
    Anyone else?? Any answers??

  • No Minimize-To-Application Checkbox - 10.6.3

    When I go into Sys Prefs -> Dock there is no check box for Minimize to application. What can I do to get it back?

    I have, but I might have found out why. My Snow Leopard is only 10.6, but I can't get it to update to 10.6.1/2/3 via the updater. It'll update everything else, but not OS X itself. Any ideas?

  • Minimize AIR Applications to System Tray.

    Hello. Is there any way to minimize our AIR applications to the system tray? Like Internet Download Manager can have it's window closed but still running and appearing in the system tray, and is there also any way to display balloon messages like some programs do? Any one solution would even be really helpful.
    Thank you.

    Working with the dock and the system tray | Adobe Developer Connection

  • How to Minimize Java Applications

    how to mininize my java apps for nokia 2700 classic
    Moderator's Note: This post was edited. A more appropriate subject was provided.
    Solved!
    Go to Solution.

    You can't because that basic model isn't capable of true multitasking. Java apps can either be open or closed, not minimized.

  • SystemTray Application

    I want to run my java application in systemtray. when i compile it as:
    javac -classpath jdic.jar;. SystemTrayDemo.java
    i get an error message
    SystemTrayDemo.java:2: package org.jdesktop.jdic.tray does not exist
    import org.jdesktop.jdic.tray.*; for the code in 2. line: import org.jdesktop.jdic.tray.*;
    how can i solve the problem:
    here is the code:
    import javax.swing.*;
    import org.jdesktop.jdic.tray.*;
    import java.awt.event.*;
    import java.awt.*;
    public class SystemTrayDemo extends JFrame{
        public SystemTrayDemo(){
            JPopupMenu menu = new JPopupMenu();
            JMenuItem menuItem1 = new JMenuItem("Menu1");
            menu.add(menuItem1);
            JMenuItem menuItem2 = new JMenuItem("Menu2");
            menu.add(menuItem2);
            JMenuItem menuItem3 = new JMenuItem("Menu3");
            menu.add(menuItem3);
            JMenuItem menuItem4 = new JMenuItem("Exit");
            menu.add(menuItem4);
            menuItem4.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                System.exit(0);
            ImageIcon icon = new ImageIcon("myicon.ico");
            TrayIcon trayIcon = new TrayIcon(icon, "Hello System Tray", menu);
            SystemTray tray = SystemTray.getSystemTray();
            tray.addTrayIcon(trayIcon);
        public static void main(String[] args){
            try {
                javax.swing.UIManager.setLookAndFeel("com.sun.java.swing. plaf.windows.WindowsLookAndFeel");
            catch(Exception e) {
                System.out.println(e);
            new SystemTrayDemo();
    }

    Why not java.awt.SystemTray and use Java 6?

  • Minimize the Mail Application at start up

    Dear Experts
    I have Mountain Lion 10.8.1; Configured Mail application and it works perfectly good. Notification center is also working fine.
    I have configured it such that, Mail application starts up automatically once I am logged on.
    I would like to have Mail application by default minimized at the start up. Any ideas?
    Thanks

    Hi, Kasee.
    Rather than minimize the application, why don't you try  using it in another Space.  It won't have to be minimized, and you can call it up almost instantly with a swipe across your trackpad or a keystroke.
    Take a look at this from Apple...
    OS X Mt. Lion - Work in multiple Spaces
    I think spaces is really undervalued in OS X.   I use it all the time.
    I hope this is hellpful.
    EDIT - Of course, Spaces is really slick if you're using a trackpad. 

  • Bring application to systray automatically on computer start ?

    Hello friends,
       i have a problem i know how to put application to systemtray on close button click and minimize click..
        but i want my application in systemtray automatically  on computer restart or when computer starts until i manually close it fromsystem       tray..
        how can this be done ?? 
        Help plz.. guidance needed..
       Regards
        vineet osho

    Hi,
    if(flash.system.Capabilities.isDebugger == false){
    NativeApplication.nativeApplication.startAtLogin =
    true;}
    use these lines of in your init() function.This will forcibly opens your application on system startup.
    This may help to you!
    -Vamshi.

  • Hide all opened jframes / Minimize to system tray

    can u all help me by telling
    either
    1) how to minimize an application and send it to the system tray without showing on the task bar
    or
    2) how to show / hide all the JFrame that are currently opened

    What you seek to achieve is simple if you use the features provided in JDK 6. You need to call the setExtendedState( ) method on your JFrame using the MINIMIZE option and then call setVisible(false) on the frame to remove it from the taskbar.
    The next step is to use the SystemTray, TrayIcon, PopupMenu classes found the java.awt.* package to create your own SystemTray Icon and show this in the system tray. This not very hard to do. So upgrade your JDK to version 6 if you already haven't and take a wack at it. Post back here if you have any problems
    Note: you can enclose all this activity in a WindowListener to make it automated.
    ICE

  • Apple applications won't restart from dock

    I've had this problem with Lion since day one, and although I am now running 10.7.4, the problem persists.
    I run a MacBook Pro with mostly standard software. The exceptions are Adobe Flash Player, Flip4Mac WMV, Growl, Perian, Synergy, and Logitech Control Center. Most recent versions of all these products are installed.
    I keep all of the applications I use most frequently on my dock. Most of the time I have Mail, iCal, Safari, System Preferences, Address Book, MS Word, MS Excel, MS Powerpoint, Adobe Reader, and Dictionary open. Filemaker Pro, Skype, and Stickies are often open as well. iPhoto, iPhoto Library Manager, and iTunes are only occasionally open.
    I generally sleep my computer when not using it. I restart about once a week on average.
    If I want to bring one of these applications to the front, I click on the Dock icon. Mail, Safari, and the non-Apple applications ALWAYS come to the front.
    iCal, System Preferences, Address Book, and Dictionary hardly ever do. In order to access them, I have to launch Launchpad, then click on the dock icon again since Launchpad does not bring them to the front.
    If I minimize the applications instead of hiding them, the minimized icon works, but then my dock has two versions of each application.

    What happens if you go to office preferences (from your pulldown menu with Word or Excel open) >> general >> "show project gallery at startup" and deselect that item?
    It's also possible that it could be a font that Office does not care for. Try dragging ~(yourhome)/library/fonts to the desktop and logging out and back in or restarting.
    -mj
    [email protected]

  • MS word document is not opening in front of one of the application window

    Hi All,
    we have application which is for creating proposals for business, in that application we have a Key/tab that is "generate proposal" when we click on that key it will create the poroposal in MS word format, now our issue is that when we
    click on theat key the ms word document is created perfectly but it is opening behind that application window, users get confuse that proposal is created or not,  to see that they have to minimize the application window or they have to click on the Doc
    icon in the task bar below. This senario was working fine on Windows 2003 servers, this is not working on windows server 2008 R2 with MS office 2007.
    things which i have tried:
    1. tried with some registry key for word document.
    2. installed : "Actual windows manager" to get the "Always on top" option but both are didn't worked.
    could anyone please help me on this to make this doc open in front of the application automatically.
    Thanks and Regards,
    krishnamurthy

    Hi All,
    http://social.technet.microsoft.com/Forums/windows/en-US/c7b0e69b-64b7-437d-9f7b-dde53de6a0a8/new-window-opens-behind-existing-window-how-to-modify?forum=w7itproui&prof=required
    According to above link i have chaged the reg key as mention in the blog. but it is working only for my account.
    i want this change to reflect for all other user accounts. can any one please help on this.

  • Screen resolution made changes in the application

    i have run my application with screen resolution of 1280x1024 pixels.Then i minimize the application and then change the screen resolution to 1024x768 pixels( properties--> settings--> screen resolution).
    The vertical and horizonatal scoll bars are displayed in my application.
    how to prevent the scroll bars while the application is running on 1024x768 pixels.?

    Try to set your scrollPane scroll bar policy.
    scrollPane.setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_NEVER)
    scrollPane.setHorizontalScrollBarPolicy(HORIZONTAL_SCROLLBAR_NEVER)

Maybe you are looking for

  • Ship to Party in Invoice

    Hi Friends, When we create an invoice with respect to delivery using standard copy control the partner function thats appear in the header is bill to party and payer. I want the ship to party also to appear in the partner function at header level. Th

  • Display has white and grey lines and blocks crisscrossing it and touch functions are not working properly on half the screen.

    I dropped my iPhone 5S and it landed flat on it's face (it was in a protective case).  Since then my touch screen display is not working properly. I have white and grey lines and/or blocks crisscrossing the screen both horizontally and vertically.  S

  • IPhone photo resolution . . .

    When I take a photo with my iPhone 4S, which has an 8mp camera, and open it in Photoshop, the resolution is set a 72ppi. How do I get the photo into Photoshop at a resolution which will allow me to print it? I hope this is the proper way to ask this

  • Mail read/ receipt option.....

    hello , just read ur helpful post, but really looking for a mail program that can offer i read/received confirmation tool......any idea where i can find it,,,,,,,,,,,bizarre that mail on MBA does NOT offer this option that's quite common on windows .

  • Access to Organizational subgroups

    Hi, In my organization, I put groups and then inside those groups I put some sub-groups.. Now I wanted to access sub-groups but when I used the Fuego.Fdi methods to access the group names and used the OrganizationalGroup.assignedGroups[] method to ac