How to disable close & minimize button of jframe?

how can i disable the close and minimize button of the Jframe?

to disable minimize
setResizeable(false);
to inactivate the close button
setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);

Similar Messages

  • How to disable the minimize button on the JFrame?

    Does anyone know how to disable the "Minimize" button on the JFrame (Window)?

    Why bother using a JFrame at all? Just extend JDialog, and there won't be a minimize button to worry about at all. The only drawback is that a JDialog doesn't put an icon in the taskbar, so you have to move/close other windows until you can see the JDialog window on the desktop.
    The windowMinimized stuff doesn't let you stop what the window is doing -- you just get an event telling you what happened.

  • How to disable the cancel button in InputDialogBox?

    Can someone please tell me how to disable the cancel button in an input dialog box?
    thanks,

    Cross posted: [http://www.coderanch.com/t/487888/Swing-AWT-SWT-JFace/java/disable-cancel-button-input-dialog]

  • How to programmatically close/minimize my app

    Hi,
    How to programmatically close/minimize my app.
    Regards
    Symadept

    Have you tried any of these NSApplication methods?
    miniaturizeAll:
    hide:
    terminate:
    \- Ray

  • How to disable "View Report" button in reporting services

    Is anyone know how to disable "View Report" button in reporting services, I know can do custom code in report properties, what is the code? I have tried something like this ***button1.enable=false, but it can not success.
    Appreciate if anyone can reply me, thanks.

    Hi,
    The message box don't work on the web because it is of windowform box. Based on your further description, you might want to do the date parameter validation. If so, there is common way to do this:(assume the date parameter value inputed can't be less than 2007)
    1) Intert a textbox and input the message used to show the end users if they input a invalidated date value for the parameter, and then set the textbox's hidden property to =iif(Year(Parameters!myPrameter.value) < 2007,false, true)
    2) Insert a Rectangle control below the textbox created in step 1, and put all report items in it and set the Rectangle's hidden property to =IIF(Year(Parameters!myParameter.value)<2007,true,false)
    After these, if the end users input the date value can meet the project requirement, the report will show the data the end users want, otherwise, the end users will see the error textbox to tell them the parameter value is incorrect.
    Hope this help,
    thanks,
    Jerry

  • How to disable the trackpad button function?

    My trackpad botton goes mad, it's seems like hold you mouse's left button and you can click the right button, just can't open the file, my usb mouse works great only in Snow Leopard, in Leopard I can use none of mouse or trackpad.
    I think my trackpad button has broken, I want to disable this button, but I don't know how, can you give me some advise?
    I'm using Snow leopard( 10.6.2 ) now, how to disable the trackpad button in SL?

    I'm using Snow leopard( 10.6.2 ) now, how to disable the trackpad button in SL and keep my trackpad available, I prefer using touchpad, I think I can disable the button and still use touchpad?
    I apologies for my poor english.

  • How to disable the AET button on Web UI?

    Hi all,
    Does anyone know how to disable the AET button in the Web UI? Our customer doesnu2019t want the end users to change any configuration and the only thing left for this is hide/disable the AET functionality.
    Thank you very much in advance.
    Kind regards,
    Alvaro

    Alvaro,
    The AET should not be visible to end users, especially not in the production system.
    This should be done by authorisation.
    If you are referring to the personalization, you can disable this in the businessrole by selecting a value for the parameter PERSONALIZATION.
    If there are no values available, you can maintain them in sm30 --> PERSCV_PROFILE.
    Hope this helps.
    Regards,
    Pieter Rijlaarsdam

  • How to disable the salary button

    How to disable the salary button in "Combined Per & Asg Form WKFLW_NAME="US HRMS PERSON TASKFLOW" screen function.

    You should not modify the taskflow "US HRMS PERSON TASKFLOW" directly. Instead, create a new Taskflow that contains the navigation items you require, and then create a new function that uses the Taskflow.
    1. Create a Tasklfow
    2. Create a Function using the form "Combined Per & Asg Form" including the parameter WORKFLOW_NAME="XX HRMS PERSON TASKFLOW" (or whatever you have called it)
    3. Use this function in your menu definition.
    http://download-uk.oracle.com/docs/cd/B11454_01/11.5.9/acrobat/115hradm.pdf
    See section "Configuring Oracle HRMS" for more information on Taskflows.

  • How to disable close button during runtime

    Hi everybody.,
    Please help me how to disable the close button at top of the window during runtime. I dont want the user to use that button to close. I have used button called Exit in that form but sometimes users closing by clicking that button.
    I am using Oracle form 10g R1.
    Thanks in Advance,

    Hi,
    Thanks Mr. Arif Khadas for your quick reply.
    While running the form, in window there will be two close button, one is in form and another one is in Internet Explorer. By making changes on the property what you said above this will hide only the form's close button. I want to hide the internet explorer close button also.
    Thanks in advance.

  • How to disable the Tools Button in Bex Analyzer

    Hi Guys,
    How do I disable the Tools button only in Bex Analyzer so as to avoid the users messing with Query Designer.
    Thanks,
    Recca

    Recca,
    Can you do this via authoirsations instead?  ie. Allow two types of users, Designers who have access and Users who don't.
    User will be able to access the Query Desinger but have no access to create or save. That should suffice.
    If you start tweaking with the toolbar it may have wider negative implications.
    Regards
    Gill

  • How to disable the cancel button in the ProgressMonitor

    hi,
    I need to know, is there any way to disable/remove the (cancel)button in the ProgressMonitor?
    One more problem is,
    Once i click the cancel button, isCanceled() return true, how to make it false again so that the process continue....
    It is very urgently.....
    please help me out.
    Thanks in advance.
    Regards,
    Deepa Raghuraman

    I don't think that's a good solution, because Cancel button itself is not disabled, so user is tempted to click it and nothing happens.
    A better but dangerous solution is this:
    progressMonitor = new ProgressMonitor(ProgressMonitorDemo.this,
                                         "Running a Long Task",
                                         "", 0, 100);
    progressMonitor.setMillisToDecideToPopup(0);
    progressMonitor.setMillisToPopup(0);
    progressMonitor.setProgress(0);
    JDialog dialog = (JDialog)progressMonitor.getAccessibleContext().getAccessibleParent();
    JOptionPane pane = (JOptionPane)dialog.getContentPane().getComponent(0);
    pane.setOptions(new Object[]{});Refer to the same question here [http://stackoverflow.com/questions/512151/how-do-i-disable-the-cancel-button-when-using-javax-swing-progressmonitor] .

  • How to disable generic alv buttons in CL_SALV_TABLE?

    I am needing to disable individually the generic alv buttons in CL_SALV_TABLE. 
    I see how to disable buttons by group.  eg-
         lr_functions->set_group_export( abap_false ).
         lr_functions->set_group_filter( abap_false ).
         lr_functions->set_group_sort( abap_false ).
         etc....
    However, I cannot find source  codes to disable individual buttons.  Is it possible to do this?...   and if so would appreciate an example coding.
    Best Regards,
    Dean Atteberry.

    There are method available in the class CL_SALV_FUNCTIONS_LIST which can be helpful to active / deactive certain button.
    Like: To remove the SORT Ascending button:
      data: lr_functions type ref to cl_salv_functions_list.
      lr_functions = gr_table->get_functions( ).
      lr_functions->SET_SORT_ASC( ).
    Regards,
    Naimesh Patel

  • How to disable user defined buttons

    hi,
    how to disable userdefined buttons in alv in webdynpro abap.
    thanks and regards,
    Sridevi.D

    Hi,
    Create attribute in context to control enabling/disabling action of a button. Bind this attribute to button. In some action method populate this attibute with boolean values.
    Reward point if useful.
    Regards,
    Karthick S

  • How to disable (grey out) button in report

    Hi,
    Can any one; pls help how to disable button (grey out) on some specific condition.
    I have a report of 2 pages; In first page it displays few records; once click on specific record control goes to next page 2; And here i have button (template based button); Once click on this it perform pl/sql procedure.
    My requirement is: The button should disable (should not hide) when moves from page 1 to page 2 based on some specific returned values in page 2.
    I have return code in button conditions (Condition type = PL/SQL Function Body Returning a Boolean)
    Sample code is:
    if :value1 = 'disable_test_value' then
    return false;
    else
    return true;
    end if;
    The above code is working fine with button completely disappers if the :value1 = 'disable_test_value' (which is suppossed to be as we gave return false).
    My question is: Is there any way; we can still show button (but button disabled or grey out; so that no action can perform on this button )? And also show some text message in other text field when button is disabled?
    Thanks!!
    UK

    I have an example: http://apex.oracle.com/pls/otn/f?p=27168:1 using theme #2. You need to use a theme that has a "grayed-out" alternate button template.
    To accomplish this I:
    1) Created one item named P1_VALUE1 to contain the condition as to whether the button should be enable ("enable_test_value") or disabled ("disable_test_value").
    2) Created an enable button with a "Button Style" of "Template Based Button" with "Button Template" value of "Button". I had the "Condition" type of "PL/SQL Function Body Returning a Boolean" to be:
    if :p1_value1 = 'disable_test_value' then
    return false;
    else
    return true;
    end if;I had the "URL Target" to be: javascript:alert('Performing function ...');
    3) Create a disabled button with "Button Style" of "Template Based Button" with "Button Template" value of "Button, Alternate 3". I had the "Condition" type of "PL/SQL Function Body Returning a Boolean" to be:
    if :p1_value1 != 'disable_test_value' then
    return false;
    else
    return true;
    end if;I had the "URL Target" to be: javascript:alert('Performing function ...');
    Mike

  • Hide Minimize Button in JFrame - Swing

    Hi Everybody,
    Is it possible to Hide the Minimize Button which will appear in right top Corner of the JFrame?
    OR
    Is it possible to deactivate the Minimize Action in the JFrame?
    This is for Java Application.
    Thanks in Advance.
    Best Regards
    Sam

    Hi,
    Please open the iView in Content Administration> click on Properties check for the properties. If nothing works try changing Height Type to Automatic.
    Hope it helps.
    Regards
    Sahil Kohli

Maybe you are looking for

  • Short Dump while Complete deletion of data Contents from a Cube.

    Hello Experts, I am facing a runtime Short dump whenever i attempt to delete data from a Cube. Shown Below:- Runtime Errors         MESSAGE_TYPE_X Error analysis     Short text of error message: Data request to the OLTP     Long text of error message

  • Iphone 3gs has no wifi in grey after 4.3.3 update

    I have had a 3GS since launch and it is long out of warrenty and when i recently updated my iphone to 4.3.2 firmware i found my wifi in grey reading "no wifi" i  was unable to access the wifi menu so i rebooted my phone a bunch of times and the wifi

  • ITunes Store Freezing with 10.5 & Windows 7

    I have Windows 7. With version 10.5 of iTunes, the Store keeps freezing on me. Can use Store if I open iTunes in safe mode, but looking for a more permanent fix. Anyone know how to do this?

  • Weblogic running as a service

    I want to collect performance data from weblogic running as a service. I customized the commandline in the installSvc script and inserted a profiler class in front of weblogic.Server. When i start the service, beasvc crashes. How can i work around th

  • Rename & deletion of planning book & Data view

    Hi Experts, Is it possible to rename & deletion of planning book & Data view, if yes what is the procedure. Also suggest if hiding of same is possible