Too big panel on a scrollpane

hello!
i create a panel with several small panels on it, so it is too big to display in my window. therefore i want to have it a scrollpane. this way:
JPanel jp = new JPanel();
        jp.setLayout(new BoxLayout(jp,BoxLayout.Y_AXIS));
        for(int p=1;p<12;p++){
         posten rlist1 = new posten(p); // "posten" is a small panel
         jp.add(rlist1);
        JScrollPane sp =new JScrollPane();
        sp.setViewportView(jp);
        jPanel10.add(sp);jpanel10 has the scrolls on it, to scroll jp.. but the panel jp which is too big, laps over at top and bottom.
hard to explain perhaps, here is a picture:
http://www.cds-server.de/pub/jpanel.jpg
what can i do to make it hide the too big parts?

ok, it took me the hole day to find out that to reproduce this behavior it is necessary
to have the underlaying panel with "free design",
the next panel is with boxlayout . and there is the mess.
therefore the code is not very short, more long, sorry for that,
but it is the shortest way to show my problem:
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
public class qqqq extends javax.swing.JFrame {
    public qqqq() {
        initComponents();
        JPanel jp = new JPanel();
        jp.setLayout(new BoxLayout(jp,BoxLayout.Y_AXIS));
        for(int p=1;p<12;p++){
         posten rlist1 = new posten(p);
         jp.add(rlist1);
        jp.validate();
        JScrollPane sp =new JScrollPane(jp);
        jPanel2.add(sp);
    private void initComponents() {                         
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS));
        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 466, Short.MAX_VALUE)
                .addContainerGap())
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 74, Short.MAX_VALUE)
                .addContainerGap())
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(68, 68, 68)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(75, Short.MAX_VALUE))
        pack();
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new qqqq().setVisible(true);
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
//******inner class with panel****//////////
class posten extends java.awt.Panel {
    public posten(Integer p) {
        initComponents();
        jLabel1.setText(p.toString());
    private void initComponents() {                         
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jTextField2 = new javax.swing.JTextField();
        setLayout(new java.awt.BorderLayout());
        jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.LINE_AXIS));
        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setMaximumSize(new java.awt.Dimension(32767, 8));
        jLabel1.setText("Posten");
        jPanel1.add(jLabel1);
        jPanel1.add(jTextField1);
        jPanel1.add(jTextField2);
        add(jPanel1, java.awt.BorderLayout.CENTER);
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;  
}

Similar Messages

  • Print window frame too big

    Now that I'm running Firefox 4.0.1 (on a Vista 64-bit PC), often when I want to print a web page, the frame around the Windows Print box is too big to fit the screen. The buttons that are critical for controlling print functions, and in particular the print command button itself, lie below the Taskbar, out of sight and unreachable in spite of all attempts to reposition the window using the mouse.
    I've checked my screen resolution and it's right for my monitor, unchanged since previous versions of Firefox.
    I know I can print by hitting Enter on the keyboard, but it's always taking a chance because, unable to see any buttons, I can't confirm that the settings are as I want them to be.
    Is there a solution?

    I am trying to resolve a similar problem on a Toshiba laptop running Vista. Dialog boxes are being displayed that fill the entire screen truncating the OK, Cancel and Apply buttons that should appear at the bottom of the dialog box. This is happening on all contol panel and games settings dialog boxes. I have tried the Toshiba zoom settings (FN+Space), but this has not foxes the problem.

  • NB305 first time setup display too big for screen

    I just bought an NB305-310 netbook  (two, actually, and the first one had no trouble). It came loaded with Windows XP.  When I turned it on I wasn't able to set it up right away, when I came back to it, I found the display of the welcome screens and the setup process assistant is too big for the screen, as if it thinks it has to fill a 15" or 17" screen instead of 10".  So I can't see to click on the "I agree" box or the "Next" button etc., so can't proceed through the setup.
    I already tried restarting it a couple times (by holding down the power key, since Control-Alt-Delete didn't do anything).  I also tried using the function key with various keys that looked like they might affect display size but no change.  Even the volume function keys didn't change the volume of the setup background music that plays.
    How can I fix this?
    Thank you!
    RD

    mini notebook NB305-N310 
    Try this. Press Alt + Spacebar to open the control menu (which may be off the screen) at the top-left of a window.
    Then press M (for Move).
    That will enable you to move the window using the arrow keys.
    When you get the chance, you'll want to go here and reset the screen resolution to 1024 x 600.
       Control Panel > Display > Settings tab > Screen resolution slider
    -Jerry

  • Mail box font is TOO BIG (maverick OSX)

    hi:
    i sadly just upgraded to the new osX. all sorts of problems and as usual no simple chat to ask direct questions.
    even though i got it from app store.  no chat options are showing... for me. apparently they are suppose to.
    so maybe someone in the community can help me.
    the FONT on the mailbox panel + the message listing panel, are TOO BIG. and no matter what i do in the properties under font, it has no impact.
    the properities/font appears only to impact the email message itself.
    I need to change the FONT back to what it was before i upgraded to maverick OSX from snow leopard. its way too big.
    since upgrading to maverick OSX, the font in my browswer (firefox) is still OK. nothing apears to have changed.
    but in the apple mail app - A MESS.
    any clues?

    hi bee, thankyou for your trying to help, but unfortunately you missed a key word in my question. I am asking "mailbox" pane.
    your answer is for the 3rd pane, the email message itself. i have no issue with that. properties has not changed in teh upgrade to maverick OS.
    the 2nd pane (message listing) and 1st pane (listing of mailbox) HAS CHANGED in upgrade to maverick OSX.
    what i learnt from apple support is:
    pane 2: listing of what is in mailbox. -- was possible to change font in classic style. can continue to do this in maverick osx ONLY if you choose the option retain "classic style" under properties/view. else changing the setting in your screenshot has NO IMPACT in the new user interface.  so that in my book is bad coding. defect.
    pane 1: listing of mailbox -- not possible.  and got uglier in maverick OS as now the font is even bigger. plain ugly and needs to be retified. i have about 10 mailboxes so all my screenspace is gone with just the mailboxes and requires scrolling to folders. boring....

  • Yahoo page is too big for monitor screen. How doI reduce size of yahoo page?

    When I open firefox the yahoo home page is too big for the size of the monitor.

    Hi,
    Try resetting the zoom by pressing '''Ctrl''' + '''0''' (zero) on the keyboard. Please [https://support.mozilla.com/en-US/kb/how-do-i-use-zoom?s=zoom+feature&r=0&as=s see this.]
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://addons.mozilla.org/en-US/firefox/addon/whats-that-preference/ What's That Preference? add-on] - Quickly decode about:config entries - After installation, go inside about:config, right-click any preference, enable (tick) MozillaZine Results to Panel and again right-click a pref and choose MozillaZine Reference to begin with.
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions/Add-ons]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]

  • Print dialog box too big

    Adobe Reader 8.1.2; Windows XP; screen resolution 800 by 600 pixels.
    Normally, whenever I print a PDF, I click on the printer icon on the toolbar or go to File > Print. The Print dialog appears, and I click on the OK button at the bottom of the box.
    Recently, for some unknown reason, the Print dialog appears too big on my screen, and I cannot see the OK button at the bottom of the box.
    However, when I change the screen resolution to 1024 by 768 pixels, I can see the OK (to print button), but all other text, icons, etc., are too small to read.
    Ultimately, I need to see the OK (to print button)and the text, icons, etc., need to be sized larger, to the 800 by 600 pixels resolution.
    TIA,
    Jerry D.

    I am trying to resolve a similar problem on a Toshiba laptop running Vista. Dialog boxes are being displayed that fill the entire screen truncating the OK, Cancel and Apply buttons that should appear at the bottom of the dialog box. This is happening on all contol panel and games settings dialog boxes. I have tried the Toshiba zoom settings (FN+Space), but this has not foxes the problem.

  • Encore CS6 - File Too Big For Disk

    My Computer Stats:  Imac 3.4Ghz,Core i7, 8GB Ram, About 2 years old.
    My Project:  Standard Definition, 16x9 Aspect Ratio, About 4 hours of raw footage captured from dv tapes to external usb drive dock with a 500 GB drive in it, footage edited down in Premeire Pro CS6 to 1:55:00 and used Dynamic Link to bring the project into Encore to make a standard definition DVD. Rendering the ISO file to the desktop of the iMac.
    I have done this process many times with projects of similar length.  Each prior time I was able to make a DVD.  I have tried many of the DVD Presets.  The lowest quality preset estimates the file size at 3.4 gig.  But the resulting file is 5.43 gig.  I have adjusted many of the Project Settings and Quality Setting, even setting the quality to its lowest setting.  The resulting ISO file will not get any smaller than 4.92 gigs. Too big to fit a 4.7 gig blank disk.
    I have tied this process on the iMac listed above and on a Mac Mini.  Prior to this project I had not had any issues making DVD's on either machine. The only thing that is different and common to both machines is that I had installed Premeire Pro CC recently on both to test it out.  However this project was captured in PP CS6 and edited in PP CS6. 
    My client wants the DVD's he has paid for.  My deadline has passed.  Any assistance would be greatly appreciated.

    The first preset has been selected.
    Okay; but that is why I want to see the project panel. You can "select" a preset in the edit panel, but not "select" it as the actual transcode setting.
    The Transcode Settings panel, not the Edit Quality Presets panel, is where you actually set the preset to be used.

  • Web pages appear too big

    web pages are way too big and i can't fix this. PLEASE HELP ME!!!

    Hi, exactly what is too big and in comparison to what else. Please remember we can not see what you are seeing.
    * are you looking at webpages that are mainly text, is the text to big or too small or ok and you can read it ?
    * does [http://support.mozilla.com/en-US/home/?as=u this] firefox support page display ok ?
    * is text size normal, and does it all fit on the width of the screen without you needing to scroll ?
    * do you know what screen resolution you are using ?
    Some things you could try:
    * ZOOM use control key and the plus or minus key, or use View-> Zoom note that also includes a 'text only' option
    * Full Screen View: key F11 or View -> Full screen will hide some of the bars so you see more of the webpage (press F11 again to return to normal)
    There are options for setting minimum text sizes, and also addons to change all sorts of things, sometimes with special scripts, but lets just try the simple things first.
    Note in Windows XP your screen resolution may be reset to different valuses using
    * Start -> Control Panel -> Display -> screen resolution
    Note that has a slider and towards the "more" end will give more pixels, that usually results in more text or words being displayed on a screen or webpage, but each word being smaller.

  • PC - TV [Video too big for TV Screen.]

    Hi,
    I'm running Windows XP with an FX 5200 128 Video Card. I have an S-Video plug that turns in to a Yellow RCA wire and plugs in to my TV. I have my display properties set to "Clone".
    When I play a video using Windows Media Player, I can see it on my Computer Screen as well as my TV.
    However, the picture on my TV seems to be slightly cropped. It looks like I am missing the TOP and SIDE portions of the Video. The video fills the entire TV screen, but it looks like the picture is too big for the TV and I'm not seeing the edges.....
    Any suggestions,
    Thanks,
    Andrew.....

    make sure you're using the correct display drivers from nVidia Drivers
    then in the driver control panel for your TV settings, use the zoom controls to adjust how the picture looks on your TV

  • I need to downsize phots to publish on a website but they are too big . In help it says when I select a photo it gives me the option to downsize. It does NOT. ?

    I can't figure out how to downsize my photos for a website that won't take anything above 3MB my Photos are 4MB. Even when I send them in an email, they are too big to send more than 3 at a time and I don't know how to fix it! Help says that when I select a photo it gives me the option to downsize. It does NOT?????

    This is the iPhoto for iOS forum. Are you asking about iPhoto on your Mac?
    In iPhoto on your Mac select Export and you will have the option to select a size for your photo.
    In iPhoto for iOS this capability is not there. I use PhotoForege2 on my iPad to resize my photos to meet the requirements you describe.

  • Saving animated gif error - canvas size too big?

    Hi,
    i have been asked to create an animated gif which has a snow effect in the background. The animation runs pretty well using the pattern style to move the animated snow down. The problem is when I try to export the animation the save for web dialogue window freezes and I can't quit photoshop. I have tried to make the canvas (image size) smaller and it works.
    Is there a memory problem with creating animations in Photoshop if the document size is too big, im running a 3000x1000px at 72dpi
    TThe animation would be used on a web app, which a script could probably do a better job, but I need to try this first.
    thanks
    lister

    Something is very wrong here. The point behind using GIFs is that they are small and OK to put on a Web site.
    First thing: forget all about PPI - this has absolutely no relevance to Web/screen images; it is only used for printing. You need to think about the pixel size.
    So, how big in pixels are your starting images?
    How big do you want the resulting GIF to be? Again, you have to decide in pixels, as the viewing size will depend upon screen resolution of the person looking at it. You can use a notional PPI of 70-100 to guess how big it will be in inches, but that's all it is - a guess.
    Is this getting you going in the right direction?
    I cannot resist commenting that I hate almost all animated GIFs as they reduce Web site usability so much.

  • When I open my iPad the page is too big for the screen and won't shrink down. The keypad has also become very 'sticky'

    Recently when I open any apps the pages are too big for the screen. They shrink when pinched but immediately become bigger again. It's very difficult to scroll too. The keypad has become very sticky. Missing letters and spaces when I type and needing to tap the keys much harder than usual

    I have the exact same problem, I think.  I was on my iPad 3's home page swiping R-L to locate a certain icon when all of a sudden the screen appeared to get HUGE.  So big I could only see one or two icons.  I couldn't even turn it off to try a reboot because after I pushed the sleep/wake button, I couldn't find the red slide bar.  I finally just had to wait for the battery to die, then recharge it, and it looked normal again.  I also spoke with several friends who haven either iPads or iPhones, and they've all had this happen to them.  I checked my accessibility settings, and Zoom was already off.  So what is causing this problem for so many people, and what can we do to prevent it?  Please help.

  • Hi! I need help, today I connected my mac Book Air to a tv for a presentation and as soon as I conected it the image on my screen went bigger. And I cant find the way to put it back as it was before. The Images are too big! heelp

    Hi! I need help, today I connected my mac Book Air to a tv for a presentation and as soon as I conected it the image on my screen went bigger. And I cant find the way to put it back as it was before. The Images are too big! heelp

    Morning DeeHutton,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Best of luck,
    Mario

  • My homescreen won't resize and I can't access anything because everything is too big to navigate.  Help.

    My homescreen won't resize and I can't access anything because everything is too big to navigate.  Help.

    Double-tap the screen with three fingers to disable Zoom.
    To turn off Zoom go to Settings > General > Accessibility > Zoom and turn this Off.

  • When doing a second "Organize Library" cuz the first was too big, will iTunes recognize what's already copied over?

    I'm stuck with a large folder of music on my PC in My Music folder. And I used "Organize Library" in iTunes but it didn't copy everything over because the amount of music was too big. I've deleted the original copies of music outside of iTunes to open up more space and was wondering if I do a second "Organize Library" if it will recognize that some of the music has already been copied over.

    I don't know what "restore the iPod" is
    It's usually the second thing to do (after Reset) when the iPod is not working correctly.
    Select the iPod in iTunes and click Restore.
    See this -> Restoring iPod to factory settings
    what about my main question? Can I go back to "sync all" but manually block certain albums?
    No because sync all is just that.
    Sycning specific playlists should work fine. And you can create more than one and sync which ones you want.

Maybe you are looking for