JScrollpanel Top align problem

Hi,ALL
I have a JPanel holds two Objects(JTree and JList);
So
The main JPanel is created with FlowLayout.LEFT
I create two JScrollPanel to hold JTree and JList,
since JTree is long and JList is short.
so everytime JList is in the middle of the JScrollPanel.
I want to align them from top, how to add a Viewport to JScrollPanel from TOP-align, not automatically CENTER-align?
Thanks in avanced

At the risk of sounding like the Office Paperclip... it looks like you're writing an explorer.
If so, use a JSplitPane. Set the left component to a JScrollPane containing a JTree and the right component to a JScrollPane containing a JList.

Similar Messages

  • Text in table alignment problems

    I run into this problem, then fuss around with it forever and
    somehow finally fix it...but this time I can't seem to get it.
    Could someone tell me what is probably something really easy about
    why this darn table is spreading out? I do need it to be 100% high,
    it needs to to to bottom of whatever size page which changes
    depending on content...but why is the text inside the table
    spreading out that way? I think I've got it all left/top
    aligned...?
    Also it only spreads out in FF but in Safari is fine.
    Thanks so much in advance...it's driving me nuts!

    I got it solved...never mind. Thanks :-)

  • Keynote 9 and objects alignment problems

    Why keynote does not align object using the first one selected as stated in the user guide?
    It will rather use the highest one for top, the lowest one for bottom and a ponderate value for all objects for middle.
    Same problem for left center right.
    If I do align top with an order like (1 being the 1st selected, 2 the 2nd and 3 the 3rd).
         2                                             1     2          3
    1                       I end up with                              Rather than 1     2          3
                   3
    If I do align top with
         3                                             2     3          1
    2                      I end up with                               Rather than
                   1                                                                                      2     3          1
    Can this be changed somewhere?
    This is just not logical at all. The first object should be the reference for the alignment.
    There also is a problem with distribution, it uses the farthest left and the farthest right in Horizontal distribution rather
    than first and last selected.
    This is against the documentation.
    Cheers.
    Joffrey.

    Hello.
    Thanks for your reply. Indeed, these alignment guides are a powerful and great tool that I use all the time.
    Nevertheless when it comes to aligning a big amount of shapes, I can't be bothered doing it one by one.
    In the manual of Keynote 09' it is written page 89 and 90:
    Quickly Aligning Objects Relative to One Another
    You can use menu commands to quickly move objects on the same slide in alignment or space them equally apart. First, you must select all the objects you want to align (hold down the Shift or Command key as you click each object to select it).
    To align selected objects:
    m    To align the objects with each other, choose Arrange > Align Objects and then choose one of the alignment options in the submenu.
    Left:  Positions objects so that their left edges align vertically to the first object you select.
    Center:  Positions objects so that their centers align vertically to the first object you select.
    Right:  Positions objects so that their right edges align vertically to the first object you select.
    Top:  Positions objects so that their top edges align horizontally to the first object you select.
    Middle:  Moves objects vertically so that their centers align horizontally to the first object you select.
    Bottom:  Positions objects so that their bottom edges align horizontally to the first object you select.
    There is a discrepency between the manual and what Keynote actually does.
    I know there are lots of way to circumvent this alignment problem, I would just want to know if there is a place, in a config file, may be where this can be switch from topper to first one for example in case of an align top.
    Any other tools such as Omnigrafle, Axure, Visio, Adobe suites, you name it, do it using the first selected object. I whish Keynote would act as expected.

  • Alignment problem in converting smartform printpreview into PDF

    Hi all,
    I am getting some alignment problem in converting smartform printpreview into PDF format, i.e the format of PDF is different from printpreviw of smartform.
    kindly suggest something so that alignment is not changed while converting to PDF.
    Regards,
    Sumalatha

    use below f.m to convert it into 255 characters....
         CALL FUNCTION 'QCE1_CONVERT'
            TABLES
              t_source_tab         = i_tline
              t_target_tab         = so_ali[]
            EXCEPTIONS
              convert_not_possible = 1
              OTHERS               = 2.

  • Alignment problem on abap report after Unicode conversion

    Hi,
    I've recently convert my system to unicode. Now my user is complaining the aged debtor report (ABAP) is having a column alignment problem when displaying the Japanese character.
    I'm not sure what to do now. Have anyone experience this and let me know how can I sove the problem?
    /Eida

    Hi,
    you need to regenerate the data
    For this regeneration, you start the program RKETREGP with the parameter
    application class 'KK', subclass '01' and table name 'KKROBJ'.
    br, Guido

  • Table alignment problem

    I am building a table for a checklist for potential
    bankruptcy clients for a law firm. The table has two columns.
    Column one contains a small gif, a black-bordered white check box.
    The second column contains a list of information and documents the
    prospective filer should have available.
    I set up a CSS rule, "check-box," for the cells containing
    the gifs, with 5 pixels of top padding. I set up the information
    cells with a CSS rule, "table-text," with a top alignment in the
    box section. In IE6, I get the appearance I'm after, to wit: the
    top of check box and information text are both top aligned, but in
    FF, the text appears to be center aligning. How can I fix this to
    get the same appearance in both browsers?
    Keep in mind that I am new to DWCS3 coming from GLCS2 and my
    CSS knowledge level is barely basic at the very best.
    http://www.jdcdemo.com/blf/the-baim-law-firm-bankruptcy-information-checklist.html
    TIA,
    Joe

    camelbreath wrote:
    > I am building a table for a checklist for potential
    bankruptcy clients for a
    > law firm. The table has two columns. Column one contains
    a small gif, a
    > black-bordered white check box. The second column
    contains a list of
    > information and documents the prospective filer should
    have available.
    > I set up a CSS rule, "check-box," for the cells
    containing the gifs, with 5
    > pixels of top padding. I set up the information cells
    with a CSS rule,
    > "table-text," with a top alignment in the box section.
    In IE6, I get the
    > appearance I'm after, to wit: the top of check box and
    information text are
    > both top aligned, but in FF, the text appears to be
    center aligning. How can I
    > fix this to get the same appearance in both browsers?
    > Keep in mind that I am new to DWCS3 coming from GLCS2
    and my CSS knowledge
    > level is barely basic at the very best.
    >
    >
    http://www.jdcdemo.com/blf/the-baim-law-firm-bankruptcy-information-checklist.ht
    > ml
    Hi,
    Try this for your css....
    .check-box {
    padding: 0px 5px 5px;
    margin: 0px;
    .table-txt {
    font-family: Georgia,"Times New Roman",Times,serif;
    font-size: 13px;
    padding-left: 5px;
    margin: 0px;
    padding-top: 0px;
    and this fior your markup.....
    <td><img src="images/check-box.gif" alt="checkbox"
    width="18"
    height="18" class="check-box" /></td>
    <td class="table-txt" width="453"><p>A list of
    your living expenses
    including house, car and other notes, utilities, rent,
    garbage pickup,
    insurance, </p></td>
    HTH
    chin chin
    Sinclair

  • Top aligning HtmlDataTable components in a HtmlPanelGrid

    I need a recommended solution for this scenario.
    I have three h:dataTable components in a h:panelGrid as follows:
    <h:panelGrid columns="3">
                    <h:dataTable value="#{fooBean1.myList}" var="list">
                               <h:outputText value="list.bar"/>
                    </h:dataTable>
                    <h:dataTable value="#{fooBean2.myList}" var="list">
                              <h:outputText value="list.bar"/>
                   </h:dataTable>
                   <h:dataTable value="#{fooBean3.myList}" var="list">
                              <h:outputText value="list.bar"/>
                   </h:dataTable>
    </h:panelGrid>There can obviously be different number of rows in each h:dataTable which means the height of each h:dataTable may be different than the others.
    How can I ensure that the three h:dataTable components are always vertically aligned to top?
    Note that the header for the graphic in the template.xhtml for each xhtml has valign style settings so a global setting like this will not work (i.e.
    it will top align the dataTables but the header graphic is now mis-aligned.):
    <head>
        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />
        <title>Repair Card</title>
        <style>
         html,body,table { height:100%; margin:auto;}
         table,td,tr,thead,tfoot,tbody,th,tf { vertical-align:top; padding-bottom: 10px; }
        .rich-panel {height: 100%;}
        .panel1 { width: 30%; text-align: center; font-size: 12px;}
        .panel2 { width: 30%; text-align: center; font-size: 12px;}
         .panel3 { width: 30%; text-align: center; font-size: 12px;}
    </style>   
    </head>Is it possible to specify the styles using the style or styleClass attribute for the h:panelGrid?

    This worked! thx.
    <head>                  
                       <style>
                       div.divTop TD {vertical-align:top;}                    
                        </style>   
                   </head>      
                   <div class="divTop">
                              <h:panelGrid columns="3" border="1" width="100%">
                                  <h:dataTable value="#{foo1}" var="name">
                                       <h:column>
                                            <h:outputText value="#{name}"/>
                                       </h:column>
                                  </h:dataTable>
                                  <h:dataTable value="#{foo2}" var="name">
                                       <h:column>
                                            <h:outputText value="#{name}"/>
                                       </h:column>
                                  </h:dataTable>
                                  <h:dataTable value="#{foo3}" var="name">
                                       <h:column>
                                            <h:outputText value="#{name}"/>
                                       </h:column>
                                  </h:dataTable>          
                             </h:panelGrid>
                   </div>Edited by: asookazian on Mar 6, 2009 2:28 PM

  • Having a image alignment problem using clearbox

    Hi,
    I'm having an image alignment problem. I cannot figure it out. I'm using the clearbox - lightbox dreamweaver widget. Using Dreamweaver CS6.
    Actual page located here. Any help would be appreciated.
    http://dirtysouthink.com/gallery/dustin2.html

    This has very little to do with Dreamweaver. DW is merely a tool to assist you in building a web site. It is purely a matter of styling (CSS).
    When I look at the structure, I see
    BODY-CONTENT (width: 490px)
         GALLERY (width: 452px)
              CONTAINER (width: 500px)
                   ITEM (width: 150px)
    From this I can deduce that:
    GALLERY will fit inside BODY-CONTENT
    CONTAINER will NOT fit inside GALLERY or BODY-CONTENT
    ITEM will fit three times into CONTAINER
    To start with, I would reduce the size of the CONTAINER so that it fits inside of its parent. Then I would adjust the width of the ITEM so that only two of them fit inside of the CONTAINER.

  • Same alignment problem! can ANYONE help??

    Hi guys i still need help with my alignment problem! My nav
    bar lokos good in the preview window of fireworks
    CLICK
    HERE TO VIEW THE NAV BAR IN FIREWORKS
    but when previewed in a browser or exported into dreamweaver,
    the navbar is all out of order
    CLICK
    HERE TO VIEW THE NAV BAR IN DREAMWEAVER
    Can anyone tell me what is going on?? i really need to launch
    the website ASAP.
    Thankyou!

    10totti wrote:
    > Hi guys i still need help with my alignment problem! My
    nav bar lokos good in
    > the preview window of fireworks
    >
    >
    http://img97.imageshack.us/my.php?image=nav1yp1.jpg
    I hate being harassed by ads and will not review images on
    the image
    shack site any longer. Post the screen shot or original file
    to your
    personal site.
    Linda Rathgeber [PVII] *Adobe Community Expert-Fireworks*
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    Design Aid Kits:
    http://www.webdevbiz.com/pwf/index.cfm

  • Table vertical alignment problem

    Hi,
    I wonder if someone can take a look at this page
    www.fitnessworld.ca/corplist.html and tell me what needs to be
    fixed to make the first column of words start at the top, aligned
    with the column next to it.
    If you have a solution, could you provide the right code in
    the right place?
    thanks
    Text

    The verticle alignment is set to "default". This means the
    text starts at the middle and works up and down. If there is more
    text in one colums than the other then this is the result. Set the
    verticle alignment to Top for both and you're set. You can do it in
    the properties inspecter.
    Andy

  • Banner Alignment Problem

    I am having an alignment issue with a website that I recently built using dreamweaver.
    http://bacs.myweb.uga.edu
    There is not an alignment problem on the front page (index.html), but subsequent pages (http://bacs.myweb.uga.edu/currentstudents.html) change the alignment of the banners below the tabs for each section.  Screen resolutions of 1280X800 do not have any alignment issues, but pretty much any other resolution changes the alignment.  Is there a solution to this problem?  Rather than posting all the code, you should be able to get it from the links above.  Thanks in advance.
    Frustrated in Athens,
    Aldo

    html
    <body>
    <div id="wrapper">
    </div>
    </body>
    css
    #wrapper {
    width: /*the width of your content */
    margin:0 auto; /*this will centre align it*/
    padding:0;

  • Paper Alignment problems!

    I have a HP F4280 all in one printer, just recently when doing any type of printing, everything is printed but comes off alignment, that is not straight on the page. How can I fix this paper alignment problem? I've had this printer for 2 years now and just recently the alignment is off, I haven't done anything different!

    The troubleshooting page here may help.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Spot healing brush alignment problem

    Using Photoshop CS4 (11.0) on a Mac with 10.5.6. Sometimes the spot healing brush works as expected. However, after working for a while, the alignment seems to be off--I hover the cursor over the spot I want to retouch, but when I click the mouse the area retouched is a bit (1/4" or so) below the spot healing brush cursor. If I quite and restart Pshop the problem goes away. This is with the spot healing brush--not the one where you need to select where to clone from. Is something wrong, or is there a new feature I don't know about that's causing this? I've used the spot healing brush quite a bit with CS3.
    If anyone has any thoughts, I'd appreciate hearing them. This is getting frustrating.

    I think you are talking about a different issue here. This problem is not specific to the spot healing brush.
    @ OP: The brush alignment problem is very real and I have it frequently when working with larger files (approximately >500MB in memory). I have two macs, a macbook (GMA X3100) and a mac pro (ATI Radeon HD 2600 XT). So two completely different hardware arrangements that have the exact same problem.This is clearly not a problem with graphics cards.
    Drawing with any tool like: brush (any brush - dodge/burn, blur, eraser etc.), lasso (any lasso), line, crop tool etc. will result in a misalignment of about 0,5 cm directly downward. However, clicking on menus and dialogue boxes works as expected. Switching off OpenGL features in PS WILL NOT PREVENT THE PROBLEM (if I shout, maybe Adobe will hear...). The same problem appears whether I'm using a Wacom tablet or a mouse. It even appears when the Wacom driver is uninstalled.
    So, if Adobe is not acknowledging the problem it's safe to assume it will be featured in CS5 as well.
    @ Jim: Sorry, I would have posted in the other thread but your link does not work anymore.

  • Top aligning html slices

    I want to top align an html slice (for google adwords) and a
    rectangle. I cannot get them to align at the top no matter how hard
    I try. The rsite was created in firewoks and imported to dw. It is
    driving me mad as the site is finished bar this one thing and has
    been for ages. If anyone has any suggestions they'll be greatly
    appreciated as it keeps vertically centering the rectangle as the
    html slice is bigger.:confused.
    The url is www.sandramccracken.co.uk - also, I have
    triedhighlighted both in fw, clicking on modify, align and top but
    it doesn't seem to do anything
    Please help...it's the new year, season of good will!

    Change this -
    <style type="text/css">td img {display:
    block;}</style>
    to this -
    <style type="text/css">
    td img {display: block;}
    body { margin-top:0; }
    </style>
    and see what happens.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "yorkiebrowne" <[email protected]> wrote in
    message
    news:en2qr7$3mi$[email protected]..
    >I want to top align an html slice (for google adwords)
    and a rectangle. I
    > cannot get them to align at the top no matter how hard I
    try. The rsite
    > was
    > created in firewoks and imported to dw. It is driving me
    mad as the site
    > is
    > finished bar this one thing and has been for ages. If
    anyone has any
    > suggestions they'll be greatly appreciated as it keeps
    vertically
    > centering the
    > rectangle as the html slice is bigger.:confused.
    >
    > The url is www.sandramccracken.co.uk - also, I have
    triedhighlighted both
    > in
    > fw, clicking on modify, align and top but it doesn't
    seem to do anything
    >
    > Please help...it's the new year, season of good will!
    >

  • Can I fix the alignment problems my Color LaserJet CP1518ni is having? The red does not line up.

    Can I fix the alignment problems my Color LaserJet CP1518ni is having?  The red does not line up.  I have installed the latest updates, etc.  Calibrating does not help.  The printer is only a few years old.  What gives?
    This question was solved.
    View Solution.

    Please be aware that this forum is a peer to peer support forum, it is not a direct link to HP support.
    I have a similar issue with a Laserjet cp1525nw, it was mostly corrected by removing and reseating the toner cartridges.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

Maybe you are looking for

  • New search result in new tab

    I had firefox set that each time I clicked on a web site listed in a Google search result, it would open in a new tab. Now for some reason it does not work and I can't find the setting.

  • Please allow us to use IOS 6 icons on IOS 7

    IIs it possible to have a choice to use icons from ios6 instead of ios7? The new IOS7 icons are big and poorly designsed meant for children.

  • Problems with Zen X-Fi & Windows Live Messen

    Has anyone else had problems getting online and accessing there windows li've messenger contacts. Ive set up the chat account on the website and input the correct info into my player but it just says that i aint added any friends even tho i've opened

  • Suggestions for new forum names

    iMac (PPC) - iMac (PPC including G5, pre-2006) iBook - iBook (pre-2006 notebook). Powerbook - Powerbook (pre-2006 notebook) MacBook - MacBook (consumer notebook) MacBook Pro - MacBook Pro (pro notebook) Mac Pro - Mac Pro (Intel CPU Desktop Tower) Pow

  • 9.2.0.8 rdbms 64-bit on redhat 4 65-bit

    Hi all, We are going to migrate to a Redhat 4 64-bit. I would like to install the 64-bit version of the 9.2.0.8 database on that. But I don't have the time to test this properly, so I was wondering or anyone has this setup running. And are there any