Minimize/Maximize a JWindow

Hi everyone,
I created an application that derives JWindow instead of the usual JFrame as the parent class of the application. This works fine but I have a following problems listed below that I have not solved yet.
1. Is it possible to implement Maximize/Minimize to a JWindow-derived application?
2. Is it possible to add a Taskbar button that will be displayed in the taskbar area of Windows OS once the application is run?
Thank you in advance.
Regards,
Ferdie

Hi everyone,
I created an application that derives JWindow instead
of the usual JFrame as the parent class of the
application. This works fine but I have a following
problems listed below that I have not solved yet.
1. Is it possible to implement Maximize/Minimize to a
JWindow-derived application?to the best of my knowledge, no, not directly
>
2. Is it possible to add a Taskbar button that will be
displayed in the taskbar area of Windows OS once the
application is run?to the best of my knowledge, no, not directly
I had a problem similar to this before, and what I did was to have a small JFrame that was always behind the JWindow. This causes a button to show up in the taskbar of Windows. also when you have a button on the JWindow for say minimizing it, what you actually do is minimize the JFrame behind it and set the JWindow so its not visible. Then when you want to restore the JWindow from the taskbar, the JWindow is set visible again and the JFrame is placed behind it on the screen. You'll also have to track the user moving the JWindow and move the JFrame behind it accordingly so it is always behind it...
hope that helps you....

Similar Messages

  • Strange problem with RDP and mouse, only solved after minimize/maximize

    Good day,
    We have this very annoying problem with a RDP Terminal Server. It is Windows Server 2008 R2 SP1.
    This server has the Session Host role installed, with local RDP user licenses.
    We only have this issue when running a certain application.
    This application is called Rockwell FactoryTalk View and this in an application to display industrial processes.
    It will take the Full Screen in a fixed resolution and will display buttons, objects, values... The application also uses Internet Explorer cache so I think it uses ActiveX, Flash or Java, I don't know.
    What sometimes happens is this:
    - The mouse point is able to move in the entire screen (good)
    - The mouse button will only work in 1 certain area of the screen (which is a small rectangle)
    - The mouse "hovering" above objects will also only highlight items that are in this rectangle
    - The keyboard remains functional and with alt-tab other objects or other applications can get focus, but still no mouse clicking
    The problem can be solved by:
    - Minimizing the RDP window and maximizing it again
    - Or: Sending a message to the session using task manager, after clicking "OK" on that message the problem is gone
    Normally, about 5 users will have this application opened in their session, the "crash" is only effecting 1 session.
    The problem seems to happen randomly and we don't know if we should point to the FactoryTalk application, or to Terminal Services/RDP. The end users have no rights to minimize/maximize, this is not the solution. 
    Is it possible to have any input on this please?
    Thank you.

    Hi,
    Thank you for posting in Windows Server Forum.
    Firstly please check with the application support team whether the application is fully supported by Windows Server 2008 R2 in remote session. In addition, suggest you to update the client RDP version to RDP 8.1 and check the result for better feature and functionality. 
    Apart from this, there is Hotfix for the issue. Please download, install and check the result.
    Cause:
    The issue occurs because the remote desktop ActiveX object does not deactivate the focus of the remote desktop session when the focus is lost. Because the focus is still activated, the remote desktop ActiveX object cannot set the focus of the remote desktop
    session again when you change the focus back to the session.
    A remote desktop session does not respond to keyboard input or mouse input after it loses the focus in Windows 7 or in Windows Server 2008 R2
    http://support.microsoft.com/kb/2579381
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Unexpected performance of Firefox in Windows 7, namely minimize/maximize/close buttons not working and unable to move/resize window.

    I have been using FF for a while now. My main computer was WinXP-32, though I recently bought a new laptop with Win7-64 installed. This problem was never experienced on my WinXP machine.
    Brief description of problem:
    After a time of having FF up and running, the minimize/maximize/restore/close buttons in the top-right no longer work as expected and, if not maximised, I cannot move the window around my desktop nor resize the browser window. When clicked, the buttons will
    rapidly flash on and off continuously without appearing to perform any noticeable function other than temporarily hogging CPU cycles. I've found that clicking (sometimes double clicking) in the main browser window then mousing over the buttons again seems
    to stop them flashing, though does nothing else.
    To minimize/maximize/restore/move/close the window(s), I have to right-click on the relevant tab in my taskbar and pick the desired option. Occasionally, however, even this doesn't work and the right-click menu will disappear as soon as I move the mouse
    over it after right-clicking. 'Show desktop' is a temporary fix for minimising windows and 'ALT + F4' or 'CTRL + W' for closing windows or tabs. This isn't satisfactory and to move or resize a window, I have to close the window in question (sometimes all other
    windows too), reopen it and do what I need to do, though sometimes even this is only a very short fix. If I have to close all the windows, FF will sometimes keep running for a while afterwards, even though no windows are actually open - simply ending the process
    via the windows task manager will fix this though is only a work-around, not a fix.
    One thing I have noticed is that if I manage to move the browser window (when not maximised), for a short period afterwards I can often resize the window successfully. This is more likely to occur if the browser window is not flush with the edge of my screen
    once moved.
    I've tried to include as much information as I can - most of which was determined after several minutes/hours of playing around with different scenarios, trying to manually reproduce particular problems or simply through sheer luck of happening to click
    in the right place at the right time! I hope there is a reasonably fix for this at some point in the not-too-distant future.
    I noticed in some of the threads at another site where people have voiced problems similar to mine, that a link to 'ObjectDock' was discovered in some cases. I do have 'ObjectDock 1.90 Plus' installed on my machine and use it in many ways and so decided
    to see if I could find a connection between the two. I have uninstalled, tested, and reinstalled both programs in a multitude of ways, though could find no conclusive correlation between having both bits of software running or installed at the same time and
    the problems I am experiencing. In my case, at least, this does not appear to be an answer.
    Also, in another thread on this site, someone suggested there might be a link with AVG Anti-Virus Free (I have version 9.0.819) though I've tried uninstalling it and its various add-ons in several different combinations, with no noticeable improvement.
    Sorry for such a long question... If you need to know anything more, just let me know!
    - James
    System Information:
    Operating System: Windows 7 (64 bit)
    Firefox Version: 3.6.3
    Application Basics
    Name
    Firefox
    Version
    3.6.3
    Profile Directory
    <button onclick="openProfileDirectory()"> Open Containing Folder </button>
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Update Service
    1.2
    true
    [email protected]
    Java Console
    6.0.17
    true
    {CAFEEFAC-0016-0000-0017-ABCDEFFEDCBA}
    Adblock Plus
    1.2
    true
    {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
    Download Statusbar
    0.9.6.8
    true
    {D4DD63FA-01E4-46a7-B6B1-EDAB7D6AD389}
    Cooliris
    1.11.6
    true
    [email protected]
    FoxTab
    1.3
    true
    {ef4e370e-d9f0-4e00-b93e-a4f274cfdd5a}
    Save File to
    2.0.1
    true
    [email protected]
    1-Click YouTube Video Downloader
    1.4
    true
    [email protected]
    British English Dictionary
    1.19
    true
    [email protected]
    Tab History
    1.0.7
    true
    {84417002-6445-49b4-9fd7-1ef48240fa41}
    Universal Print
    0.4.23
    true
    {BE2100B3-1D80-48eb-ACCF-D26750644378}
    Active Stop Button
    1.3.0
    true
    {9e96e0c4-9bde-49b7-989f-a4ca4bdc90bb}
    Fission
    1.0.9
    true
    {1280606b-2510-4fe0-97ef-9b5a22eafe41}
    Smart Bookmarks Bar
    1.4.3
    true
    [email protected]
    Compact Menu 2
    3.1.1
    true
    {57068FBE-1506-42ee-AB02-BD183E7999E4}
    Menu Editor
    1.2.6
    true
    {EDA7B1D7-F793-4e03-B074-E6F303317FB0}
    Locationbar²
    1.0.5
    true
    [email protected]
    RealPlayer Browser Record Plugin
    1.0
    true
    {ABDE892B-13A8-4d1b-88E6-365A6E755758}
    AVG Safe Search
    9.0.0.812
    true
    {3f963a5b-e555-4543-90e2-c3908898db71}
    Searchbar Autosizer
    1.4.5
    true
    {655397ca-4766-496b-b7a8-3a5b176ee4c2}
    Open Bookmarks in New Tab
    0.1.2010043001
    true
    [email protected]
    Remove New Tab Button
    1.0
    true
    [email protected]
    New Tab Homepage
    0.4.2
    true
    {66E978CD-981F-47DF-AC42-E3CF417C1467}
    SwiftTabs
    0.3.6.8
    true
    {5F4EC95A-FFA8-11DE-898C-667D55D89593}
    Tab Kit
    0.5.8
    true
    [email protected]
    Hide Find Bar
    1.3.1
    true
    [email protected]
    Toolbar Buttons
    0.6.0.8
    true
    {03B08592-E5B4-45ff-A0BE-C1D975458688}
    Java Console
    6.0.19
    true
    {CAFEEFAC-0016-0000-0019-ABCDEFFEDCBA}
    View Cookies
    1.10.1
    true
    {8F6A6FD9-0619-459f-B9D0-81DE065D4E21}
    Adobe DLM (powered by getPlus(R))
    1.6.2.63
    true
    {E2883E8F-472F-4fb0-9522-AC9BF37916A7}
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.flashBar
    0
    browser.history_expire_days.mirror
    180
    browser.places.importBookmarksHTML
    false
    browser.places.smartBookmarksVersion
    2
    browser.startup.homepage
    http://www.bath.ac.uk/
    browser.startup.homepage_override.mstone
    rv:1.9.2.3
    browser.tabs.closeButtons
    0
    browser.tabs.tabMinWidth
    77
    browser.tabs.warnOnClose
    false
    extensions.lastAppVersion
    3.6.3
    network.cookie.prefsMigrated
    true
    network.http.pipelining
    true
    network.http.pipelining.maxrequests
    50
    network.http.proxy.pipelining
    true
    places.last_vacuum
    1271706454
    privacy.sanitize.migrateFx3Prefs
    true
    privacy.sanitize.timeSpan
    0
    security.warn_viewing_mixed
    false
    security.warn_viewing_mixed.show_once
    false

    Hi Kossa,
    You can also check if the issue occurs in
    Clean Boot. If the issue disappears in the Clean Boot environment, you can continue to narrow down which entry is causing the issue.
    Besides, uninstall it and re-download
    a fresh copy of FireFox to check the result. If the issue still exists, create a new user account to see if it occurs.
    If the issue persists, you can contact Mozilla Support directly and use Internet Explorer (IE) during the time.
    J
    Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise,
    regarding this product's performance or reliability.
    Regards,
    Linda

  • Fcode for Minimize/Maximize is 'ENTER' when we go thru WEB Gui

    Hi,
    We are Upgrading our System from 4.6c to ECC 6.0. We are facing a strange error actually. When we go through the application in SAP GUI Mode , the screen Minimize / Maximize is working fine. But when we go through Web Gui, This scrren Minimize/Maximize is picking the Function code 'ENTER' as a result of which on every min/max , it is navigating to the next tab section (same functionality for Enter Button).  Ideally it should not navigate to the next tab section, instead should remain in the same tab.
    Please suggest how to resolve this issue.
    Thanks

    The reason we recommend using 8.8.8.8 and 8.8.4.4 for the DNS server is because they work when ISP assigned DNS servers do not. The DNS server assigned to you by your ISP is not able to resolve the domain for web services, therefore not allowing the printer to connect. 
    I assure you that it is with your ISP's DNS server and not the printer. If you were to take the printer back to the store and get a replacement, you would have the same issue, unless you changed the DNS. Same goes for any of our web service enabled printers. 
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • After latest update 20.0.1 when opening a new tab, close, minimize, maximize are not working. Also using arrow in online dropdown menu's are non-selectable.

    After automatically updating to version 20.0.1 yesterday the buttons in the upper right corner minimize, maximize, close stop working when I open a new tab. When only one tab is open they do work. Also when downloading a file ( and again this opens a new pop-up window ) after clicking save file there is no response. The save file button looks as if it is pushed but there is no download going on.
    I tried safe mode, didn't help.
    I tried switching off all add-ons, didn't help.
    I tried reset, didn't help.
    I even tried uninstalling and re-installing firefox, didn't help.
    The only thing that works for a couple of seconds is when I go to options in the firefox menu, close the pop-up the buttons in the upper corner are active for a couple of seconds.

    Hello,
    I kept searching a solution for this problem and I found that: https://support.mozilla.org/en-US/questions/956417
    You just have to update the Add-on Firebug from 1.10.6 to the latest version 1.11.2. If it's not that Add-on try with another Add-on.

  • Why do the minimize, maximize, & close buttons in the top right corner disappear (turn to a black void) unless FF is maximized?

    I am running Windows 7 on my new laptop. When I bought it back in August, I installed Firefox version 5 (I think) Now that I have updated to version 6, the minimize, maximize, & close buttons in the top right corner disappear when the window is not maximized. It becomes a black space where the buttons should be.

    Hi Kossa,
    You can also check if the issue occurs in
    Clean Boot. If the issue disappears in the Clean Boot environment, you can continue to narrow down which entry is causing the issue.
    Besides, uninstall it and re-download
    a fresh copy of FireFox to check the result. If the issue still exists, create a new user account to see if it occurs.
    If the issue persists, you can contact Mozilla Support directly and use Internet Explorer (IE) during the time.
    J
    Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise,
    regarding this product's performance or reliability.
    Regards,
    Linda

  • Every once in a while, a black box will cover the windows minimize, maximize, and close buttons, and then I can't minimize firefox quickly or easily.

    After a bunch of browsing, a black window takes over the windows caption bar and covers the minimize, maximize, and close buttons. When this happens, I can't close firefox except by accessing the firefox menu. And there is no way to minimize or maximize the window.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • My Minimize, Maximize, and Close Buttons are not functional in Firefox 13.0.1

    I recently downloaded Firefox 13.0.1.. For the past several days the minimize, maximize, and exit buttons located in the top right hand corner have been non functional almost immediately upon starting a browser session. I have tried disabling plugins with no success. I have experienced the same problem when running safe mode. I have attempted to disable hardware accelerators. I have even tried resetting to default settings.. For the record
    I am running Windows 7 Home Premium (64-bit) with 2 GB of RAM as well as Norton Antivirus.. Any advice would be appreciated.

    Hi <b>rosmaninho</b>
    Can you please start a new thread for your question?
    Then you can provide more information like your operating system and installed extensions and installed plugins.
    *[[/questions/new start a new thread]]
    *[[/kb/Using+the+Troubleshooting+Information+page]]
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Item ID for Minimize, Maximize button at system form title bar

    Hi,
    Can anyone help me out finding Item ID for Minimize, Maximize and close buttons at system form title bar (Left side Title of form and right side three buttons). I need ID for these items, if anyone knows please reply. will appreciate help on same.
    Thanks,
    Jay

    I'm tryin to get over with Item master screen strech machenism. I've Added matrix at pane 6 and position is not fixed when ever form is rezised or base product font size is changed. I've alredy tried providing values to top left width height through oexisting item vaues, I'm not using any integer value. Let me know if i can freez it's position ....... Sample code below
    oExistingItem = oForm.Items.Item("174")
    oItem = oForm.Items.Add("mtx_MFGALS", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
    oItem.Top = oExistingItem.Top + oExistingItem.Height + oExistingItem.Height
    oItem.Width = oExistingItem.Width + oExistingItem.Width
    oItem.Height = oExistingItem.Width
    oItem.Left = oExistingItem.Left
    oItem.FromPane = "6"
    oItem.ToPane = "6"
    oMatrix = oItem.Specific
    oMatrix.Columns.Add("Col0", SAPbouiCOM.BoFormItemTypes.it_EDIT)
    oMatrix.Columns.Item("Col0").TitleObject.Caption = "Line #"
    oMatrix.Columns.Add("Col1", SAPbouiCOM.BoFormItemTypes.it_EDIT)
    oMatrix.Columns.Item("Col1").TitleObject.Caption = "Name"
    oMatrix.AutoResizeColumns()
    Regards,
    Jay

  • Minimize, Maximize, and Exit Buttons are Missing

    I can not view the minimize, maximize, and exit buttons unless I enter full-screen viewing. I have all add-ons turned off.

    You may not see those buttons clearly if they get hidden by the transparency on Windows 7.
    Right click in a free space on your desktop.<br />
    Left click on Personalization.<br />
    There are four options in Windows 7 at the bottom of the screen, choose "Window Color and Appearance".<br />
    Select a border color<br />
    Uncheck: "Enable transparency"<br />
    *[[/questions/804050]]

  • FF29: Page title bar MIA with minimize/maximize/close buttons gone! How do I get it back?

    FF29 on win7: the minimize/maximize/close buttons are MIA, as is the page title bar. I've restored 28 because Australis is driving me nuts!

    You should not have to restore the Firefox 28 release. There is a solution: Classic Theme Restorer. https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/

  • Running FF3.6.8 on Windows 7, 3 window buttons not in top right hand corner ( minimize, maximize and exit) . how do i get these to appear ?

    when FF 3.6.8 loads it loads everything except the the classic window buttons (minimize, maximize and exit ) do not appear in the top right hand corner as the normally would. it seems as though the page has been cut off or the monitor screen is to little for the whole page to load.

    It is possible that the screen is too wide or too high.
    Open the system menu via Alt+Space and see if you can resize that window.
    If that works then close Firefox to save that setting.
    See also http://kb.mozillazine.org/Resizing_oversize_window

  • I need to remove "minimize, maximize, close" buttons on full screen mode

    I can remove all buttons (like refresh, back, forward, address bar, etc..) but the little right 3 buttons "minimize, maximize, close" i cant remove, how can i make with userChrome.css or other option.
    Because i can close firefox exiting from fullscreen and clicking on archive menu with "Alt" key.
    I dont wanna this little 3 buttons, that i can hide and show permanent.
    I hope explain me correctly
    Thanks a lot

    Add code to userChrome.css below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #autohide-context { display:none!important; } /* hide context menuitem "Exit Full Screen Mode" */
    #window-controls { display:none!important; } /* hide window controls in full screen mode */
    </nowiki></pre>

  • Is there any way to increase the size of the window buttons (close, minimize, maximize)?

    I want to increase the size of the window buttons (close, minimize & maximize) because you have to navigate so precisely using the trackpad to use them...it'd be easier if the buttons were a little bigger. Thanks.

    Not possible at the present time.  You may make your wishes known to Apple here:
    https://www.apple.com/feedback/
    Ciao.

  • How do I make the minimize/maximize/close buttons smaller?

    I want to make the minimize - maximize - close/exit buttons on the right smaller. What's the css code to do this?

    Solved it.
    In Windows 7:
    Right click desktop >
    Go to Personalize >
    Click WIndow Color (Custom) >
    Click Advanced Appearance Settings >
    Find Caption Buttons and change the size to your liking!
    I like it at size 18, as it doesn't take up as much space.

Maybe you are looking for

  • Blu-Ray Mystery

    Hi everyone, I am editing my film in premeire elements 10. My project setting is HD 1080i, 1920 x 1080  29.97 fps.  I recently started to practice burning blu-ray's to my work in progress movie, just so i am ready when everything is completed. Howeve

  • Table and field name

    Hi, I m creating a FI report, that contain following fields.. Plz tell. From where i take following fields values: Vendor Code Vendor Name Vendor Address PAN No. Date of Payment / Credit Basic Amount on which TDS Deducted TDS Surcharge CESS Total TDS

  • Can iPhoto autosync to MobileMe web gallery or not?

    I can't seem to get a straight answer to this. I'm using iLife 11. I was told to go to settings then web tab and check auto for check for newly published photos but there is no web tab in the preferences for iphoto11. If I upload an album to gallery

  • Non-static initializers run after constructors, causing confusion

    Here are two Java classes, where class testinit2 extends class testinit1. testinit2 has an initializer and overrides the setaaa method of testinit1. What is surprising us is that the initializer in testinit2 is run AFTER the constructor of testinit1

  • Incompatible au's

    I am using 2 incompatible au's in Logic Ex8, (and they work fine). At start up I get the annoying reminder that I'm using them, and my question is , how can I stop that box from popping up at startup? (ie aside from disabling them)