Disabling Maximize option from JFrame without disabling the resizing option

Hi all,
I want to know how we can disable the maximize option of a JFrame window without disabling the resizing option. I have tried JFrame.resizable(false). It disables both maximizing and resizable option. But I need the resizable option to be working.
Anyone can help me?
Thanks in Advance

this works OK on 1.5.0_05 (unsure about other versions)
and you'll lose the minimize as well
import javax.swing.*;
import java.awt.*;
class Testing
  public void buildGUI()
    JFrame f = new JFrame("JFrame");
    f.setUndecorated(true);
    f.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
    f.setSize(400,300);
    f.setLocationRelativeTo(null);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setVisible(true);
  public static void main(String[] args)
    SwingUtilities.invokeLater(new Runnable(){
      public void run(){
        new Testing().buildGUI();
}

Similar Messages

  • I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?

    I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
    Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
    This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
    This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
    The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
    If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
    I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
    I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
    https://support.apple.com/en-us/HT201322
    A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
    In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
    Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
    If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!

    My apologies for the lack of photos, here is my post again with photos.
    I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
    Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
    This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
    This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
    The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
    If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
    I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
    I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
    https://support.apple.com/en-us/HT201322
    A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
    In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
    Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
    If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!
    iPhone 6, iOS 8.3, Also an issue on my iPad mini iOS 8

  • 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)
    ...

  • How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?

    How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?
    I have been using Windows to write files to my 1TB WD external hard drive and I do not want to format to loose the files capacity of around 500GB
    Someone, Please help

    Hi Allen,
    Is there any way to store the back up to Mac and restore after formating?

  • I purchased a download copy of Acrobat Pro XI for Mac from a reseller online for $199.00. Now I am suspicious that the reseller is less than trustworthy.  Could I purchase a copy from Adobe without losing the $199 that I already spent?

    purchased a download copy of Acrobat Pro XI for Mac from an online reseller for $199.00. Now I am suspicious that the reseller is less than trustworthy.  Could I purchase a copy from Adobe without losing the $199 that I already spent?

    I doubt it. The clue should be the price. Any time you see a copy available for less than from Adobe, I would be suspicious. You can inquire with the Adobe sales folks, but don't expect any credit. At this point, I would suggest just buying AA DC, rather than AA XI.

  • Does anyone know how to upload email contacts on my iPhone from iTunes without loosing the phone contacts previously transfered from my older phone??

    Does anyone know how to upload email contacts on my iPhone from iTunes without loosing the phone contacts previously transfered from my older phone??

    Good Afternoon irish357,
    I know the importance of saving and updating your contacts. What type of phone do you have? If you are using Backup Assistant, you have the ability to sync the contacts between your laptop and phone. You will also be able to see if all your contacts are stored on the online portion of the application versus the phone itself. The contacts should be the same for both online and the phone.
    I have attached a link below for your reference.
    http://bit.ly/rKiyOf
    I hope this information is helpful in resolving your concerns.
    Sincerely,
      JonathanK_VZW
    VZW Support
    Follow Us on Twitter@VZWSupport

  • Remove the Maximize Button from JFrame

    Dear all,
    i am haviing problem with JFrame, that i need JFrame with Minimize and Close Button but not Maximize button.
    Please send me the code in which ***JFrame can show only Minimize button and Close Button***
    Thanks and Regard
    Md Zahid Nasim

    fairly simple (at least in 1.6)
    iterate the frame's components (recursively) looking for AbstractButton
    when found remove it
    the max button is the first one, so code it so it only removes once
    if you use the os's titlebar (windows, anyway) the button will still be there, but disabled
    if you use JFrame.setDefaultLookAndFeelDecorated(true), the button will be removed

  • How to Remove Maximize button from JFrame

    Dear all,
    I am having problem with JFrame, that i need JFrame with Minimize and Close Button but not Maximize button.
    I have already disabled the maximized button but I want to remove it from the JFrame.
    Please show me the path to achieve this goal..

    it's relatively easy when java controls the decorations, using
    JFrame.setDefaultLookAndFeelDecorated(true);
    but this is generally not the L&F preferred.
    run a program with the above line (line must be before any JFrame is created),
    and if suitable, search the forum, solution has been posted a number of times

  • How to Separate Vocals from Music Without Losing the Vocals?

    I want to separate my vocals from a song, but without losing the vocals because I want to put those vocals on another song. How can I do this? I have Garageband and Audacity on my mac, but I also have Windows. Are there any programs anyone would recommend? Can it be done with Soundtrack maybe? Or Sony Acid Pro 7? Any program that can do it please let me know so I can get it.

    Separate? No. Not with any software.
    http://www.bulletsandbones.com/GB/GBFAQ.html#removevocals

  • Select from table without specifying the column list.

    I want to reference the columns in select list without specifing the column name of a table.
    For example i am having a table called emp(id number,name varchar2(30)).
    I want to write a query which will display the name of the employees.
    But i don't want to specify the column name in the select list.
    Can anybody help me in this regard.
    Thanks in advance.

    I want to write a query which will display the name
    of the employees.
    But i don't want to specify the column name in the
    select list.So what do you want to specify in the select list?
    One way to display the names of the employees without specifying that you want the names of the employees would be
    select * from emp

  • How can you upload photos to FaceBook from iPhoto without using the sync where is deleted in iPhoto it will be deleted in FaceBook

    How can you upload photos from iPhoto to FaceBook without having the sync where if you delete from iPhoto you delete

    I think you have to have the files on your HD. So either put them in iPhoto or copy them to a folder in Finder, and from there you can upload to Facebook.

  • UPDATE single ROW from DATAGRID without refreshing the entire ItemsSource

    Hello there,
       I have a simple datagrid that has an ItemsSource of ObjectQuery<DbDataRecord>.
       Let's say I want to refresh a single row from the datagrid, (Because a specific item i know has been changed) without refreshing the entire ItemsSource because the source query is quite big.
    Any ideas?
    Thanks.
    -- Jorge_M_P

    Whilst you could raise property changed on every field in an item, that would of course mean implementing inotifypropertychanged on a wrapper object, then iterating all of those properties.
    An observablecollection implements the INotifyCollectionChanged interface.
    Amongst the possibilities for changes which that notifies are this one:
    https://msdn.microsoft.com/en-us/library/ms653207(v=vs.110).aspx
    Which notifies of a single item change.
    I usually wrap my entity framework objects.
    Sometimes I wrap all the properties so I can do change tracking in the viewmodel.
    This is a technique similar to the one I use in this sample:
    https://gallery.technet.microsoft.com/WPF-Highlight-Changed-a77976d4
    Which wraps plain classes - but the principle is the same.
    And
    I wrap the object and expose that, as I do in this:
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    Note that because I wrap the same objects returned from EF, there is very little overhead in using an observable collection there.
    Hope that helps.
    Recent Technet articles:
    Property List Editing ;  
    Dynamic XAML

  • Create an mp4 from mov without changing the dimensions

    I am working on a project in InDesign that needs to output to DPS.
    I take screen capture movies which are saved in the default mov format. These movies are 700 px x 400 px. That can't change.
    I need to convert the mov to an mp4 to add to ID for DPS.
    I open Adobe Media Encoder but I am confused as to how to set the output controls.
    I don't want to change the dimensions.
    What setting will convert the mov to mp4 without changing the dimensions?

    Does this help?

  • Removing unchecked songs from ipod, without deleting the files from itunes?

    I want to remove a large amount of songs from my ipod, without deleting them from my itunes.
    I unchecked them all in itunes, but accidentally synced my ipod without selecting "Sync only checked songs." But now when I sync it--even with that box checked-- it leaves all the unchecked songs on my ipod.
    I can't seem to just go into the music on my ipod and delete them either.
    Is there anyway I can automatically remove all the unchecked songs from my ipod without deleting them from itunes?
    (I know I can manually choose what to sync, but it would be a massive headache to go through 30 gigs of music to select the 20 I want on there....)

    Hey Emily,
    So the *Sync only checked songs and videos* option is still ticked from under your iPod's Summary tab correct? If so, what options do you have ticked from under the Music tab for your iPod? If it is set to only sync *Select Artists, Playlists, and Genres* try changing that to sync your entire music library. Then make sure to hit the Apply button to update the changes to your iPod.
    Any luck there?
    B-rock

  • How to delete the data from KNVP without using the delete statement

    Hello friends,
    I have a requirement that I have to delete the data from KNVP table without using any delete statement. For it I have to use the Standard BAPI or any standard program.
    Can you please tell me the name of the standard program or BAPI to delete the data .
    Thanks in Advance
    Kuldeep

    Hello Raymond,
    I have use the function 'CUSTOMER_UPDATE' in which I only gives the data in T_XKNVP table only but still the data is not get deleting. Please see the code below.
    =============================================================
    REPORT  ZK_TEST2                                .
    data :
        I_KNA1     LIKE     KNA1,
        I_KNB1     LIKE     KNB1,
        I_KNVV     LIKE     KNVV,
        I_YKNA1     LIKE     KNA1,
        I_YKNB1     LIKE     KNB1.
    Data :
    T_XKNAS       LIKE     FKNAS occurs 0,
    T_XKNB5     LIKE     FKNB5 occurs 0,
    T_XKNBK     LIKE     FKNBK occurs 0,
    T_XKNVA     LIKE     FKNVA occurs 0,
    T_XKNVD     LIKE     FKNVD occurs 0,
    T_XKNVI     LIKE     FKNVI occurs 0,
    T_XKNVK     LIKE     FKNVK occurs 0,
    T_XKNVL     LIKE     FKNVL occurs 0,
    T_XKNVP     LIKE     FKNVP occurs 0 with header line,
    T_XKNVS     LIKE     FKNVS occurs 0,
    T_XKNEX     LIKE     FKNEX occurs 0,
    T_XKNZA     LIKE     FKNZA occurs 0,
    T_YKNAS     LIKE     FKNAS occurs 0,
    T_YKNB5     LIKE     FKNB5 occurs 0,
    T_YKNBK     LIKE     FKNBK occurs 0,
    T_YKNVA     LIKE     FKNVA occurs 0,
    T_YKNVD     LIKE     FKNVD occurs 0,
    T_YKNVI     LIKE     FKNVI occurs 0,
    T_YKNVK     LIKE     FKNVK occurs 0,
    T_YKNVL     LIKE     FKNVL occurs 0,
    T_YKNVP     LIKE     FKNVP  occurs 0 with header line,
    T_YKNVS     LIKE     FKNVS occurs 0,
    T_YKNEX     LIKE     FKNEX occurs 0,
    T_YKNZA     LIKE     FKNZA occurs 0.
    T_XKNVP-KUNNR     =     '7000002648'     .
    *T_XKNVP-VKORG     =     '0001'     .
    *T_XKNVP-VTWEG     =     '01'     .
    *T_XKNVP-SPART     =     '01'     .
    T_XKNVP-KZ      =     'D'     .
    append T_XKNVP to T_XKNVP.
    CALL FUNCTION 'CUSTOMER_UPDATE'
      EXPORTING
        I_KNA1        = I_KNA1
        I_KNB1        = I_KNB1
        I_KNVV        = I_KNVV
        I_YKNA1       = I_YKNA1
        I_YKNB1       = I_YKNB1
      TABLES
        T_XKNAS       = T_XKNAS
        T_XKNB5       = T_XKNB5
        T_XKNBK       = T_XKNBK
        T_XKNVA       = T_XKNVA
        T_XKNVD       = T_XKNVD
        T_XKNVI       = T_XKNVI
        T_XKNVK       = T_XKNVK
        T_XKNVL       = T_XKNVL
        T_XKNVP       = T_XKNVP
        T_XKNVS       = T_XKNVS
        T_XKNEX       = T_XKNEX
        T_XKNZA       = T_XKNZA
        T_YKNAS       = T_YKNAS
        T_YKNB5       = T_YKNB5
        T_YKNBK       = T_YKNBK
        T_YKNVA       = T_YKNVA
        T_YKNVD       = T_YKNVD
        T_YKNVI       = T_YKNVI
        T_YKNVK       = T_YKNVK
        T_YKNVL       = T_YKNVL
        T_YKNVP       = T_YKNVP
        T_YKNVS       = T_YKNVS
        T_YKNEX       = T_YKNEX
        T_YKNZA       = T_YKNZA
    =============================================================

Maybe you are looking for

  • When I try to reinstall iTunes, I see the error "Could not open key: UNKNOWN\Components\..."

    Hello, everyone. About a month ago, iTunes was working fine (save for the fact I couldn't update it. No matter if I tried automatically or manually, it would tell me it couldn't be updated or that the update failed.) I don't exactly remember if I was

  • Error while deployment of  CMP 2.0 bean on weblogic 11g

    Hi, I am not able to deploy my CMP 2.0 bean on Weblogic 11g. There are two JVM available in weblogic 11g. 1) Java(TM) SE Runtime Environment (build 1.6.0_22-b04) 2) Oracle JRockit(R) (build R28.1.1-14-139783-1.6.0_22-20101206-0241-windows-ia32, compi

  • FF 5 has problems, won't start today (yesterday OK). How can I get FF 4 again?

    Today, FF5 gave me a blank screen (white canvas, no buttons, etc.). Had to terminate using process explorer. Tried reboot = no change. So, I uninstalled it. I want to install FF4 but can't find it on your site. I did install Adobe Acrobat and Reader

  • Oracle 10g r2

    can i ask if oracle 10gr2 is rac. Also, i am using solaris 10 installed on vmware pls can some direct me on how to install oracle 10gr2 on it. Thanks

  • Posting Depreciation

    I am able to run depreciation with AFAB in background processing in Ecc 6.0.But when i see awo1n i can see that a triangular yellow sign appears.I know it will turn into green only if we post it.But how to post depreciation.Can the the run date and s