A problem related to setLayout(...)

Hi all,
I put two JScrollpanes inside a JFrame, using setLayout(GridLayout(1,2)). However I cannot adjust the sizes of the both JScrollpane. Do I have to use setLyout(Flowlayout())? Any suggestion or hint would be greatly appreciated.
Thank you so much in advance.
Li

the grid layout will resize the scrollpanes automatically to fill the grid rectangles.
Try experimenting with nested BoxLayouts (javax.swing.BoxLayout) - a Y-AXIS one inside an X-AXIS one, or vice-versa.
see:
http://java.sun.com/j2se/1.3/docs/api/index.html
You can also add padding (eg "add(Box.createHorizontalStrut(5));") and can add "glue" - add(Box.createVerticalGlue()); (which is a complete misnomer - it doesn't stick things together - it acts more like a compressed spring, and forces them apart)
Have fun!

Similar Messages

  • Problem related to PS CS6 ext. on Mac.  Nikon DSLR D610 raw file can not be opened

    Problem related to PS CS6 ext. on Mac. Installation is OK but I can't open picture from my Nikon D610 (Raw NEF format). I get a message "can not open this format ...". Checking Help menu to see if I miss an update the message I get is that I'm up-to-date but at the end Nikon D610 (format supported of course) files can not be opened . JPEG are OK but I work with raw files. Thanks

    What OS are you running: 10.x.x?
    What version of the Camera Raw plug-in do you have?  Do (About) Plug-ins / Camera Raw to find out.
    You need at least ACR 8.3 to open D610 files.  If the Help / Updates process does not work, then there is a manual install process you can do.  The page with the download is for when people accidentally updated to ACR 8.4 and need to roll back to ACR 8.3 due to their OS being incompatible, but the installer on that page works even if you haven’t erroneously updated to ACR 8.4:
    http://helpx.adobe.com/x-productkb/multi/camera-raw-84-support-policy.html

  • HT4623 Is this the most up to date article on up dating the iPhone - it there anything about the problems relating to the up date to OS 6 - my G3 no longer works and Apple seems to have gone to ground.  No Genius bar appointments available for a week!

    Is this the most up to date article on up-dating the iPhone OS - is there anything about the problems relating to the up-date to OS 6 - my G3 no longer works and Apple seems to have gone to ground.  No Genius bar appointments available for a week!

    iOS 7 devices need iTunes 11.1 or newer to sync.  Depending upon your computer and the OS it is running, you may not be able to upgrade to iTunes 11.1 based on the requirements for iTunes 11.1.  What computer and OS are you running your iTunes on?  From the iTunes download pages I see the requiorements are:
    Macintosh System Requirements
    Mac computer with an Intel Core processor
    OS X version 10.6.8 or later
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store
    Windows System Requirements
    PC with a 1GHz Intel or AMD processor and 512MB of RAM
    Windows XP Service Pack 2 or later, 32-bit editions of Windows Vista, Windows 7, or Windows 8
    64-bit editions of Windows Vista, Windows 7, or Windows 8 require the iTunes 64-bit installer
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store

  • The problem related to wireless service Wi-Fi connectivity Never work properly

    Hi
    i am bashair from KSA
    I have iPhone 5, you update your iPhone to version 6.1.3
    The problem related to wireless service Wi-Fi connectivity
    Never work properly, you try Method posed but did not succeed..
    i need help me please
    thanks..

    UPDATE
    Hey this is totally weird. I haven't done jailbreak at all and I won't But how is possible that default apps such as Safari and Appstore have the problem I've mentioned before and Skyfire works perfectly without any trouble.
    So to sum up:
    Safari: loading stucks after few seconds on wi-fi, mostly doesn't load pictures
    Appstore: loading stucks after few seconds on wifi and it keeps saying "loading"
    Facebook and Youtube: doesn't load pictures
    SKYFIRE: loads everything without any trouble
    and completely everything works on Edge...
    So tell me W.T.F. :-D

  • Problem related to variable substitution

    Dear all ,
    I have a query related to variable substitution :
    The requirement is that filename should be in the following format : <b>%<store_code>%_%<Date>%</b>_master.xml .
    I have done the configuration for Store_code in the variable substitution from Payload .
    But I am facing <b>problem related to Date as the requirement is that we should not take the date from the payload</b> . We used "ADDtimestamp" in the file mode creation but it is generating file with time stamp also which doesn;t serve the purpose .
    Can somebody suggest <b>how to take the current date without taking it from payload .</b> <b>Does anyone know something about standard current date which I can assign directly to Var2 .</b>
    Thanks in advance
    Regards
    Prabhat

    Hi,
    In your mapping, have a user defined function which has a bit of Java to get the current date and time and pass back out to a variable.
    Here is a code snippet I got in Google to do this :
    import java.text.*;
    import java.util.*;
    public class Dtest {
    public static void main(String args[]) {
       SimpleDateFormat df = (SimpleDateFormat)
         DateFormat.getDateInstance(DateFormat.SHORT);
       System.out.println("The short date format is  " + df.toPattern());
       Locale loc = Locale.ITALY;
       df = (SimpleDateFormat)
         DateFormat.getDateInstance(DateFormat.SHORT, loc);
       System.out.println("The short date format is  " + df.toPattern());
    Cheers
    Colin.

  • I am having a problem relating camera roll album bugs

    i am having a problem relating camera roll album bugs

    Can you trell us more about it?
    If the camera roll is covered partly by your screen, close the photo app, open the multitask bar, tap on the photo app icon unitl it starts to shake, then hit the little minus icon to close the app completely.
    Return to your home screen and start the photo app again, you should be able to select the camera roll again.
    You can also reset the phone to get it working again.

  • Hello I have a problem related to synchronization. When you synchronize ipad Section 3 "Other" takes as much memory up to 8 gigobayt. How to make the section "Other" did not increase? Thank you.

    Hello
    I have a problem related to synchronization.
    When you synchronize ipad Section 3 "Other" takes as much memory up to 8 gigobayt.
    How to make the section "Other" did not increase?
    Thank you.

    DOCUMENTS AND DATA IS ALSO WHERE YOUR MAIL INFORMATION IS STORED SO IF YOU ARE A "HOARDER" IN EMAIL, GO INTO THE GMAIL, HOTMAIL, ICLOUD ETC WHATEVER YOU USE, AND DELETE YOUR TRASH, SENT, DRAFTS, ETC.
    THAT SHOULD HELP A LOT.

  • Problem Related To HOT Spot in ABAP Programming?

    Hi All,
    I developed a program of purchase register now i want that on clicking the PO it will take the user to the conserned PO for that i used HOt Spot but still it is not taking me to the conserned PO. Plz tell me what do i do to fullfill my purpose.

    hi, Abhinav
    i think that the following Code will help you in this way.
    REPORT  zfsl_hot_cust_docn.
    TABLES: zsd_credit_bal, tvm4t, t023t, kna1.
    TYPES : BEGIN OF t_sd_credit_bal,                 " To define Internal Table for holding following Data
              benid LIKE zsd_credit_bal-benid,        " Customer ID
              botcp LIKE zsd_credit_bal-botcp,        " Pack
              audat LIKE zsd_credit_bal-audat,        " Date
              vehno LIKE zsd_credit_bal-vehno,        " Vehicle Number
              vbeln LIKE zsd_credit_bal-vbeln,        " Document Number
              movmt LIKE zsd_credit_bal-movmt,        " Movement type
              quantity LIKE zsd_credit_bal-quantity,  " Quantity
            END OF t_sd_credit_bal.
    SELECT-OPTIONS:  soaudat FOR zsd_credit_bal-audat NO-EXTENSION OBLIGATORY DEFAULT '20071121'.
    DATA :  sd_credit_bal1 TYPE STANDARD TABLE OF t_sd_credit_bal WITH HEADER LINE,
            sd_credit_bal2 TYPE STANDARD TABLE OF t_sd_credit_bal WITH HEADER LINE.
    START-OF-SELECTION.
      DATA: vbenid(10), vbotcp(3), lineno TYPE i   ."LIKE LINE OF sd_credit_bal1.
      PERFORM main.
    *&      Form  MAIN
    *       text
    FORM main.
      SELECT benid botcp audat vehno vbeln movmt quantity INTO CORRESPONDING FIELDS OF TABLE sd_credit_bal1
        FROM  zsd_credit_bal
        WHERE audat IN soaudat.
      WRITE: 'Main Menu'.
      WRITE: / 'Select Entry to see its details.'.
      LOOP AT sd_credit_bal1.
        WRITE: /1 sd_credit_bal1-benid HOTSPOT ON, sd_credit_bal1-botcp HOTSPOT ON.
        vbenid = sd_credit_bal1-benid.  vbotcp = sd_credit_bal1-botcp.
        HIDE: vbenid, vbotcp.
      ENDLOOP.
    ENDFORM.                    "main
    AT LINE-SELECTION.
      WINDOW STARTING AT 25 3 ENDING AT 103 25.
      WRITE: 1(78) sy-uline,
             /1 '|',
             3(10) 'Date' CENTERED,
             14(1)'|',
             16(35) 'Vehicle Number' CENTERED,
             52(1)'|',
             54(10) 'Pack' CENTERED,
             65(1) '|',
             67(10) 'Movm Type',
             78(1) '|',
             /1 '|',
             1(78) sy-uline.
      LOOP AT sd_credit_bal1 WHERE benid = vbenid AND botcp = vbotcp.
        WRITE: /1'|',
               3(10) sd_credit_bal1-audat,
               14(1) '|',
               16(35) sd_credit_bal1-benid,
               52(1) '|',
               54(10) sd_credit_bal1-botcp,
               65(1) '|',
               67(10) sd_credit_bal1-movmt,
               78(1) '|',
               /1'|',
               1(78) sy-uline.
      ENDLOOP.
    Replay if any Problem related to this Code.
    Kind Regards,
    Faisal

  • How can i solve the problem relate with gmail links opening in firefox ? New link start in new tab and disconnects.Also youtube streaming breaks everytime .

    Firefox disconnects by clicking link in my gmail and most of time i refreshes the page few clicks. And also some problem relate with playing youtube videos. I frankly notice that i connect my net using PC Suite and also system protected with Anti virus program. So kindly check my browser and restore it's missing without using factory reset. Notify me for any urgent update of yours 16th version. Thanking for yours brilliant support .
    Jaison James.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Sir you have replied for my question, and i updated my software and all those things, yet it is showing unable to connect network, but i can use internet by sim, is it the problem related with hardware? can you tell me a solution for it?

    sir you have replied for my question, and i updated my software and all those things, yet it is showing unable to connect network, but i can use internet by sim, is it the problem related with hardware? can you tell me a solution for it?

    you seem to be referring to an ongoing issue
    click here to respsond -> sir help me to enable my network connection, my iphone 4s is not connecting with any wireless connection, what i should do for enabling network connection?
    CCC

  • Hi guys i have a problem related updating icloud desktop.while updating it shows (error code :A12E5).I have macbook air mid 2011..plz sort this out

    hi guys i have a problem related updating icloud desktop.while updating it shows (error code :A12E5).I have macbook air mid 2011..plz sort this out

    olliemilne wrote:
    - I've tried holding a bunch of different keys when starting up (cmd+R etc.) but again, nothing.
    You could try booting the MBP using the OPTION+COMMAND+R keys and see if it will connect to the Apple servers.  This would allow you to install the original OSX .  I have my doubts though.
    - I've tried something crazy suggested in another thread; leaving the Macbook partially opening and shaking it, which supposedly does something to the "sudden motion sensor".
    The Sudden Motion Sensor is applicable for conventional Hard Drives, not the SSD that is in a MBA.  Doing that will serve no useful purpose.
    You have exhausted all reasonable options and will just have to have the MBA evaluated at the genius bar.
    Ciao.

  • I have iphone 3gs and it keeps shut dowm by itself every two minutes idunno if this problem related to the battery life or what? please help me solve this problem

    i have iphone 3gs and it keeps shut dowm by itself every two minutes idunno if this problem related to the battery life or what? please help me solve this problem

    See Here for Device continually restarts...
    http://support.apple.com/kb/HT1808

  • Safari just shuts down suddenly due to some problems related to plug-ins.

    Hi
    I have an mac osx 10.5.8
    I use safari version 4.02.
    Sometimes (very often actually) it just shuts down suddenly due to some problems related to plug-ins and gives error and I relaunch . Do you have any idea why it is happening?
    can some help me?
    best
    didem

    i really do not know what causes it and how i can remove it actually!
    In the help menu there is something about plug-ins but i have really no clue what it it supposed to mean
    so can you elaborate what to do ?
    thanks
    didem

  • HP 25 Calculator - Hard problem related to memory

    Hi All,
    I have an old HP 25 calculator, and I tried to revive it after 20 years have stopped.
    There is a problem related to memory malfunction that is, the store functions and programe functions don´t work.
    Can any one of you help me?
    I would like to know if there is available some electrical scheme to understand and analyse what probrably is happening and also if there is some workshop here in São Paulo - Brazil, that could fix these old calculator.
    I live in Brazil, in São Paulo city.
    Thanks in advance.

    Hi,
    I think you will find the HP Calculator Museum forums a good place to ask:
    http://www.hpmuseum.org/forum/
    (ask your question in the General Forum).
    I am sure there someone will give you some guidance.
    Best regards.
    Note: I do not work for HP, I just like playing with calculators :-)

  • What are the problems related when if i bought the iphone 4s or 5 unactivated ????

    what are the problems related when if i bought the iphone 4s or 5 unactivated ????

    Please restate your question with more detail. As posted, there is insufficient
    information for a response. What exactly is your technical question?

Maybe you are looking for

  • Format of birthday calendar

    I was wondering if there is a way to reformat the style in which birthdays are shown in the weekly and monthly view of iCal. Right now the entry looks something like "xx. Geburtstag von Person X" (xx-th birthday of Person X) and due to the width of t

  • Unexpected Transaction Behavior

    Its been a while since I've had the pleasure of doing serious work in Java, but I'm seeing something odd, and not sure how to work around it. I'm using: Oracle 10 Express Websphere Community Ed Oracle 10 thin drivers I've got a routine inserting into

  • Macbook Pro 13' early 2011 SCM/battery problem on Mavericks

    After updating to Mac OS X Mavericks I started getting problems with battery/charging of my laptop. Mostly when I touch my laptop after inactivity it just crashes, i see black screen and when I push power button it restarts. What's more, after black

  • Web URLS & Documents

    I'm having 2 problems. 1. I want to create a hyperlink so visitors to my iWeb created website can download a .pdf document. But I can't figure out how to create,or even find, a URL at .mac (MobileMe) to direct it and automatically download or even op

  • Photoshop Elements 13 - Mouse wheel won't zoon.

    Have Photoshop Elements on trial basis.  Find that the mouse wheel does not work to zoom in or out when looking at an image.  My prior version of PE did.  Can't find where to set this so mouse wheel works as zoom.  I did find the slide bar to zoom in