JFrame window grows larger than the screen

I write a simple Java program that reads HTML files and displays on JEditorPane. The JEditorPane has get that controls scrolling. The problem is when large text, the size of the window becomes large and no scroll bar is available even if the text is greater than the visible window. Sometimes, it works normally showing the content with the scroll bar to navigate. If I reduce the window and then blow it up, disappears from the bar scroll and part of the mask window down on the taskbar and screen. In this case otherwise which means once it is ok, if I minimize and optimize, there is no scroll bar, if I minimize and maximize again, then it's ok, etc.

What do you think is the cause? How can I solve this? Thanks in advance!

Delete:

treescroller.setPreferredSize(new Dimension(300, screenSize.height - 155));

And use a BorderLayout place a FlowLayout with toolbar in PAGE_START, Voletfractionne in the CENTER and the tray to the PAGE_END.

Published by: Walter Laan on July 4, 2012 11:43

Tags: Java

Similar Questions

  • Firefox window is larger than my screen

    All of a sudden the firefox window is larger than my screen. I have no window border. I have no title bar. I have no address bar. I have not everything that calls windows he start the button bar.

    I uninstalled and downloaded with IE and re-installed. Same same-o-o.

    Help. IE stinks. Save my firefox!

    Thank you
    John

    Make sure that you run not Firefox mode full screen (press F11 or Fn + F11 to toggle; Mac: Ctrl + Shift + F).
    If you are in full screen view then hover over with the mouse upward to make the bar appear Navigation and tab bar.
    You can click the maximize button in the upper right to leave the mode full screen or empty space of a right-click on a toolbar and use "exit full screen" or press F11.

    • Use Restore or expand in the context menu of the taskbar icon to set the focus to the Firefox application if you do not see the window of Firefox.
    • Open the system menu via Alt + space and see if you can move and resize the window.

    If it works then close Firefox (file > exit/Quit) to save the setting.

    See also:

    If the above didn't help then see:

  • The display is larger than the screen. Zoom-out a frew times it cut OK how should I make it smaller?

    Recently, the size of the screen has gotten bigger than the screen and I have to either drag left/right to read it or (better) use the zoom to reduce to fit. How I put it so that it always fits without my nothing? It used to be like that!

    It is possible that the screen is too wide or too high.

    • Use Restore or expand in the context menu of the taskbar icon to set the focus to the Firefox application if you do not see the window of Firefox.
    • Open the system menu of the window of Firefox via Alt + space and see if you can move and resize the window (use the arrows on the keyboard).

    If it works, then first close all other open windows of Firefox and then close Firefox via "file > exit/Quit" to save the setting.

    If the above didn't help then see:

  • Make the wallpaper slightly larger than the screen

    Hello

    I work with the simulator of the storm. I know that the screen size is fixed (obviously; "I think it's 320 x 480), but I want to make a slightly larger background image and allow scrolling horizontally and vertically.

    In other words, I want to be able to make a pan larger than the image of the screen; An image that has limits.

    I say, "which has limits," because I tried this, but the image is tiled, instead of being a single. A TI seems constantly to the left and down. Any help please.

    USE_ALL_HEIGHT and USE_ALL_WIDTH are a problem, as I predicted. Since you give your MyScreen VERTICAL_SCROLL and HORIZONTAL_SCROLL, it gives her children a height and a width of Integer.MAX_VALUE > 1. USE_ALL_HEIGHT and USE_ALL_WIDTH do all that great width and height.

    In order to make the screen exactly the size you want to substitute sublayout and take a look at net.rim.device.api.ui.Manager setVirtualExtent and setExtent methods. Some of the best examples of the override of this method are found in the code of

    Implement advanced buttons, fields and managers

    This code can be considered a bible of the BlackBerry user interface programming (Finally, at least for non touchscreen devices).

  • The Photoshop window is larger than my screen. Why?

    With 6 CS recently when I open an image in Photoshop it appears in the center of the window with the 0 reading on the sovereign inset from the top a bottom. The problem is that the window is running way below and the bottom of my screen and I can't access the horizontal slider to move the image that I increase its size.  I think having accidentally put the computer in a way that I don't want and can't use.  How can I get that back as it was with the horizonzontal accessible slider?   Robert Hersey

    You can click on the window icon expand? I do not know what operating system you are using, but with Windows, it is in the upper right. Click on and off then a couple and see if that helps. You can also try clicking on the menu bar, drag the window down, grabbing a corner and resize the window, then move it to the top. You can also try setting your monitor at a higher resolution, then you might be able to see the entire screen to resize.

  • Image used as background is larger than the screen resolution but does not fill the screen

    My laptop resolution is 1600 x 900, the image I want to put it under wall-paper is easily bigger than what is 1775 x 1235.   I understood the bars on each side, if the image was smaller than the resolution of my screen but the image is much larger.   Why then should I always get these black bars?

    Click with the right button on the desktop background and select Customize,

    Click the downstairs desktop background link on the left

    Use fill or adapt.

  • browser window is reduced when the computer wakes up from his sleep, must be enlarged twice to restore a window as large as the screen

    I tried to use the reset feature, but it does not work

    I'm not a function like the one available on
    AOL, which allows the "screen size and position" to be saved

    Operating system is Windows 7 x 64. Firefox version is 20.0.1

    Note: my problem has stopped since I expanded manually (instead of using the button to enlarge) the Firefox window to fill the screen

  • Dialog box is much larger than the screen as well as the buttons are not accessible!

    Hello.  I ran over a display of 5040 x 1050 ground three monitors.  Recently, the dialog box overview wake were opening on the 2nd and 3rd monitor.  They are not mobile.  This means illustrator freezes that I can't click on the Yes/No/agree or what say the buttons off the screen.  I tried to resize my screen, but who did to fix things and I had to close the program using the Task Manager.

    Any idea on how to solve this problem?

    Concerning

    Paul

    Paul,

    You may be able to increase the resolution of the screen (before start up of Illy) and then move the boxes as you wish.

    Or you can press Ctrl + Alt + Shift / Cmd + Option + shift while starting to reset preferences and we hope to return floating them.

  • Displayed image is larger than the screen size

    Hello

    The display on my laptop is out of wack.  For example, I can move my cursor to the right of my screen beyond where I can see.  Similarly, my bar tasks, which lies at the base of my screen don't are not in sight, however, if I move my cursor where the taskbar MUST be, I can click on windows or programs located on the task bar, then open them (although can not see the thumbs down, or so what is open).  It seems that the computer thinks I have a larger screen than I do in fact.

    I have reformat the computer back to its original and installed all configuration the recommended updates (including updates of drivers) provided by microsoft and still no luck.

    Help!

    In this case, contact HP:

    http://welcome.HP.com/country/us/en/contact_us.html

    See you soon.

    Mick Murphy - Microsoft partner

  • Now, the screen moves as the surface is larger than the actual size of the screen. I checked its display options, but how do I disable this screen oversized?

    Hello

    My mother was a member of the family to try to help inrease size but Bobo and now its screen in any program or simply from bottom of screen size is larger than the size of the screen.  She can move the mouse to the left to bring the extreme left veiw and then the same thing right but never have all the screen in veiw now.  How to restore to normal for her.  I tried control - display, but not... help her please help me

    Hi M Carmel,

    Thanks for posting in the Microsoft community.

    I understand that you are facing the issue with the resolution of the screen display.

    I suggest you to see the links and check.

    Change the resolution of your monitor

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Setup/change-monitor-resolution

    Change your screen resolution

    http://Windows.Microsoft.com/en-us/Windows-XP/help/change-screen-resolution

    Please follow these recommended steps, review the additional information provided and after back if you still experience the issue. I will be happy to provide you with additional options available that you can use to get this resolved.

  • Videos larger than the window display.

    I recently started having a problem with my g6 Pavilion by watching videos.  I noticed first on YouTube, but also can't play .mp4 files in Media Player.  I see that a small part of the video, it is larger than the window full screen, or display in this mode.

    After making sure the flash drive was up to date and quicktime (was grabbing at straws) I found that AMD video Steady was the issue.  Disabled and viola, playing the videos properly.

    Thanks for the suggestions anyway.

  • Error: The file size for all drives of paging can be a little larger than the size you specified, when you open windows in Windows 7

    Original title: paging notice when open windows on mac, divide the hard disk

    I have a split hardrive on a MAC and windows, and quickbooks installed on this drive.  When I open windows, I get a notice of paging file.  -size of the paging file.  "The file size for all drives of paging can be a little larger than the specified size.  IM using Bootcamp for the windows side.  It is to show the memory almost full and I did not yet get many date in QB.  Don't know what I have to do.

    Hello

    1. have you done any software or changes to the material on the computer before this problem?

    2. it worked correctly previously?

    3. how many hard drives are in the computer?

    4. is the problem with a partition or a particular hard drive?

    Try the steps from the link.

    Change the size of virtual memory

    http://Windows.Microsoft.com/en-us/Windows7/change-the-size-of-virtual-memory

    What is virtual memory?
    http://Windows.Microsoft.com/en-us/Windows7/what-is-virtual-memory

    Hope this information is useful.

  • Bigger than the screen info?

    Since the last update download information is larger than the size of the screen.

    How can I adjust and fix the problem?

    Adjust the resolution of your screen. Select the native resolution (recommended). See how it works then adjust downwards until you are satisfied.  You can also change the font size in windows. in search, type "Display". need you a screen with a slider to change the size of the font. It comes to Windows 7?

  • New Toolbox of illustrator and menus too large on the screen--WHY?

    Hello. Why the new Adobe Illustrator CC (2014) show the box tools and tool for the larger on the screen. I have two software install in my computer

    Look for differences between the screen:

    2.jpg1.jpg

    Thanks for the help if you know the problem.

    MHCDESIGN

    Hi mhcdesign_2014

    Looks like your windows scale parameter is > = 125% and is put across the user interface to adapt to the scale OS settings, as in 17.1 he used to trigger at > = 126% and many complaints from users that have is not to scale to 125% scale which has been the case for most users. If you keep your windows less than 125% scale, it will launch in the scale to 100%.

    Sanjay.

  • Cc of Lightroom is wider than the screen

    CC of Lightroom is wider than the screen in Windows 10. Since adobe does not implement the normal Windows controls, how can I return Lightroom CC to the size of the screen?

    It would be nice to see a screenshot to help us understand the problem. However, Shift + F will switch between the different screen modes. Does make a difference to you?

Maybe you are looking for

  • I can't open Firefox on my laptop. He has simply stopped opening. How can I fix it?

    Whenever I click on Firefox I have on the desktop to the laptop and nothing happens. The same thing happens when I click on a saved file is tagged with Firefox. I managed to install the latest version of the Internet Explorer browser but it does not

  • Equium L300 - 17Q - "Enter" button does not

    As read you on the title my TOSHIBA EQUIUM L300 - 17Q enter button does not. screen-on the built-in keyboard works is that all the other keys work.I have reinstalled the keyboard from the device manager driver, then perform full system recovery and s

  • Cannot print office 2011 applications

    Updated at El Capitan and everything after I am able to print from Word, Excel, PowerPoint and Outlook.  I deleted the Office 2011 programs and reinstalled. Nothing works.  I can open applications, edit and save, but I cannot print. I press CMD-P and

  • my computer is useless until it 'heats' for 15 minutes - how to fix this?

    After that I turned on my laptop, I have to have at least 15 minutes to use it as it became so slow. I get "not responding" much. There is no virus detected. I have a Toshiba Satellite that is about 6 years old.

  • Sansa Fuze V2 problems wheel [HELP PLEASE]

    So, I recently got my Sansa Fuze.  I was very happy with it.  Initially, I had some problems, but I sucked in and resolved.  Although now, the wheel of my sansa fuze is what I believe to be, die.  The drive itself is not even a month, and I do not us