Size settings for swing components and resizing of a JFrame

Hi all!
I'd have the following question:
There is a JFrame, which content panel has the GridBagLayout. In some places on that layout's grid there are JScrollPanels (let's name each as "inner panel") with JTables in the view ports.
When user resizes the main JFrame, I'd like that all inner panels and corresponding tables would resize synchronously: if user enlarges the main JFrame, then the sizes of all those components should increase proportionally, when user makes the main JFrame smaller, then all the sizes should become proportionally less.
I am confused with the settings for max, min and preffered sizes for inner panels as well as for their JTables. I have read about those size attributes and tried to play with them, but I can't obtain the needed result :-/
Each inner panel has the "BOTH" value for the fill attribute in the GridBagLayout's constraints.
Might someone help me?
Thanks in advance!

Hmm...
The JPanel that contains all stuff is the JFrame's content pane...
The entire JFrame's content pane contains another panels (JScrollPanels), which are all set to fill all available space on the parent panel (JFrame's content pane) with "both" value of the "fill" attribute.
Should I put the only one JPanel on the JFrame's content pane and all other stuff at that additional JPanel...?

Similar Messages

  • Hello All... Back after a brief absence, things look a little bit different. I'm trying to take a 16 minute mini dv video and compress it for use on the web. I'm interested in any suggestions you may have on settings for the video and audio tracks. I'v

    Hello All...
    Back after a brief absence, things look a little bit different.
    I'm trying to take a 16 minute mini dv video and compress it for use on the web. I'm interested in any suggestions you may have on settings for the video and audio tracks. I've tried using Sorenson 3 (15 frames, key frames set to automatic, 320 x 240) for video and IMA 4:1 (mono) for audio. The resulting video looked great but the file size came in at about 255 Mb.
    Thanks!
    PowerMac G5 1.8 Dual   Mac OS X (10.4.3)  
    Message was edited by: Dan Foley

    Thank you for the replies.  Everyone was correct about the jack, interface, and phasing problems.  I have been unplugging my motu audio interface and then using headphones at work.  I have not changed any detailed audio output settings in logic.  When I read that the jack might be a problem I tried switching headphones.  This actually helped.  I am using dre-beats headphones and they seem to be having issues with the mac/jack-(the phasing/panning problems.  I can use these headphones with other devices but not the mac.  I have to use ipod ear buds and the phasing seems fixed.  Hopefully this information is helpful to someone else. 
    If anyone knows how to correct this issue please let me know its difficult to know what my final mixes are going to sound like and I have had to keep bouncing everything into i-tunes- sync to ipod and then listen in my car radio. 

  • Windows 8.1 forgets dpi / display size settings for one monitor on almost every reboot

    I use TV 32" with 1920x1080 and cintiq 13" with 1920x1080
    when I boot my PC the resolution is fine but DPI is wrong.
    In smaller monitor It's look like DPI is higher than the bigger one.
    I already set dpi to be the same (smallest 100%) but it's not work until I do something to change display setting.
    It's really annoy me. This problem is not happen when I use windows 8
    Only solution I found is turn off
    "Turn on fast start-up".
    When I do that It's boot like what I want. every monitor is the same DPI.
    But it'll make my boot time longer.
    It should be just start up windows and use the same dpi from the start.
    So I think this problem is a bug in windows 8.1
    Best regards

    Thank you for reply.
    I've already used the latest graphic card driver. But It's won't help this issue.
    In registry editor. I check those variables then value of them is already set like that blog suggest.
    So , it look like when windows start-up(with fast start-up) It use something like
    suggest value for different monitor size instead of what I set in control panel. But when I turn off fast start-up windows use my setting value.
    And I think there are a lot of people who got the same problem as me.
    Here is an example.
    http://answers.microsoft.com/en-us/windows/forum/windows8_1-desktop/windows-81-forgets-dpi-display-size-settings-for/385cb615-d699-47f8-8c12-717e3364c866

  • GUI Builder: Where to get Icons for Swing components

    Hi,
    I am creating a GUI Builder for Swing GUIs and I am searching for icons representing Swing Components as seen in many GUI Builders like JBuilder.
    So I want to have ToggleButtons with icons in a toolbar, to let the user choose what Swing Component to create (e.g. JTextField, JList, etc.).
    Are there any free icons for Swing Components?
    Thank you very much for your help.
    Regards,
    Alex

    Hi ipooley,
    thanks for this reply but I know that page already.
    What I am searching for are icons of JComponents like JButton or JTextField etc. . You can see them for example in some GUI builders like JBuilder-Designer and they are looking as if they are Java native.
    Regards,
    Alex

  • Order of focus for swing components

    Hi All,
    I am in search of the way to definine the order of focus for swing components.
    I have a JPanel to which I can add multiple JButtons and JLabels. My problem is that when ever JButton comes, it should get the focus even though JLabel exists.
    If I drag the JButton on to JLabel then also it should be placed on top of the JLabel.
    Can any body help me to solve this problem.
    Thanks in advance,
    Regards,
    Roja.

    Hi,
    I am giving my sample code here.
              if (textButton != null) {
                   setUserTextPresentFlag(true);
                   textButton.setFocusPainted(false);
                   textButton.setContentAreaFilled(false);
                   textButton.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
                   textButton.setBounds(
                        editPosX,
                        editPosX,
                        textButton.getWidth(),
                        textButton.getHeight());
                        textButton.setRequestFocusEnabled(true);
    //                    textButton.grabFocus();
                        textButton.requestFocus();
    System.out.println("requestFocus isDisplayable::"+userTextImageButton.isDisplayable()+" isEnabled "+userTextImageButton.isEnabled()+" isFocusPainted "+userTextImageButton.isFocusPainted()+" isVisible "+userTextImageButton.isVisible()+" userTextImageButton.hasFocus() "+userTextImageButton.hasFocus());
    I am getting the following values for the system.out.println values.
    isDisplayable::false isEnabled true isFocusPainted false isVisible true userTextImageButton.hasFocus() false
    I didn't find a method to set displayable to true.
    could u find where the problem is?
    Thanks in advance,
    roja.

  • Naming convention for Swing components?

    What are the official naming conventions for Swing components such as JButton, JFileChooser and so on?
    I know that "btn" is used for JButton variables. But where is a official list for all the prefixes?

    Well, if you unpack src.jar and consult the component classes you'll find how they set up their names.
    You can also call setName yourself to set a different name.
    - David

  • [svn:fx-trunk] 13276: Min/ Max size fixes for AIR Window and WindowedApplication.

    Revision: 13276
    Revision: 13276
    Author:   [email protected]
    Date:     2010-01-05 07:18:31 -0800 (Tue, 05 Jan 2010)
    Log Message:
    Min/Max size fixes for AIR Window and WindowedApplication.
    AIR won?\226?\128?\153t allow you to set the min width greater than the current max width (same is true for height). You also can?\226?\128?\153t set the max width less than the current min width (same is true for height). The code that sets nativeWindow.minSize and nativeWindow.maxSize has been modified to take this into account.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-24566
    Reviewer: Corey
    Tests run: checkintests, apollo/spark/components/Window.as, apollo/spark/components/WindowedApplication.as, apollo/Window, apollo/WindowedApplication
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24566
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
        flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/Window.as
        flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/WindowedApplication.as

    THank you , Nancy. Appreciate the input.
    So instead of this:
    <a class="brand" href="index.html"><img src="../img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    Would it be something like this?:
    <a class="brand" href="index.html"><img src="http://ConsumersAdvocate/img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    And if I do that, is there a way to cope with that locally so that DW can still display the images?
    jeff

  • After upgrade my Iphone 4 to iso5, I can't add contact and I can't access the settings for mail,contacts and calender. The moment I select the setting for Mails, Contact and Calender it will jump back to home. Can someone advice what's wrong with it?

    After upgrade my Iphone 4 to iso5, I can't add contact and I can't access the settings for mail,contacts and calender. The moment I select the setting for Mails, Contact and Calender it will jump back to home. Can someone advice what's wrong with it?Problr

    Dear All
    i have done the same activity ( buy a new iphone 4 -> upgrade to ios5 - > configure email) with success-
    than when i start to move the contacts from old mobile to iphone (using the microsim) i receive the same crash
    in disgnosis e use i saw 2 dump with this title 'latestCrash-Preferences.plist and LatestCrash.plist. in each file the date is the same and i read:
    Exception Tyle: EXC_CRASH (SIGABRT)
    Exception code: 0x00000000, 0x00000000
    Chrashed Thread: 6
    in thread 6: name: Dispatch queue:
    com.apple.addressBookUI.ContactsSettingPlugin
    and thaan a lot of data.
    Have you any idea?
    thank in advance
    Fabio

  • Strange info in "Bypass Proxy Settings for These Hosts and Domains"

    For my Mac Mini my Network IP Address always has a self-assigned 169.254 number that I cannot change. Strangely, this same IP number is similar to info that is in the Proxies section (of Network Settings) under "Bypass Proxy Settings for These Hosts and Domains".
    No matter what I do, this info (*,local, 169.254/16) appears in my Network Settings in the Proxies section under "Bypass Proxy Settings for These Hosts and Domains". (I tried removing the info and it would cause the "Configure Proxies" selection to default to "Always Use PAC File". Had to go back and retrash all the plist files to have Proxies go back to "Configure Proxies-Manually". Still, the info (*,local, 169.254/16) continues to appear in the "Bypass Proxy Settings for These Hosts and Domains" section and my IP address is always a 169.254 number.)
    Comcast cable modem via direct hardwired Ethernet works fine with my other computer, so not the modem. Also, other computer does not have any info in the "Bypass Proxy Settings for These Hosts and Domains" section.
    Installed a fresh copy of OS X 11.5 on a new hard drive. Still the same problem.
    I posted this issue before but only got one responder and the problem still exists. Any clues? Somebody must know about this stuff. Help please.
    Thanks

    When your Mac wakes up, it does not yet have an IP Addresss. It wants to send a request to a Router for an apprpriste IP address to use now. But it needs to have an IP address (like a return address) to receive any messages. So, ... wait for it,
    ... it (your Mac) makes one up. There are rules that ensure it is a random address, but they always start with 169.254. It is on the same subnet with any low-order 16 bits This is the "self-assigned" range of IP Addresses. This address is only good for talking on a local network segment, for things like asking for a valid IP Address from a DHCP-enabled Router.
    In most cases, on most networks, the 169.254 self-assigned IP Address is replaced by a valid Local IP Address such as 192.168.xxx yyy or 10.0.xxx.yyy so quickly that you never even see the 169.254 Address.
    If you do see the 169.254 Address, it can be read as "Nobody will talk to me" or "Nobody will give me an IP Address". When you have this IP Address for more than an instant, you should suspect bad cables for Ethernet connections, bad signal strength or interference for wireless, Router configuration problems, or Mac configuration problems.
    Mac configuration problems are often solved by using the "Assist Me" button is System Preferences > Network  and choosing to set up again.
    Another diagnostic is to try using Network Utility and the Ping function, and Ping-ing the address of your Airport base Station, often 192.168.0.1 or 10.0.0.1 or similar. This will tell you if the Router is reachable, or there are cabling/wirelss signal problems.
    In this case, proxies are not an issue, and are simply a distraction from the real problems.

  • "current encoder settings for bit rate and sample rate are invalid" message

    I have some files I am working with. Details and what happened:
    Had some music files where I was doing some trimming/splitting. Files worked fine in itunes.
    Open the files in Quicktime Pro 7 to trim them. Exported to aif.
    Opened the files with itunes. They open and play just fine.
    In Itunes I click"create AAC version" to convert them.
    I receive the message "An error occurred while trying to import the file. The current encoder settings for bit rate and sample rate are not valid for this file."
    I don't know what to do from here. Suggestions?
    Thanks.

    Make sure that the AIFFs that you export are set for 16 bit PCM.
    Also, assuming that you are using 44.1 kHZ sampling in your AIFFs, make sure that you are not trying to use 48 kHz in the AAC.

  • Making system settings for measurement documents and measuring point

    What is the significance of making system settings for measurement documents and measuring point in spro?
    Edited by: Pallavi Kakoti on Jul 14, 2011 1:23 PM

    Hi,
    << Moderator message - Cut and paste response from http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YY-OLI0IMRCCUST removed. Plagiarism is not allowed in SCN >>
    Regrds
    Jitender
    Edited by: Rob Burbank on Jun 6, 2011 10:53 AM

  • Is it possible to create Thread for Swing Components or for JApplet?

    Can i create a Thread by extending Thread class or implementing Runnable interface for Swing Components?
    Can i create a Thread by extending Thread class or implementing Runnable interface with JApplet?
    thanks

    Does your website live on a Windows server? The above link you posted will require a Windows server for that to work but if you do, then you should be able to just follow the links instructions.
    If your site is not on a Windows server (maybe it's on Linux?) then you would most likely need a PHP solution - something like this: http://www.w3schools.com/php/php_mail.asp. Depending on your host, they might actually have a ready-built form script for you to use so it might be best to ask them first.
    You might also want some kind of validation to ensure you receive the correct information so something like jQuery Validate could work.

  • How to use stysheet for Swing components?

    Hi,
    Give me a guidence abt how to use Stylesheet for Swing components to crate good looking GUI...........thnx

    thank you for your reply,
    I want to know how many times a component is refreshed. I'm asumming the RefreshCondition attribute gets called everytime a component gets refreshed, hence it could be counted.
    I'm just not sure how to use it.

  • Skins for swing components

    HI All!
    Please tell me where I can get skins for swing components for free.

    http://www.javootoo.com/

  • TS1717 when trying to import cd the following message appears "the current encoder settings for bit rate and sample rate are not valid for this file"?

    Trying to import cd when this message appears "the current encoder settings for bit rate and sample rate are not valid for this file".  Any suggestions?

    Thanks so very much.  I chose MP3 and Download and it is working beautifully.  Have a wonderful day and it is so nice of you to get right back to me.  I'm trying to cut a DVD for my grandson's grad party and I got most of the photos and didn't have any music since I lost everything in a clean install.  Could hug you!

Maybe you are looking for

  • SCORE: Tuplets, can't get 15:16 tuplet to work

    Hi Rohan and you other score guru types, No matter what I do I can't these notes to display as a single 15-tuplet of 32nd notes. But as seen in the pic, I'm able to group them as three groups of quintuplets (but this isn't what I want). Is there some

  • I keep getting the "WMSVCR80.dll was not found" message

    I updated itunes, however I keep getting this message despite attempts at re-installation of itunes.  How can I fix this from here?  I tried to uninstall, and itunes reported that I need administrative priveledges.  Not true since it is a home comput

  • Unable to debug/correct the CMOD code for a variable used in a query

    unable to debug/correct the CMOD code for a variable used in a query i am using the data in a DSO in a query and using a custom coding variable in that query , but this data not coming in that query .. can anyone suggest how to debug that cmod code f

  • ClassCastException from OraclePreparedStatement.setArrayInternal() method

    The following code throws a ClassCastException from oracle.jdbc.driver.OraclePreparedStatement.setArrayInternal() method line# 5886 when cs.setArray() is executed. Connection conn = getConnection(); // Returns a java.sql.Connection instance CallableS

  • Why can't I view a list of my Calendar entries

    suddenly I can't view all my calendar entries on iphone 4. The screen is taken up with a display of the calendar month/year with only one or two lines of my entries. I want to see the lot & don't need to see a display of a calendar. I've looked at Se