JFrame without icon in taskbar

Hi to you all.
I'm writing an application that needs to open many(from 1 to as many the user opens) distinct JFrame on the desktop. I would like to eliminate the icon in the taskbar[I don't know if the name "taskbar" is correct 'cause I'm not anglophone, however, the one with the start button on it ;) ]. I searched carefully in the whole JFrame javadoc but found no method that could help me. It's because it doesn't exist or because I didn't find it? I also looked for it in the forums but I wasn't able to find something there neither.
Thanks

I had a similar problem right now. I was trying to get a JWindow behave correctly with focus events, but had no luck with it.
Then first I tried to do it with a JFrame, but didn't like the thing you talked about: The taskbar icon of the JFrame.
But then I remembered dialogs as they have no taskbar icon.
So to do your stuff just use a JDialog, put it setUndecorated(true) (to take away the title bar if you need to) and you're good to go.
To catch focus events, use windowFocusListener and get focus with requestFocus().
The problem you had is this: The JWindow (and WIndow) have much more strict requirements for gaining focus than with dialogs and frames. For these matters see Java API for Window class, methods isFocusableWindow() and getFocusableWindowState().
To get JWindow's focus work, you have to have its owner visible and a visible focusable child component in the window (in its contentPane).
Sidenote: Actually I was looking for an answer for my problem from this thread and even read mlk's suggestion about dialogs, but it didn't ring any bells at that time (well it seems that I have 5 minute wiring...).

Similar Messages

  • Windows XP - no icons, no taskbar, cannot right click

    Hello TechNet Support -
    Wasn't able to view all forums, am hoping this question will appear in the correct one.
    Helping a friend with his Dell desktop - Windows XP SP3. When we try to start up, the desktop background picture appears, but that's it. No desktop icons, no taskbar, cannot right click, nothing.
    When I open Task Manager via Ctrl-Alt-Del, I can click the New Task button and run a few programs. IE, Outlook Express, and others. We cannot get to File Manager or any file window that would access his data. Control.exe does not open. [NOTE: sorry, I said
    Control.exe but meant Explorer.exe]
    I opened a command prompt window and ran chkdsk without /F, it listed a number of index errors. when I ran with /F and said yes to run at next boot Chkdsk did run, but no results, no changes were made, even with /F.
    All help appreciated,
    John
    John Murray

    Ugh.  I had this exact problem many years ago three separate times.  I fixed it by going into the control panel...have you just typed in "control" or "explorer" to see if that works?  Unfortunately I cannot recall for
    the life of me what I did after that...I can try to see if I can find something on it later on today but I was able to find my solution online so it should be out there somewhere.  There shouldn't be any reason to wipe the system, but the third time it
    happened to me was when I moved up to the next OS.  Just sayin'
    Please do not read this sentence. Please ignore the previous sentence.

  • Blurred icons on taskbar

    Hi,
    I have blurred icons in the taskbar, below is the screenshot shot of how it is being displayed. I ahven't come across such an issue, can anyone please help me fix this?
    My gfx card is: MSI Radeon R9 270X GAMING 2G

    Is it only few icons on taskbar having such blur?
    I've been fighting with such forever.. I think it's because icon is being stretched out a bit.
    Try different graphics driver and see if it disappears. Or even without graphics driver or without graphics card.

  • Office 2013 - Incorrect Icons In Taskbar When Apps Running

    Hi,
    I have a a strange issue relating to Office 2013 (all apps in suite) in our school based Windows 7 domain environment.
    When students login and run any app from the office suite they launch correctly and are able to be used.  However the icon that is displayed in the task bar for say, Word, is not that of Word but is the icon for Database Compare 2013.  Powerpoint
    as another example always displays the Publisher icon.  If you right click the icon the options available also refer to the incorrect app, so instead of an option to bring the Powerpoint app to the forefront it says Publisher.
    The incorrect icon is always the same one for each app whenever launched and is the same for all users.
    We have updated Windows and the Office to the latest patches.  Possibly worth noting that we are running this config on Apple iMacs using bootcamped Windows 7 but I don't personally believe this has any bearing as it's only Office related.I have search
    for instances of this issue and see there is a hotfix for incorrect icons when in a remote session rather than physically logged onto a machine.  I also see references to deleting the icon cache for the user but local user profiles are scrapped on the
    machines here when the student logs off.
    Any help or pointers are greatly appreciated.
    Kind Regards
    Radar.

    I've reviewed screenshot from you initial post on Answer forum.
    http://answers.microsoft.com/en-us/office/forum/office_2013_release-office_install/office-2013-incorrect-icons-in-taskbar-when-apps/ef99ce77-1e88-44c5-8214-c6c69837a9ae
    Since the icon shows fine in local but only incorrect through RDP session, I am thinking this might not be the promblem of Office application self. RDP session might not load the correct icon for Office duo to the file permission or wrong path.
    Better to post your question to forum for Remote Desktop Services (Terminal Services)
    http://social.technet.microsoft.com/Forums/windowsserver/en-us/home?forum=winserverTS
    Thanks for your understanding.
    Tony Chen
    TechNet Community Support

  • Missing options of "Enter Private Browsing" "Open new tab" and "Open new window" when right click (right context menu) firefox icon on taskbar

    Missing options of "Enter Private Browsing" "Open new tab" and "Open new window" when right click (right context menu) firefox icon on taskbar.
    i already tired complete uninstall and reinstall, but the options are still missing.
    print scr: http://www.freeimagehosting.net/9znkp
    Thank You in advance for help. Best regards

    Hello,
    ''jstavene wrote:''
    can find nothing under the tools menu for private browsing?
    Then it's not the same issue.
    If Firefox is set to '''Never remember history''', then you're in “permanent private browsing” mode, in which case the menu item ''Stop Private Browsing'' will be grayed out. Perhaps that's the case, and you don't find the menu item easy to see?
    * [[Settings for privacy, browsing history and do-not-track]]
    If that's not the case, then menu items can be hidden using the userChrome.css file. Check if it exists, and if it's there, rename it, then restart Firefox.
    * http://kb.mozillazine.org/UserChrome.css
    In Firefox Nightly (what will become Firefox 20), per-window private browsing has been added, so the menu item under the Tools menu is gone. It's been replaced by New Private Window under the File menu. I don't suppose it's very likely that you're using such a cutting-edge test version of Firefox though.
    If that doesn't solve the problem, since it's a different issue, it would be best if you would ask a new question.
    * https://support.mozilla.org/questions/new

  • Converting Button in Icon in taskbar

    There is a taskbar on the desktop. Generally at bottom where start resides. When we open any application one button is created in task bar with respect to application. If we minimise the application the button is still there. Can this button be removed in task bar & convert an icon in taskbar (Like icons at bottom right part of desktop).
    Somp application does so. For example there is such type of facility in yahoo messenger when u minimize this it becomes icon in taskbar and when you open this it creates button at taskbar. Is there any way to do all this in java. I hope you all understand what i want.
    Thanks in advance.

    OK. Do you mean to put an little Icon in the Taskbar on Windows where the time and stuff like Virus shields have little icons? I don't think you can do that because not all os's have a taskbar like Winows. Java is cross-platform(WORA) so it would defeat some of the purpose if you could do that. But then again I have wanted to do that aswell, but I don't thinik you can.

  • Icon in taskbar not transparent

    Just a very minor nitpicking issue:
    The icon used for Raptor on the taskbar has a white background and is not transparent. This doesn't look very pretty. Probably one for the very last entry on your issue list.

    and maybe the icon should be more expressive. Some black border around symbol etc. See my current icons in taskbar - it's hard to find the raptor's one:
    http://www.yarpen.cz/raptor/icon_inexpressive.png

  • Missing internet connection icon in taskbar

    Missing internet connection icon in taskbar windows xp 8250

    A system restore will not do it, you would have to do a full system
    REPAIR.
    If you copy Just the keys above and past them into notepad and save them to your desktop as any name you want, just make sure they have a *.reg extension, then double click on them and the keys will be added to your regristry.  There are two keys above
    so make two *.reg files.
    This will make one file:
    [HKEY_CLASSES_ROOT\CLSID\{7007ACCF-3202-11D1-AAD2-00805FC1270E}]
    @="Network Connections Tray"
    [HKEY_CLASSES_ROOT\CLSID\{7007ACCF-3202-11D1-AAD2-00805FC1270E}\DefaultIcon]
    [HKEY_CLASSES_ROOT\CLSID\{7007ACCF-3202-11D1-AAD2-00805FC1270E}\InProcServer32]
    @="C:\\WINDOWS\\system32\\NETSHELL.dll"
    "ThreadingModel"="Both"
    This will make the other file:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{7007ACCF-3202-11D1-AAD2-00805FC1270E}]
    @="Network Connections Tray"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{7007ACCF-3202-11D1-AAD2-00805FC1270E}\DefaultIcon]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{7007ACCF-3202-11D1-AAD2-00805FC1270E}\InProcServer32]
    @="C:\\WINDOWS\\system32\\NETSHELL.dll"
    "ThreadingModel"="Both"
    When the key's have been added to your registry you must reboot for them to take effect.
    Remember, these keys are for XP, do not know about other OS's
    Brogan2

  • Message need to be shown without Icon ?

    Hi Experts,
    Is it possible to having a status message without icon in ABAP screen ? My requirement is , I want to show a completely blank message. When I am showing , the message type Icon is coming . I donu2019t want that icon.  Is it possible  ??
    Thanks in advance.
    Regards
    Satrajit
    Edited by: Satrajit Chatterjee on Apr 6, 2009 3:33 PM

    Can you use addition DISPLAY LIKE dtype. Dtype is "A", "E", "I", "S" or "W" in upper-case letters.
    If you use another letter the message don't show the icon.
    Example:
    Message I305 DISPLAY LIKE 'N'.
    The message is without icon but when display show the letter N like this:
    N:Message
    Regards
    Angelo.

  • Can't remove Access Connection​s and ThinkVanta​ge Toolbox icons from taskbar

    I've just re-installed from my Lenovo system back-up disks. 
    The Lenovo Power Controls icon on the taskbar was easy enough to remove. There was a checkbox under Options.
    The Access Controls options show a checkbox to remove that icon as well, but the entire screen is grayed out (inactive). I changed to my admin account and unchecked all the boxes (the screen even says it will affect all users). I also went into the Global settings and unchecked the box there as well (not sure why it's in two places). I rebooted. The icon is still in my non-admin account, although it is gone from the admin account. 
    On the admin account, all the boxes are unchecked. On the non-admin account, the "Show Accees Connections icon on taskbar" is still checked, but still grayed out. Not sure how to proceed. Definitely do not want this big, ugly icon on my taskbar. 
    Also, the ThinkVantage Toolbox icon suddenly appeared on this install (wasn't there before, haven't ever seen it). This one doesn't even have an options section with a checkbox to remove it from the taskbar. It also never showed up in the admin account from day one, only in the non-admin account.
    Any information on removing these two icons from the taskbar would be greatly appreciated.

    As far as the Lenovo Thinkvantage Toolbox icon, this is probably PC-Doctor.
    Launch PC-Doctor.  Click the settings button.  You can then uncheck the show icon in taskbar item.

  • Firefox 4.0 running in background only, no action when clicking the icon on taskbar (firefox 4.0 bug?)

    1. OS: Wndows 7 Ultimate 32bit
    2. Firefox 4.0
    3. Double click Firefox 4.0 icon on desktop to run browser
    4. Firefox 4.0 activates, drops icon in task bar, no full view
    5. Put mouse cursor over Firefox 4.0 icon in taskbar --> shows opened webpage
    6. Double click Firefox 4.0 icon in taskbar to restore view --> no action..
    7. Closed Firefox 4.0 by right clicking on taskbar icon then click on Exit button .
    8. Repeat steps 3 to 7 (3 times same result)
    9. Restart PC, repeat steps 3 to 7 (2 times same result)
    This problem not encountered in Firefox 3.6.16
    Firefox 4.0 bug??
    Google Chrome running fine no problem
    MS IE 8.0 running fine no problem

    https://support.mozilla.com/en-US/kb/Firefox%20hangs <br />See '''hang-at-exit'''

  • Print JFrame without title bar and border

    I am trying to print out a JFrame which contains two JPanels. The following code is part of my implementation of Printable which prints the entire JFrame including the title bar and border. I've considered implementing Printable in the JPanel classes but then I don't know how I would get everything on one page as a single image. Is there some way to just print the contentPane of the JFrame?
         public int print(Graphics g, PageFormat pf, int pi)
              throws PrinterException {
              if (pi >= 1) {
                   return Printable.NO_SUCH_PAGE;
              Graphics2D g2 = (Graphics2D) g;
              double scaleX = pf.getImageableWidth()/getWidth();
              double scaleY = pf.getImageableHeight()/getHeight();
              double scale = 1;
              g2.translate((int) pf.getImageableX(), (int) pf.getImageableY());
              if (scaleX < 1 || scaleY < 1) {
                   scale = scaleX < scaleY ? scaleX : scaleY;
                   g2.scale(scale,scale);
              printAll(g2);
              return Printable.PAGE_EXISTS;
         }                    

    Thanks.
    I can get the Jframe without the title bar and I can get it to drag on the desktop with your suggestions. I still need it to have rounded edges.

  • Closing all JFrames without killing the application

    Is there a way I can close all JFrames without quiting the application? I have several JFrames open that I want to dispose of at the same time. Is this possible?

    If you close all the JFrames, then how does the user
    interact with the application?I think that's outside the scope of the original question, but there are a number of possibilities. To name just a few:
    1) The console
    2) The program opens a new JFrame after some time has elapsed (maybe an appointment reminder application, or an instant messenger client, for example)
    3) The program is really a server, so you don't need to see anything
    4) The program is "spyware" so it's meant to be hidden
    5) The program runs in full-screen mode part of the time (for example, a game which uses JFrames to choose options, then full-screen for game play)
    ...

  • JFrame without  _| |X

    Hi, I guess it's in the APIs, but I have looked for it and I cannot find. I guess it must be something really easy. How can I create a JFrame without the "minimize", "maximize", and "close" buttons?
    Thanks.

    As well as the apis there are zillions of posts already asking this question:
    http://onesearch.sun.com/search/developers/index.jsp?charset=UTF-8&qt=jframe+minimise+button&col=devforums
    I believe it is not possible to keep the title bar and lose the buttons, if that is what you wanted.

  • Resize JFrame without flickering

    When I try to resize my frame with the setSize() methode it starts
    flickering but if i resize with the mouse it works fine.
    Is there an other solution to resize a JFrame without flickering?
    import java.awt.*;
    import javax.swing.*;
    public class TestFrame extends JFrame  {
        JPanel panel = new JPanel();
        JButton button = new JButton("Resize");
        public TestFrame() {
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setSize(200,200);
            setLayout(new GridLayout());
            panel.setBackground(Color.red);
            button.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    setSize(getSize().width + 1, getSize().height + 1);
            this.add(button);
            this.add(panel);
        public static void main(String[] args) {
            TestFrame frame = new TestFrame();
            frame.setVisible(true);
    }

    frame.setUndecorated(true);and implement MouseListener and MouseMotionListener for resizing by mouse dragging on the edge

Maybe you are looking for

  • Hallo ich hätte eine Frage zur Adobe Creative Cloud ?!

    Ich bin Schüler .... Wen ich mir ein Jahres Abo der Creative Cloud hole habe ich dann zugriff auf alle Produkte oder wie genau Funktioniert das .... Habe das nicht ganz verstanden ! Möchte After Effects Hauptsächlich .

  • Calling US from Canada...Who knows the answer ?? Surely someone knows ?

    One time trip to Canada.. We bought a gophone to take a trip to canada later this year. Probably use the phone a dozen times or so while we are there, to make 5 min or so calls to the states..or get same from the states..so that's about 60 min or so.

  • How can I integrate a "fill in your name form" on my iWeb site ?

    Hello, I am looking for a contact page in the iweb. A contact sheet where I can have my clients fill in theirs name,adress and e-mail adress and leave a comment. Is there one ? or how can I easily create one ? Please let me know , friendly yours guni

  • Doubt in graphical mapping

    Hello, I have a source structure like this: Source (1.. unbounded)      Item ident      structure (0..unbounded)           Sub item And I need to convert onto a target structure like:           Target (1.. unbounded)      Item ident      Sub item How

  • Does 785GM-E51 DVI support dual link?

    I am considering buying the 785GM-E51 motherboard which comes with a DVI port (as well as HDMI and VGA of course). Will the DVI support dual link?  If so, what is the maximum resolution I could have on the two monitors (say, at 60 Hz with high colour