Allow user to resize window vertically only

Hi,
I have a JFrame that I want the user to be able to resize vertically, but not horizontally ~ how do I implement that functionality?
Also, is there away to remove the maximize button from the Title Bar but maintain the minimize button?
Thanking you in advance,
Lena

try:
      myJFrame.addComponentListener(new ComponentAdapter() {               // prevent resizing the window to a size smaller than the ideal size
         public void componentResized(ComponentEvent e) {
            Dimension size=getSize();
            int w=myFixedWidth;   // put whatever the width limit you want here
            setSize(w,size.height);
      });;o)
V.V.

Similar Messages

  • Allowing user to resize a Windows executable?  Getting full screen visible?

    I am publishing to .exe format due to some issues with SWF and the content of our presentations.
    In testing the .exe, I have two problems:
    -- I'd like the user to be able to resize the window for the presentation but this doesn't seem to be possible.  I've tried both "fullscreen" check box and no full screen at the point of publish
    -- Some of the edges of the training screens are not visible.
    The part of the screen to the far right is not visible to the user even though it is visible on the screen and in other publishing modes.
    I wonder if this is the fault of having a TOC?
    I tried to make the table of contents more narrow, but Captivate resets my TOC width to 250 no matter what I put in.
    I tried publishing the TOC both separately and overlaid.
    Publishing it as overlaid with the checkbox for fullscreen seems to "solve" the problem, but the TOC is invisible unless you know to look for it.
    I would prefer the TOC to remain up the entire time to the left of the presentation to allow users to review and to see their progress, but publishing it as "separate" with both fullscreen and non fullscreen publish options results in not being able to see the right side of the screen.
    Any tips for me?

    The minimum width allowed for a TOC is 250 pixels.  You cannot go lower.
    From what you describe, I would say that this is one of those "you can't have your cake and eat it too" scenarios.
    When using FullScreen view, it seems that Captivate is not taking into account the width of the TOC when it resizes.  Yet it knows about the TOC because the TOC is still visible after resizing, even though some of the main screen is pushed off stage.
    I would recommend you log this as a bug with Adobe.  There are often use cases like this that just don't get tested and slip through the cracks in a large application like Captivate.
    Your workaround is to use Overlay TOC mode when using fullscreen.  If the TOC icon is too 'invisible' for your taste, you can change these icons into something bigger and bolder to make it more obvious.

  • Disabling user from resizing window?

    Hello. How do I stop users from being able to resize the window?
    Also, how can I set the default size of my window?
    Heres a sample...
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class gui extends JFrame
         public gui()
              super("GUI");
         public static void main(String[] args)
         JFrame frame = new gui();
         WindowListener l = new WindowAdapter() {
              public void windowClosing(WindowEvent e) {
                   System.exit(0);
         frame.addWindowListener(l);
         frame.pack();
         frame.setVisible(true);

    Sorry, I told you the wrong thing there (I didn't look up the API docs before I posted, so I guess I did the same thing as you ;)
    You can call setSize(...) for sure. The methods that I cited (setPreferred, setMinimum, and setMaximum) don't exist (but their 'get' counterparts do, so that's why I got confused).
    In any case, you can use 'getSize(...)'. This doesn't exist in the Frame class itself, but in the Component class. If I am looking for a method sometimes I do a Ctrl-F search in IE to look for a method name, because sometimes ut's hidden away in the super-class(es) method list.
    Hope that helps.
    Ben

  • I want to allow user to open a page only from the home page and not directl

    Dear friends,
    Can you help me in this.
    My home page is using frames. In one of the frame i am calling one html page which is calling one applet. Is it possible to hide the source code of the bottom frame .
    As the user types in the absolute path of the request on the address bar , he any how manages to see my source code of the html (view source) thereby the applet tag .
    Can't figure it out, how to hide the source code of the bottom frame .
    I read that its possible with redirecting it to some other page , but how will i know that user is not calling from the home page
    Any body , who can help in this regards.
    Bye
    Thank's

    You can set up a javascript to prevent someone viewing the page source, but anyone web-savvy will be able to switch off javascript and see it anyways.
    You could also add a request value to the second page so that you have "<a href="page.jsp?parameter=00a">" and if the parameter is not set the page will not show. That is a bit of a hack but would probably work.
    Basically, don't put anything too security dependent on the client site, because once it is run on someone's computer they have access to it.

  • Cannot resize windows from all sides? Just the 1 corner??

    Hi all,
    I've just switched back to Mac in the past year after 6 years with Windows. While in no way do I prefer windows overall, I cannot understand why Mac has not made all four sides of a given window 'grabbable' for resizing.
    This is a massively inconvenient situation when you consider how often many of us need to resize/compare windows, particularly when switching to new computers, uploading files, etc.
    Am I missing the solution? Is there a script available?
    All I find on here are pointers to windowdragon and it requires APE which I prefer to avoid. Is there REALLY no OEM solution to this???
    Thanks in advance for any enlightenment on this...

    Adding that feature wouldn't pose a problem for you, though, as you wouldn't have to use it (though I bet you would in time). For people switching to mac after years on the PC, this is in fact a much-lamented issue.
    Since it wouldn't hurt 'the people who don't care' to add the functionality, but the vast majority of Windows converts would be happier, it only makes sense, from a marketing standpoint, to add the feature.
    People who aren't in the habit of using the feature (like yourself) quite naturally don't care much, but if you ARE in the habit of using it, it's quite annoying to have to draw the mouse all the way across the screen to find some dumb little spot (how I feel about it) when you know full well there is a more efficient way to handle the issue, and you're quite accustomed to it.
    Consider this: I CAN use windows XP like a mac, in that I CAN go down to the bottom right corner to resize the window. If that were actually the superior method to resize the window, in every circumstance, I would naturally already be working with it that way. And of course I wouldn't notice there's a difference.
    But it's not a superior manner of handling the 'resize' issue when your mouse is way ovver somewhere else on the screen. While this might sound like much ado about nothing, when you consider how nice it is to remove or simplify repetitive tasks, it's really a major annoyance.
    But me, I'm an early adopter of the latest solutions for simplicity in the interface. I also have the new Logitech NuLOOQ ToolDial device, which has some real promise too.
    Allowing users to resize the windows from any border on the window is a good idea, and not a bad idea, no matter how you look at it. It would cause no problem for anyone, yet help/satisfy many people, particularly those coming from the ONLY major opportunity Apple has to gain market share - windows users.
    To be clear, this isn't a pro-windows rant, I'm just completely peeved with this one majorly annoying 'missing link' in an OS I otherwise like quite a lot. Implementing this feature wouldn't seem to be a major software engineering feat for the likes of Apple, so what's the holdup?

  • Evilwm unable to resize windows

    Hi all.  I just recently switched to evilwm.  To my knowledge <ALT> + Right Click should allow me to resize windows... but i am unable to do so.  I have also tried to right click on the border,  nothing. so yeah, does anyone have any suggestions?  is there a file where i can modify these key bindings?  thx!

    In cwm (which is similar to evilwm) it’s alt + middle click. I see the wiki says alt + Button2, which may mean the same thing.
    As for editing keybindings, cwm has a config file, but near as I can tell evilwm does not and is not reconfigurable.
    Last edited by Anthony Bentley (2011-03-23 15:39:02)

  • Java daemon on boot: "This user is not allowed access to the window system right now."

    The daemon is located in /Library/LaunchDaemons/ and launches successfully on most occasions. However, it sometimes fails to start with this error:
    Nov 17 20:36:24 server.local java[28972]: This user is not allowed access to the window system right now.
    Nov 17 20:36:24 server com.apple.launchd[1] (net.java.server): Throttling respawn: Will start in 10 seconds
    I have the server command running as a background daemon using its "nogui" option (the developers claim to have written it to not display a gui). However, it seems that somewhere along the line, Java is trying to display something. As the daemon is running before users log in, it gives this error. Once a user is logged in to the system, it runs fine; however, logging in a user to run the server is not an option. It needs to run on boot.
    Any ideas for how to solve this? I'm going to contact the developers to see if it may be something they can fix, but I want to be able to force the issue in case the problem ever occurs in the future.

    Irrespective of any claims by the developer, this certainly appears to be a test case that shows that the tool is not working as expected, and that the application has a bug.  This test case would be better if there was some evidence around why only some of the startups fail, but in general this will involve what's been suggested earlier:  "Contact the application developer."  
    As some general background on what's involved, see daemons and agents and related; processes that are not allowed to connect to the GUI for reasons of security.
    I'd also suggest testing your DNS, as seeing "server.local" can imply local DNS configuration errors.   Launch Terminal.app  from Applications > Utilities and issue the following harmless diagnostic command and see if it reports no changes, or if it detects network or DNS errors:
    sudo changeip -checkhostname
    If this is OS X Server and a NAT'd network, you do not want to reference any DNS servers located off of your NAT'd network.
    Why DNS?  Because DNS errors can cause only some operations to fail, particularly if there's more than one DNS server selected (and where some subset of the DNS servers are malfunctioning or misconfigured).

  • How to allow user defined in list item to see item using only Designer. Approver set in list item can't see items they are to approve.

    SharePoint 2010 and Designer 2010.
    We have a list of items that users enter information into. Only the user who enters the data can see the item. It's confidential stuff. 
    One field is the name of the person who will approve this record.
    Workflow sends approver an email and sets a task to approve the item. 
    Problem is that the user set as approver cannot see the item. 
    We can't have a list of approvers - as all staff can potentially be approvers.
    We can't allow anyone other than the person who created the item and the person that is set as approver in a field to have access. 
    I am not a programmer, but a user of SharePoint Designer 2010. 
    (I did think we had this sorted by sending an email containing all the list item fields, but this task still requires permissions). 

    Hi ,
    I understand that after you grant user permission on current item ,the user still cannot approve the workflow task .This is because the user doesn't have approve permission in the Tasks list .You only grant the user permission on current item in current
    list ,so he can approve the item by clicking the Approve/Reject in the edit control block .
    Your workflow is correct ,now you need to grant the users Approve (a permission level) permission in the Tasks list settings .In this way ,the users can finish the tasks .
    Thanks
    Entan Ming
    TechNet Community Support

  • Hi, I have macbook Pro, running Leopard OS X. I partitioned my hard drive a while ago to install windows and only allowed myself 10 Gig of data. Anyway, i deleted windows and want another OSX on there instead. How do i make this partition bigger please??

    Hi, I have macbook Pro, running Leopard OS X. I partitioned my hard drive a while ago to install windows and only allowed myself 10 Gig of data. I deleted windows after i realised i wasnt enjoying using it at all and wasted my hard drive. I now decided that i want another OSX on there instead yet i have only allowed myself 10 gb on the partition. I have ben thru some programms but am struggling on making this partition bigger.
    I only want it at 20gb but cant seem to make the partition bigger, only smaller or split it into further partition.
    Is there a way to do this, i have all installation discs from original OSX so think this could help.
    Any help please would be fantastic.
    Thanks Chris

    Hi, dragging the partition will only make smaller, not larger. In disk utility you can only split or make smaller the partitions. Yes i booted from installation disks also but still no help.
    And Brody, I am willing to erase the disc completely, infact jus started doing a backup in order to do so but that failed also. And the information you gave on partition a hard drive, Although very simple and i already know how to do this, but it wont let me make the partition bigger, and i dont want to make a new partition, just enlarge the one i already have, which i dont see possible from disk utility.
    Getting really frustrated now, even backing up is saying no to me. **** external being a douche.
    I dont mind erasing the hard drive but surely this must be doable without deleting the secondary partition back t a single volume, and re partitioning into 2 volumes again.
    Thanks again

  • On and iPad how to Allow User To Enter Custom Text  (Dropdown only) Enables users to enter a value other than the ones in the list.

    On an iPad, how do I :
    Allow User To Enter Custom Text
    (Dropdown only) Enables users to enter a value other than the ones in the list.'?

    Are you using the built-in Currency option under the Format tab? If so,
    what you're describing should not happen.

  • Allowing user to access only documents created by him.

    Hi!, is there a way to allow users to read only the documents created by them?, so when they click on the browse data buttons on top they navigate through the documents created only by the specific user?
    Thank you!

    Hi,
    Please check Data Ownership Authorisation if the same is of help in your case.
    [Data Ownership Authorisation|https://websmp201.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_HIER_KEY=701100035871000371280&_OBJECT=011000358700004490662004E&_SCENARIO=01100035870000000183&]
    Regards,
    Jitin
    SAP Business One Forum Team

  • How to privent the users from resizing/maximizing/minimizing the mdi window

    In http://forms.pjc.bean.over-blog.com/60-index.html i read about 'A JavaBean to handle the Forms applet's frames' .
    In formsframe.java It is written that the author is Francois Degrelle so i want to ask Francois: My goal is to privent the users from resizing/maximizing/minimizing the mdi window. I have jre 1.6.0_10 which jar file do I need formsframes5.jar or formsframes.jar (those files are in formsframes.zip)
    thanks

    lidochca wrote:
    Hello, please help me to solve the problem !!Key Loggers, Spyware. The solution is not to write such reprehensible crap.

  • Allowing Users only SINGLE POINT of Access?

    Hi everyone,
    We recently purchased the Mac Mini and this is our first time utilizing and managing FTP/serverside commands and settings.
    My question my be relatively elementary for the more expereienced but:
    Is it possible to restrict users so that they may only log into the Server/FTP and access the files/data from a single touch point?
    If so how do you do achieve this function/restriction?
    Potential scenario would be allowing a user account to access the server from only one computer at once, not use the same login to access from multiple computers simultaneously.
    We are currently running OS X Maveric 10.9.3
    Thank you in advanced for any tips and guidance.

    Hi Santy,
    Yes, I have gone through the link you have shared.
    Also, I read the content from the Release Notes of Version 11.1.2.0 and it says like below.
    "Essbase now supports active-passive failover without Oracle Clusterware. You can use EPM System Configurator to configure Essbase in an active-passive failover configuration with write-back capability. For more information, see the Oracle Hyperion Enterprise Performance Management System Installation and Configuration Guide and the Oracle Hyperion Enterprise Performance Management System High Availability Guide."
    My queries with regards to the above content is:
    1) Is Essbase Version 11.1.2.0 Supports only Active-Passive Failover in UNIX Environment? Won't it supports Active-Active Failover?
    2) Is this approach (Active-Passive) is suitable in my case as the cubes in my project are being used for  Reporting Purpose only? Data Write back is not required but Active-Passive has this feature. I think, we can control the data write back by using Filters though this fail-over approach enables data write-back.
    3) We have EAL & DSS implemented in the current project. These are used to refresh/create the Essbase Database from the HFM Repository. Does the Fail-over supports in this case?
    4) I tried to access the installation and configuration Guide of Version 11.1.2.0 but seems this has been removed from the document repository. Do you suggest any other link to download this document?
    It will be much helpful if you could clarify them, please.
    Thanks
    UB.

  • How can I have a checkbox that a user checks and populates a field with read only text, then if another checkbox is checked it will allow user text input

    Hi
    How can I have a check box that a user checks and populates a field with read only text, then if another check box is checked it will allow user text input into that same field, her is my javascript
    var a ="Not Applicable"
    if (this.getField("Do").value == "Yes")
    a=""
    if (this.getField("DoNot").value =="Yes")
    a=a + ""
    event.value=a
    say if the "Do" cb is checked, Not Applicable would populate the text field, and if the "DoNot" cb is checked it would allow user input into the same text field, the javascript I have will not allow user input,
    thanks for any help I am new to javascript

    Are these fields mutually exclusive?

  • I would like to run a stock analysis program called Toolkit 6 on my Macbook Pro, but it only works on the Windows platform.  Is there software that allows me to run Windows applications on the Mac?

    I would like to run a stock analysis program called Toolkit 6 on my Macbook Pro, but it only works on the Windows platform.  Is there software that allows me to run Windows applications on the Mac?

    Yes it's MS Windows! You will need a license of MS Windows (preferable Windows 7) and from there you can decide on the strategy for running Windows on your iMac. You can use Boot Camp (you already have this) or you use virtualization software such as Parallels or Fusion. For your situation I'd recommend virtualization software. However for only one program I'd do some due diligence to see if there is a OS X version. You can start with the App store or simply use Google to search.
    Kappy has provided a good article on running Windows on a Mac and the various options. Here is the link:
    Kappy's explanation
    Roger

Maybe you are looking for

  • Opening PDF in Web Browser(IE)

    Hi, I have written a program to download PDF file. When user will click on "Download" link, PDF file should open in web browser IE itself. Currently file is opening in separate window. I am creating this PDF file run time and it is not stored in hard

  • Problem with slide block puzzle

    Hello: I am doing a project that solve slide-block puzzles. My program take two common line arguments. One is a file specifying the initial configuration while the other specify goal configuration. My idea is to use an arrayList<block > to represent

  • Ki for SIM card applet installation

    Hi How can i found/generate Ki for installation of a STK applet on SIM card ??

  • Navigation puts 2440 M St NW, Washington DC in Chevy Chase MD

    Navigation places any address on M St NW, Washington DC

  • SE78 - Sapscript / Smartform

    Moved to correct forum by moderator Ladies and Gentlemen, I am investigating graphics upload into SAP for use in sapscripts / smartforms.  The format that I am currently researching is TIFF.  I have previously used SE78 and have had an option to uplo