Controling Minimize and Close control

Hi am again ,
can any body plz tell me how I disable the Minimize and Close control
in swing awt application ????

this doesn't rally answer the question, but might suit??
import java.awt.*;
import javax.swing.*;
class Testing extends JFrame
  public Testing()
    setTitle("JFrame");
    setSize(300,200);
    setLocation(350,200);
    setUndecorated(true);
    getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    getContentPane().add(new JPanel());
  public static void main(String[] args){new Testing().setVisible(true);}
}

Similar Messages

  • Greyed out "close", "minimize", and "zoom" controls with Yosemite

    After updating to Yosemite, the "close", "minimize" and "zoom" controls for windows are not in color. They are shown in black and white, only. I am using a 13-inch mid 2010  Macbook Pro with 4 GB memory. Any ideas on what I need to do to get the colors back? I expect that there might be other areas in OS X where I have the same problem. I will appreciate any help you can offer. Thanks.

    Hey vermontbill,
    Thanks for the question. There are two different things that could be happening here. First off, when a window is out of focus (another window or application is in use) the buttons will appear greyed out/inactive. Switching back to the window will return the color.
    Second, if your “Appearance” setting in System Preferences > General is set to “Graphite” instead of “Blue” - this will occur.
    Mac Basics: Set your preferences
    http://support.apple.com/kb/ht2490
    Thanks,
    Matt M.

  • The main problem I am having is just opening and completing my emails. The screen freezes and I can't do anything but minimize and close.

    After I close the window/s the report error window pops up . Then the next one which tells me the report was sent. Then the options to go further and so I came here today and Now I have done what you said to do so far. I even updated Acrobat reader and Flash player. I have used Mozilla Firefox for years and never had any trouble like this. This is the way windows behaves on a regular basis and is why I changed to Linux for years. I got this computer a couple years ago and did not have any trouble. Recently I have this to deal with several times every day. I cannot close the window in upper right corner without bringing up more error windows. So I minimize and close at the bottom. It still takes way too long, but it finally closes. I hope this helps you , I don't know what else I could tell you, Thank s for your time.
    Deb

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • Missing maximize, minimize and close buttons

    I see that people have been having problems with these issues before the finalized FF4, I have the most updated version on my PC. The answers all seem to say it was a problem with beta versions. When I stay online for long periods of time my full screen, minimize and close buttons disappear. I have 2 screens and have found that when I pull a tab to the other screen the buttons reappear with that tab. But all the tabs still on previous screens are still missing. If I pull the whole set of tabs (opened together) I still can not get the buttons to reappear. when I am ready to close all the open tabs at once I use task manager and close down FF4. Right now I see my background screen where the button should be.

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen
    If you are in full screen mode then hover the mouse to the top of the screen to make the Navigation Toolbar and Tab bar appear.<br>Click the Maximize button (top right corner of the Navigation Toolbar) to leave full screen mode or right-click empty space on a toolbar and choose "Exit Full Screen Mode" or press the F11 key.
    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
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can also try a different Windows theme.

  • Change the Colors of Expand, Minimize and Close Window Buttons

    How do I change the colors of the Expand, Minimize and Close window buttons?
    Red, green, and yellow are not conducive to red-green colorblind individuals, and the gray scheme in the Graphite appearance is too dull.

    If the change in theme can do it, there must be an alternative.

  • Minimize and close portlets

    Included in the pdk is the excite provider sample. Their portlets have a minimize and a close button in the headers. Does anyone know how they accomplished this? Does it require a java portlet or can it be done with a pl/sql portlet? Thanks for your help.

    PDK August, released next week, contains an article "How to create a minimizable portlet". The article details the steps for Java portlets. As only three basic services of the PDK are used (parameter passing, session handling, customization), it can be implemented using the PL/SQL API as well.
    You can also check out this thread: http://technet.oracle.com:89/ubb/Forum66/HTML/000875.html
    Regards,
    Peter

  • Maximize/minimize and close buttons do not work properly

    Suddenly the buttons at the top right are not working properly. There is no change in appearance when hovering the mouse over it. This does not occur immediately after I open firefox but shortly afterwards. I noticed by accident that if I open the options box and close it again these buttons will work for a while. It also applies to dialogue boxes that open up as well. I did not add any plugins, but I do believe there was a recent update for firefox installed. Thanks

    Thanks, however I am on release 18.0. I am not quite sure yet but I think the problem may have solved itself. Since I first posted if happened a few times but nothing over the past couple of hours so perhaps the issue resolved itself. I'll repost if it does. Thanks again

  • Get minimize and close icons

    Hi,
    Anyone know how i can get the icons used to minimize and maximize JFrames and JInternalFrames from the LookAndFeel. Fanks vey match in advance,
    Dave

    A lot of users are running into this lately. The fix seems to be to change your screen resolution so that the box will fit within your screen. Then you set the resolution back.

  • Minimize / Maximize / Close controls missing

    I just auto-upgraded to 10.0 on my Windows 7 (64 bit Home Premium). The top right window controls have disappeared. How do I get them back?
    BTW this was the worst upgrade yet, problems occurred with the pinned shortcut and in the start menu. Norton getting knocked wasn't a bonus either. Felt very Microsoft, and very unfinished.

    The latest version usually has a few kinks to work out, however the problem usually lies with an actual plugin or addon in which the user installs. Visit the latest known issues & release notes for the latest version for further details.
    See: [[Latest Firefox issues]]
    [http://www.mozilla.org/en-US/firefox/10.0/releasenotes/]

  • I don't like the look of the new firefox and I treid to change the theme by clicking on an Add-on, but nothing happened and nothing changed. Also I can't see the minimize and close buttons on the corner of my screen.

    the Add-on didn't work to download. It was the Qute theme to make firefox look more like an older version.
    Also the top right corner of my screen is black and I can't see the minimize or restore or close button. they work by me guessing where to place my mouse, but the buttons can't be seen.

    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • User Control Constructor and Child Controls

    Hi to all,
    I have a simple usercontrol (UserControl1), that contains only 2 Bottons (button1 and button2). The property Visible of These 2 Bottons is true.
    I have then a form that contains only the usercontrol.
    *** CODE OF UserControl1 ***
    public partial class UserControl1 : UserControl
     ArrayList CtrlColl = new ArrayList();
     public UserControl1()
      InitializeComponent();
      CtrlColl.Add(button1);
      CtrlColl.Add(button2);
      Test1(); // << Line to comment
     public void Test1()
      Control ctrl;
      Int16 Counter = 0;
      ctrl = CtrlColl[0] as Control;
      ctrl.Visible = false;
      foreach (Control c in CtrlColl)
       if (c.Visible)
        Counter++;
      MessageBox.Show("Visible controls: " + Counter);
    *** /CODE OF UserControl1 ***
    When application runs, I see the message: "Visible controls: 1" .
    Ok, that works.  BUT if I comment the line in the constructor UserControl1()
    and  in the constructor Form1() I add  :  this.userControl11.Test1();
    the message is "Visible controls: 0" .
    That's not right, button2 is still visible!
    What I'm missing? Where is the Problem?
    Thanks.
    *** CODE OF Form1 ***
    public partial class Form1 : Form
     public Form1()
      InitializeComponent();
      this.userControl11.Test1();
    *** /CODE OF Form1 ***

    When you call Test1() Method in Constructor of the UserControl, it has not been added to Form.
    But When you call Test1() Methos in Constructor of Form, the usercontrol hase been added to a form, after added to form, the visibility of the usercontrol would be influenced by form.
    private void InitializeComponent()
    this.SuspendLayout();
    this.userControl11 = new WindowsFormsApplication1.UserControl1();
    // this.userControl11.Test1(); <--- add to here , value will be 1
    // userControl11
    this.userControl11.Location = new System.Drawing.Point(50, 89);
    this.userControl11.Name = "userControl11";
    this.userControl11.Size = new System.Drawing.Size(262, 150);
    this.userControl11.TabIndex = 0;
    // Form1
    this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    this.ClientSize = new System.Drawing.Size(375, 357);
    this.Controls.Add(this.userControl11);
    // this.userControl11.Test1(); <--- add to here , value will be 0
    this.Name = "Form1";
    this.Text = "Form1";
    this.Load += new System.EventHandler(this.Form1_Load);
    this.ResumeLayout(false);
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • The maximize/minimize and close and buttons are not shown correctly when FF windows is maximized.

    I have the same problem on all my computers, one running Windows 7 and two with Vista.
    The three buttons in the upper right corner of the FF windows are not shown correctly. They are soft of cut off in the middle when the FF window is maximized.

    It is possible that the screen is too wide or too high and that the scroll bars fall off.<br />
    Open the system menu via Alt+Space and see if you can resize that window.<br />
    If that works then close Firefox to save that setting.<br />
    See also:
    * http://kb.mozillazine.org/Resizing_oversize_window
    Window sizes and positions are stored in [http://kb.mozillazine.org/localstore.rdf localstore.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder].
    See http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Cant find the buttons forthe mozilla maximize, minimize and close options

    i have tried removing hardware acceleration, restarted in safe mode and returned to original theme but none of these options are helping. It simply shows a black region but when i press in the corner of minimize position it is working, dont know why it is happening. I have also updated the browser but eve that is not removing it.

    i fixed it by unchecking the "run in compatibility mode" in the properties--> compatibility tab. ''gopikrishna [[#question-1039736|said]]''
    <blockquote>
    i have tried removing hardware acceleration, restarted in safe mode and returned to original theme but none of these options are helping. It simply shows a black region but when i press in the corner of minimize position it is working, dont know why it is happening. I have also updated the browser but eve that is not removing it.
    </blockquote>

  • Why have my buttons for maximize, minimize and close turned gray?

    The X - and + buttons on all my windows are all gray.  What has happened? 10.7.5. 

    Howdy, Troutbum63.
    The change is due to a change in the 'Appearance' setting ('Blue' has likely been changed to 'Graphite') in the General pane of your System Preferences.
    This article provides detailed steps and information for getting there.
    Mac Basics: Modify your windows
    http://support.apple.com/kb/HT2487
    From the Apple () menu, choose System Preferences.
    Choose View > General.
    To change the colors of the window elements from the default blue appearance, you can choose Graphite from the Appearance pop-up menu to make OS X take on a cool, monochromatic graphite color.
    Cheers!
    Allen

  • I have adobe reader 11.0.09 for windows 7 pdf are opening but minimize and close icon  are not showing

    please help

    Solution found. By enabling a lockdown feature, we prevented Adobe from trying to muck about getting online. Actually NSA provides recommendations on how to lock down Adobe Reader, google "NSA recommendations for configuring Adobe Reader XI in a Windows Environment". We only used:
    HKLM\Software\Policies\Adobe\<product>\<version>\FeatureLockDown\cCloud
    bDisableADCFileStore                    REG_DWORD               Set to 1

Maybe you are looking for

  • How do I backup my iTunes library to an external drive?

    Hi there, Is there any way of backing up my itunes library direct to a backup device such as an external hard drive or online back up software? The only option I can see is to back up to disc but that will take 50 discs!

  • How to restore backup archived files

    hi folks i have backup the archived files ,now just for educational purpose i want to back up/restore database from these archived files what steps i will take,i read that control files should also be back up is it true if it is then why control file

  • Adobe Captivate 7 will not open after successful installation

    After successful installtion of Captivate 7, I am unable to open/run the program.  The error message below is received when attempting to open the program.  I've installed/uninstalled the program twice both with the same results.  Any thoughts on why

  • Elements 12 organizer has stopped working on importing of files

    I am running a brand new PC w8.1 fresh install, second install of elements and photoshop 12.  when I am attempting to import my files in the organizer I am getting a consistant crash "Elements 12 organizer has stopped working".  Need assistance to ma

  • LR4 Module Error

    An error occurred while attempting to change modules while starting up LR 4.1. New install on a new MBP first time trying to start up