Possible to Restrict the Max Size of a JFrame?

I guess that the JFrame is my top level container, within which JTabbedPane is used. I wish to be able to not make the window maximizable. I remember how that could be done in JInternalFrame. When I looked up JInternalFrame, it looks like the boolean value for maximizable is specific to JInternalFrame and not inherited. Is there another way I can do that? When I messed around with setMaximumSize(), it doesn't stop the user from maximizing.
Also, if I want another container containing various components to obtain user input, which will pop up as a response to a button from the tab, is one container just as good as another, or is there a specific approach which is more friendly to this type of program?
Anyways, this is the bare bones of my code with all the bells and whistles and extra components cut out, in the event that it matters. ;o
public class TabTest extends JFrame
     public TabTest()
          JTabbedPane mainPane = new JTabbedPane();
          JPanel layer1PanelE = new JPanel(); 
          JPanel viewNclearPanel = new JPanel();     
          layer1PanelE.add( viewNclearPanel );
          JPanel entryPanel = new JPanel();
          layer1PanelE.add( entryPanel );
          mainPane.addTab( "Tickets", null, layer1PanelE, "Edit new or existing tickets" );
          getContentPane().add( mainPane );
          setSize(850, 600);
          setVisible( true );
     public static void main ( String args[] )
          TabTest tabtest = new TabTest();
          tabtest.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
}Ty very much
-Aerin

<3 <---- Love

Similar Messages

  • HT201342 what is the max size of attachment that possible to send with icloud email?

    what is the max size of attachment that possible to send with icloud email?

    Welcome to the Apple Community.
    There isn't an attachment size limit as such, the limit applies to the entire message including all attachments, which is 20 MB.
    if you are using a mail application to send emails (ie not via a web browser) you may be subject to smaller limits imposed by your own ISP.

  • Possible to set min/max size to a resizable Stage? If so, how?

    Is it possible to set a minimum and maximum size to a resizable Stage? If so, how would this be done? Do I use some kind of onResize event handler or is there some other way?
    Here is a sample code where I have a 500 x 500 px image in a 300 x 300 px scrollable scene that is in a resizable stage. Right now, I am able to resize the stage to any size, but I would like to limit the resizable minimum width and height to 100 x 100 px and limit the resizable maximum width and height to 600 x 600 px.
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.control.ScrollView;
    import javafx.scene.control.ScrollBarPolicy;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    var scene: Scene;
    Stage {
        resizable: true
        scene: scene = Scene {
            width: 300
            height: 300
            content: ScrollView {
                hbarPolicy: ScrollBarPolicy.ALWAYS
                vbarPolicy: ScrollBarPolicy.ALWAYS
                width: bind scene.width
                height: bind scene.height
                node: ImageView {
                    image: Image { url: "{__DIR__}roses.jpg"}
    }

    Hi, I don't understand how WidgetFX is going to allow me to set min/max size to a resizable Stage. After all, it is a desktop widget platform and I'm not trying to build a desktop widget. None of the demos I've tried use a decorated Stage with platform decorations that can be used to drag and resize the Stage.
    I'm just trying to limit the min/max size of a resizable Stage. If you think WidgetFX will address my problem, I think a better solution is the JavaFX Stage Controller class I found available at http://code.google.com/p/memefx/. However, the JavaFX Stage Controller class still doesn't address the problem I have because it doesn't stop the user from dragging the Stage beyond the size restricted by the min/max height. It only reverts the Stage to the max size after the user already dragged and resized the Stage beyond the max resizable width/height.

  • Is it possible to restrict the user from creating a sibling and allow him to ONLY create child nodes in DRM?

    When in a hierarchy, a user right clicks on a node to crate a new node, he has two options
    -Child
    -Sibling
    Is it possible to restrict the user from creating a sibling and allow him to ONLY create child nodes?
    Business cases:
    1. different level nodes need to have different prefixes.
    - Thus, the default prefix property definition uses the level number to assign a prefix
    - Also, a validation, to ensure the correct prefix, uses the level number
    But if the user can create a child and a sibling then the default prefix will only be right for a single case and not both.
    Thanks

    If the images are exactly the same size then make sure the layer with the mask
    is the active layer and in the other documents go to Select>Load Selection and choose
    your document with the layer mask under Source document and under channel choose the layer mask.
    After the selection loads press the layer mask icon at the bottom of the layers panel.
    MTSTUNER

  • Is it possible to limit the folder size of the Shared folder?

    I have setup quotas for all users who login to our Snow Leopard Server.
    I would now like to setup the Shared folder that is located in the Users folder to have a maximum data limit.  That way, a user can't just dump data into the Shared folder and completely fill the server.
    Does anyone know if that's possible or if there is a better way to create a shared folder that is has a data limit?
    Thanks!
    Kurt

    Thank you Linc Davis for your reply! 
    I have studied the information in that tutorial.  It seems that it is discussing how to setup quotas for individual users and groups on a given volume.  However, what I'm trying to accomplish is setting the limit on a specific folder. 
    OS 10.6 Server already has a feature that I have enabled that sets quotas for each of my user's Home folder.  However, each of them ALSO have access to a shared folder on the server that is not within their own Home folder.  Thus, the individual quotas do restrict the specific size of this Shared folder.
    So I'm wondering if you (or anyone) knows of a way to set a limit, not on a specific user or group, but on a specific folder?  I need to figure out how to enable a setting that basically says: "This shared folder cannot grow bigger than 20GB no matter who uses it," for example.
    Thanks!!

  • What is the max size of HDD I can use in my dc7600 CMT

    I am using an HP dc7600 CMT which is working fine after upgrading to a Samsung 128GB SSD, Intel Pentium D 3.4 GHz, 4GB RAM, and an AMD Radeon HD 6450. I am running Win 8.1 Pro x64, with the most recent upgrade, and have absolutely no problems. I now want to add a second internal HDD, and wonder what is the max size  I can go to. Can I go to 2TB, or am I limited to a lower figure? 1TB? 500GB? 250GB?
    Will be glad for some help here, especially if it has been actually tried in practice.
    Thanks in advance.
    Best regards
    This question was solved.
    View Solution.

    You're very welcome.
    Yes, they are very nice machines. 
    What a jump in performance when I swapped out the Pentium 4 620 mine had, for the PD 945, and tossed in 4 GB of memory.
    That box will also run the Radeon HD 6570 with no problem too, which is what I put in mine.
    The downside of that model is that there are no settings for ahci or raid.
    I own or have owned every CMT since the d510 with the exception of the dc7900.
    My main PC is now the 8200 Elite CMT which I installed W8.1 on.
    It has an i7-2600 processor and 32 GB of memory, 1 TB SATA III hard drive.
    I threw in a Radeon HD 6670 in that one.
    Best Regards,
    Paul

  • How We can restrict the max no of Selections in JList

    Hi,
    How We can restrict the max. no of selections (at random selections) in JList (ex. max No of of selections is 3 in a JList of having 50 items.)
    Thanks for your advise in advance.

    Hello Satyaki De.
    Thank you very much for your suggestion but my Private information is totally apart from this question & I already I have changed each and every information from the question.
    Thanks
    Kamlesh Gujarathi
    [email protected]

  • Transaction F110 - Possible to restrict the input of Identification-field?

    Hello all,
    is it possible to restrict the input of the "Identification"-field in transaction F110 (Automatic Payment Transactions: Status)?
    e.g.: User X with company code XX is only allowed to enter XX01 in the identification field.
            User Y with company code YY is only allowed to enter YY01...
    Is that possible?
    Thanks in advance for any reply!
    Steffen
    Message was edited by:
            Steffen Poetsch

    Hi
    You can control the "identification" with the help of the BASIS guy.
    They will define the authorization object to field level.
    Create seperate roles for that and assign accordingly
    VVR

  • Is it possible to change the font size and weight in an ADF table?

    Is it possible to change the font size and weight in an ADF table? I have tried to change the various font size and weight settings for a table and its columns and they seem to have no effect on the font size or weight in a table row.

    You would use skinning to modify font-size & weight for the table.
    In addition to the link suggested by Vinod,
    Take a look at http://biemond.blogspot.com/2009/01/adf-skinning-in-jdeveloper-11g.html
    Thanks,
    Navaneeth

  • What is the max size of a zip file with the JDK1.5 ?

    Hello everybody,
    I'm a french student and for a project, I need to create a zip file, but I don't know in advance the number and the size of files to include in my zip.
    I wish to know if someone have the answer to my question : what is the max size of a zip file with the JDK1.5 ? I believe that with the JDK1.3, the limit size of a zip was about 2Go, wasn't ?
    Thank you for all answer !
    Good day !
    PS : sorry for my very poor english ;-)

    Here is all I have found for the moment :
    ...Okay, what about my suggestion of creating your own 10GB file?
    Try this:import java.io.File;
    import java.io.RandomAccessFile;
    import java.nio.ByteBuffer;
    import java.nio.channels.FileChannel;
    import java.util.Random;
    class Main {
        public static void main(String[] args) {
            long start = System.currentTimeMillis();
            int mbs = 1024;
            writeFile("E:/Temp/data/1GB.dat", mbs);
            long end = System.currentTimeMillis();
            System.out.println("Done writing "+mbs+" MB's to disk in "+
                    ((end-start)/1000)+" seconds.");
        private static void writeFile(String fileName, int numMegaBytes) {
            try {
                int numBytes = numMegaBytes*1024*1024;
                File file = new File(fileName);
                FileChannel rwChannel =
                        new RandomAccessFile(file, "rw").getChannel();
                ByteBuffer buffer = rwChannel.map(
                        FileChannel.MapMode.READ_WRITE, 0, numBytes);
                Random rand = new Random();
                for(int i = 1; i <= numMegaBytes; i++) {
                    for(int j = 1; j <= 1024; j++) {
                        byte[] bytes = new byte[1024];
                        rand.nextBytes(bytes);
                        buffer.put(bytes);
                rwChannel.close();
            } catch(Exception e) {
                e.printStackTrace();
    }On my machine it took me 43 seconds to create a 1GB file, so it shouldn't take too long to create your own 10GB. Then try zipping that file.
    Good luck.

  • Will Result Cache improve the database performance in 11g? what is the max size of Result Cache?

    Will Result Cache improve the database performance in 11g? what is the max size of Result Cache?

    Thanks for convincing me I really need a new laptop...
    SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:52.94
    SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:00.01
    SQL> select /*+ result_cache */ count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:00.01
    SQL> select count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:00:45.08
    SQL> select count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:01:16.29
    SQL>  select count(*) from emp,emp,emp,emp,emp,emp,emp;
      COUNT(*)
    105413504
    Elapsed: 00:01:18.63
    Message was edited by: Hoek
    The result cache seems to have lagged a bit for the first hintless query..

  • Is it possible to change the font size of the PO terms only in the email?

    Hi all,
    Is it possible to change the font size of the PO terms only?
    We are emailing PO and terms to the Suppliers.
    Is it possible to reduce the font size on terms only so that the file size is smaller and easy to print on the supplier end?
    TIA

    Are we talking out Purchase Order PDFs here.
    If you are mailing PDFs I think you can take a look at the XSL FO Stylesheet which is being used to generate the PDF for a PO.

  • Export/Import-SPSIte :- What is the max size limit that can be moved using this command??

    Export/Import-SPSIte :- What is the max size that can be moved using this command??

    I assume you ment Export-SPWeb not Export-SPSite command.
    There is no known limitations in file size, except the compression file size that is set to 24MB by default. If you exceed 24MB, the cmp file will be splitted into several files. You can change the default 24MB value up to 1024MB, using the -compressionsize
    parameter.

  • Is it possible to increase the font size of the letters in a screen?

    Dear All,
    Is it possible to increase the font size of the Text field letters in a screen (Module Pool Programming)?
    If it is possible, how to increase the font size of the characters?
    Regards,
    Prem

    Is it possible to increase the font size of the Text field letters in a screen (Module Pool Programming)?
    Not possible by using Module pool
    If it is possible, how to increase the font size of the characters?
    HTML Controls may be helpful

  • How Do You Set the Maximum Size of a JFrame?

    Can someone show me a quick example? The JFrame can be empty, I just want to know how to set it's maximum size. I tried using setMaximumSize() and it doesn't work for some reason but setMinimumSize() works fine.
    I tried it using a BoxLayout and even using null as a layout manager and can't get it to work. I heard that the other layout managers don't allow you to set the maximum size of a JFrame so that is why I tried it with the layouts that I did.
    I tried the following code (imported the necessary classes), but it does not work...
    public class MyFrame extends JFrame
        public MyFrame()
            super("TestFrame");
            setLayout( new BoxLayout(getContentPane(), BoxLayout.X_AXIS)  );       
            setMaximumSize( new Dimension(400,200));
            setSize(300,150);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setVisible( true );                
    }// end class

    Reposted from
    {color:#0000ff}http://forum.java.sun.com/thread.jspa?threadID=5236259{color}
    @OP:
    When you repost a topic, please always provide a link to the previous post so people can check what suggestions were already offered (and didn't solve the problem).
    Better still, give a short summary of the advice you have already tried.
    I suggested setBackground(...) so you can see whether your MyFrame is actually occupying the entire real estate of the window. Looks as if trying it out (which I would have done for you if I'd been at home, where my JDK is) would have been too much effort for you.
    I'm pretty much a novice in Swing, but I can tell you this: setLayout controls the layout of components added to the JFrame, not the layout of the frame with respect to its parent container.
    Luck, Darryl

Maybe you are looking for

  • How to change the URL of a URL-iView over Code ?

    Hi all, i am getting started with the Portal-Application-Developement and want to change the URL of an URL-iView on runtime with java-code. i have read the context and can get the Property url with this statement. endContext.getProfile().getProperty(

  • How to use the classpath defined in a manifest file when debugging

    Using Jdeveloper 10.1.3.3.0 (or any version) I'd like to be able to debug using an executable jar which specifies my classpath and main class, without having to manually add all the jars to my debug configuration. Is there a way the debugger can extr

  • D2G Gingerbread Update - Touchscreen Issue

    Hi all.  Ever since the 4.3.3 update, there is a portion of my touchscreen about 1/4" wide that won't respond.  With the phone upright it's on the right side, with the keyboard extended it's at the top. It's driving me nuts, because I can't tap icons

  • PDF Workstation application

    Dear Friends, Till yesterday I could able to view PDF documents. But today I couldn't able to. I checked the docuement type, it was checked for KPro. I checked for PDF in DC30. File suffix for appl. - PDF File format - .pdf,.* MIME type - application

  • Import Workflow from Site-Template to Visual Studio 2012

      Hi, I would like to import a SiteCollection Template into VS 2012 to create a sandboxed solution WSP Deployment Package. The Package should contain some document libraries, some content types and a reusable workflow running in one of the imported c