Hot to get components to adjust size & fill Jpanel when splitPane is moved

HI, i am developing a small app that makes heavy use of swing. in the main JFrame, i need to have a a horizontal split bar dividing it into a top and a bottom
area and in the bottom area another vertical one diving it into 2, left and right. in the right area i need to put a lot of visual controls such as labels, textboxes....
the thing is that i need them to stretch and shrink in size everytime the splitpane is moved. i use a JPanel to hold these controls.
how can it be done?
thank you

DarrylBurke wrote:
_steve wrote:
i know how to use layout managers i just don't know which yields the desired behavior, the one i want.Hence the nudge towards the relevant tutorial, where you can find what you need to know.
i am not an expert swing developer and i don't intend to become one today.Ah, ok. Good luck finding another job, then.
thank youYou're welcome, I'm sure.
dbthank yourself, typical. if you don't have any positive input to contribute with, please do not enter the discussion and save yourself the frustration.
not having time, not needing swing is something and not willing to work is something else.you are no better developer, that i am sure of, too.

Similar Messages

  • How can I get the date to automatically fill in when I start typing it?

    I upgraded to Windows 7 and had to reload my MS Office 2007 program back into my computer.  Now, when I am in a word document and I begin to type in the date it no longer fills in the day and year after I type in the month.  I tried to edit my
    preferences but I don't seem to be able to find it in the program.

    Hello,
    The TechNet Sandbox forum is designed for users to try out the new forums functionality. Please be respectful of others, and do not expect replies to questions asked here.
    Since your post is off-topic, I am moving it to the
    off topic forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • I keep getting "startup disk full" message even when I already moved all my files/documents to an external hard disk

    Dear all,
    What should I do? I keep getting the "startup disk full" message even when I already moved all my files and documents to an external hard disk.
    Thanks a heap.

    For information about the Other category in the Storage display, see this support article.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of your data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    If you're using Time Machine to back up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of files you've recently deleted. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size with the largest at the top. It may take a few minutes for ODS to finish scanning your files.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • Preview Adjust Size Problem

    I receive a PDF file which I print on my HP printer. In the past, in order to get the bottom to print completely, I used the Page setup and set the page to 95%--Now on leopard, that command is gone. Under the Tool Menu, there is an "adjust size" option, but it's greyed out for me. Any ideas?

    Hey I am looking for an answer to a similar problem (so I'm not expert) but I think I might know something about your question:
    If you look at this help page http://docs.info.apple.com/article.html?path=Mac/10.5/en/8619.html
    it shows how you can still access the page setup options. Basically just go file>print then click the arrow next to your printer and the scaling option might be hiding there?
    Sorry if this doesn't help at all, I don't know why "page setup" is only sometimes an option. Ridiculous!

  • Adjusting size of photo prior to emailing it

    Whenever I send an email with a photo attached (from iPhoto) it is huge.  I've checked Help and can't find anthing referring to how to resize a photo prior to attaching to an email.  CH

    To send pic via Comcast email:
    Per RatVega: use Preview to change size of photo   
    Preview > Tools > Adjust size
    Change size by changing height & width > check Resulting Size box
    at bottom of box. Adjust numbers to make file the size you want.
    Save As...Name & put file where it's easy to find, such as on Desktop
    Go to Comcast mail
    Click New > Set up new email.
    Click Attach at top of email window > Attach File window opens
    Click on Choose File > Finder window opens
    Click on the pic file you set up in Preview > Click Choose button
    This takes you back to the Comcast Attach File window.
    Check that your files there, to the right of the Choose File button
    Click Attach at bottom of window
    Wait a couple seconds > email will open with file attached.
    This isn't quite as tedious as it looks. It does get the pic sized & in Comcast.
    Good luck.

  • How can I adjust size of default action frames

    Hi, How can I adjust size of default action frames they are very thin.  I have tried double clicking on that part I think it is in the actions but can only adjust the drop shadows etc not the actual size of the frame ie like in the wooden frame.
    hop you can help

    I think I get what you meant now …
    The »Transform Current Layer«-step in »Frame Channel – 50 pixel« might be the one you want to edit (»Toggle dialog on/off« for example or replace it with a newly recorded different transformation).

  • How do I get my Macbook Pro to fill my name, address , state automatically when i fill in a form? It use to do it.

    How do I get my Macbook Pro to fill in my name, address, city, state and zip automatically when I start to fill out and online form? It use to do it, all I did was put in the first few letters of my name and hit the tab button. Now it no longer does that for me.

    The free MPEG Streamclip and the free component from http://perian.org can convert your AVI to a format understood by iMovie.

  • After updating my I pad, I have problems with getting new apps. After filling in my Apple Id, I fill in my  3 secret questions. But than I get à Message that this session had to break of, without results.

    Alter updating my IPad, I have problems getting new apps. After filling  in my Apple Id, and answer my 3secret questions, I get THE answer that this session had to be ended without results.

    Wow ! I got it running again ! :-)
    I called support and got helped by a very friendly guy:
    We tried serveral things, what worked for me was to reset my cookies:
    - Close all apps by doubleclicking the "home" button - you see all running apps in the lower part of the screen. Then click an hold the first icon until it starts "shaking". Klick the small minus, proceed like that until the row is empty. 
    - Go in to the control center (don't know what it's called in english, in swedish it's "Inställningar")
    - Klick the tab "Safari"
    - Klick on Clear cookies and data ("rensa cookies och data")
    - Close the control center and start App store
    If you now try to download an app you still get the request for the three safety-questions, but when filling them in it works and you can proceed after that. The questions will not turn upp again afterwards...
    Good Luck !
    Other things we tried was:
    - disconnecting the wifi and restarting it
    - log out from app-store (in control center, tab "itunes and appstore")

  • Just bought new iMac. When browsing in Safari, sometimes the text suddenly gets super large. I'm doing nothing except reading the screen, tho I have my hand on the mouse. I can get back to normal size by clicking "actual size" in View. What gives?

    Just bought brand new new iMac. When browsing in Safari, sometimes the text suddenly gets super large. I'm doing nothing except reading the screen, tho I usually have my hand resting lightly on the mouse. I can get back to normal size by clicking "actual size" in View. But then it does it again a minute or two later. What gives? Something seems defective--but what?

    From System Preferences, Mouse, Point & Click, Secondary click.  Go to it hover over Secondary click and watch the short video sequence change it left right, left right, you will see exactly what is does. No I do not think your Mouse is defective, you simply need to take control of your Mouse finger.

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

  • IPhone 5 - The icons and letters enlarge and I can't get them to original size. I restarted the phone but it didn't work.

    iPhone 5 - The icons and letters enlarge and I can't get them to original size. I restarted the phone but it didn't work.

    Sounds like Zoom is enabled. Here's what to do.
    Use "3" fingers and double tap on the screen to zoom out. then just go to Settings/General/Accessibility and turn Zoom off

  • How to get the actual screen size

    Hi,
    I have to get the actual screen size of the cliend in an applet, if i use method
    Dimension dmx = Toolkit.getDefaultToolkit().getScreenSize();
    it does not gives the actual screen size, like the screen size will be different if the application bar ( where we have start button on windows ) is Auto hide, and will be different it is not Auto Hide, or some users ike to keep the application bar on right or left of screen or on top..
    So how do we get the actual display size of screen

    Hi,
    I got how to do if using applet
    in screen object of java script we have methods to get the available width and availabe size
    screen.availWidth
    screen.availHeight
    here is the link for more info
    http://developer.netscape.com/docs/manuals/js/client/jsref/screen.htm
    http://forum.java.sun.com/thread.jsp?thread=275329&forum=57&message=1063410

  • Getting adobe form file size at run time

    hi,
    ya i need the adobe form file size at run time. my requirement
    is to get xstring and file size of the adobe form. adobe form format is already in xstring format, but how to get the file size.

    Hi,
    try the following:
      DATA lv_file_content TYPE xstring.
      DATA lv_file_size    TYPE i.
      lv_file_size = XSTRLEN( lv_file_content ).
    This will give you the file size in Byte. For KB, just divide by 1024, and once more for MB.
    Kind regards
    Ole

  • How to get an empty page to fill content?

    every time we open a new template page, we get this pic, all was filled with words, how to get a n empty page or delete the words auto?

    Thank you all,
    but I intent to have a layout like that without words, so that I can put down the content.

  • Hi, I´d like to how I must do to get a slide photo to fill up all the browser space.Thank you.

    Hi, I´d like to how I must do to get a slide photo to fill up all the browser space in Adobe Muse.Thank you.

    Hi Diezma,
    Please take a look at this forum post : http://forums.adobe.com/message/5077274#5077274. It tells you how you can really fill the browser with the slideshow.
    Regards,
    Aish

Maybe you are looking for

  • Apples to apples - how can I make sense of DNGPE's color readouts?

    The simple version of this question is "how do I convert a DNG file such that Photoshop's HSV (and CIELAB) readouts agree with DNGPE's?"  Put another way, I want to have the same DNG image open in Photoshop and DNGPE, and have both applications agree

  • Swap row and column

    If I have data like this A B C D 1 2 5 3 Is there any way to use select statement to display it in the format of A 1 B 2 C 5 D 3 Basically I'm looking for a select statement to swap row to column and column to row. Thanks in advance Ittichai

  • Set Country-Specific Checks

    Hi experts! In Set Country-Specific Checks the formal checks for Serbia (RS) and Macedonia (MK) are blank. Does anyone know how to find the following information about Postal code length, Bank account number, Bank number length, Post Bank account num

  • STREAM module question

    Hi all, I am newbe in STREAM module development and this question might be a concept error. If so, please could you give me some clues? I would like to use the "libc" funcion "getpwuid()" in a kernel STREAM module. I have Solaris 7 64-bit kernel. �Ca

  • High Level of Frustration on This Board With CS4

    There is a very apparent level of high frustation evident on this board among the various message strings regarding the terrible overall performance of CS4. There are so many bugs reported I just can't keep track. We have people insulting each other