Help:Jtextpane in Jscrollpane , the vertical scroll bar  at bottom

Immediate help needed if possible.
The scrollpane that contains the textpane is showing the vertical bar at the bottom of the page even if use :-
scrollRectToVisible(new Rectangle(0,0,1,1));
Here is my code:-------------------------
JPanel panel = new JPanel();
JTextPane textPane = createTextPane();
textPane.setEditable(false);
textPane.scrollRectToVisible(new Rectangle(0,0,1,1));
JScrollPane paneScrollPane = new JScrollPane(textPane);
paneScrollPane.setPreferredSize(new Dimension(525, 285));
paneScrollPane.setMinimumSize(new Dimension(14, 48));
gc.addCentered(paneScrollPane);
add ( panel );

From
http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Btitle%3Ajtextpane+%2Btitle%3Atop&col=javaforums
scrollRectToVisible(new Rectangle(0,0,1,1))

Similar Messages

  • At times when dragging the vertical scroll bar my computer screen oscillates up and down for some time before going blank or not responding to any clicks requiring a forced system restart. What is wrong?

    Hi,
    Suddenly while working with Firefox if I happen to drag the vertical scroll bar, a very abnormal behavior occurs. My screen dances up and down for a short time before either going black or getting restored but with no clicks working. The only way to resume is to force a restart of the system.
    Any help would be deeply appreciated.
    Thanks and Regards
    Deepak

    That didn't work. On trying to install a new driver I got the error the graphics driver could not find compatible graphics hardware. Is there anything else that can be done to at least prevent the hanging of the computer even if it means less features from Firefox being available?

  • Removing the Vertical scroll bar from the content area.

    Hello,
    Is there a way to remove the vertical scroll bar from the content area?
    I am trying to create a new light portal frame work.
    Everything works fine except that I see two vertical scroll bars, one from the content area and another from the page(frame).
    Thanks in advance.
    -Sudheer

    Hi
    There are a couple of ways in which to achieve this
    1) Try and make the content flat. What I mean by this is that the content area (when using the standard light framework) doesn't contain an iframe, meaning that the iview defined on the page has "EMBEDDED" isolation mode. This should mean that you only have one scrollbar (if the content extends past the size of the browser)
    2) If you need to make the iview URL isolation, then try and get the domain of the content to be of a similar domain to your portal server, i.e. your portal is portal.company.com and the content is content.company.com. In this way you can make the pages expand.
    NOTE: One thing to note is that when using URL isolation iviews doesn't allow the automatic expanding of the iframe content. This is because the standard javascript doesn't allow this. Therefore you may have to write your own javascript function (or content area page) to do this
    I hope this helps
    Darrell

  • The Vertical scroll bar in itunes is missing

    I have a Windows 8 computer with iTunes 11.0 
    I was using iTunes yesterday when suddenly the vertical scroll bar disappeared.
    I don't know how it went away or how to get it back.
    Can someone please tell me how to get it back?
    HELP

    I found it, there's a system preference that allows showing them always!

  • JScrollPane - change vertical scroll-bar

    I am developing an application to be run on a touch-screen monitor. The customer has asked that I make the vertical scroll-bar on the tables easier to use. How do I set the width of the scroll-bar(s) in a JScrollPane?

    Do you want to set the width of all vertical scroll bars (and in that case, probably also the height of all horizontal scroll bars too) OR the width of one specific scroll bar of one specific scroll pane?
    db

  • Adobe Reader move the vertical scroll bar from left to right

    Hi,
    is it possible to move the vertical scroll bar from left to right in Adobe Reader 9?
    If not, are you planning to implement this functionality?

    I meant from right to left, sorry
    You see, I'm left handed and when I use the scroll bar that is on the right side with the left hand I don't actually see the content of the page, because my left hand is covering the screen (I'm browsing the internet in tablet mode and I use the pen to navigate between pages).
    My system is a Tablet PC with Windows XP Tablet Edition 2005 and Adobe Reader 9.3.2.
    P.S. can you edit my post so the google indexes it right? (
    from right to left
    instead of "from left to right")

  • In FF 4.0 why does the down arrow no longer function in the vertical scroll bar?

    Prior to FF 4.0 when I positioned my cursor over the down arrow of the vertical scroll bar in Hotmail and depressed the left mouse button, the scroll bar moved downward toward the bottom of it's column limit. Now in 4.0 it turns into an adjustment cursor forcing me to readjust the size of the Hotmail window rather than moving the scroll bar down the column. This only seems to happen in Hotmail.

    Check: http://kb.mozillazine.org/Website_colors_are_wrong
    See:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    * You can see the permissions for the domain in the current tab in Tools > Page Info > Permissions
    * You can see all exceptions in Tools > Options > Content: Load Images > Exceptions
    * You can check the Tools > Page Info > Media tab for blocked images (scroll through all the images)
    There are also extensions (Tools > Add-ons > Extensions) that can block images.

  • When I open gmail, I cannot use the vertical scroll bar.

    When I use the gmail website on firefox, the vertical scroll bar. As there is no horizontal scroll bar on the website, the vertical scroll bar layers over the top of the page resizer and makes the arrow button for the scroll unusable.
    Please advise.

    you may be connected to the wireless network but the question is the internet working properly on the wireless network...
    what i mean is that i can make a wireless network without the internet so i can save and share files and have other devices connected to the same network access them... but you have to make sure that your internet it running properly... may have to reconfigure the router is your using PPPOE or if it was working prior to your post then try to restart your modem... that usually resolves most issues.

  • How can I widen the vertical scroll bar width in Firefox and Thunderbird?

    How can I widen the vertical scroll bar width in Firefox and Thunderbird?

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • Electronic noise is emitted from my computer when manually dragging the vertical scroll bar with hardware accleration enabled, but no noise is emitted when scrolling any other way (ie hyperscroll via mouse wheel).

    [Firefox 4.0]
    When I use my mouse button to hold and drag the vertical scrolling bar, my computer emits a soft grainy sound. However, when I hyper scroll with my mouse wheel, there is no noise.
    I do not get the quiet noise with Internet Explorer. I did not get this with previous versions of Firefox.
    Turning hardware acceleration off resolved this.
    I'm running Windows 7 with a dedicated graphics card (GTX 285).

    Quote
    amd 64=12a @12V
    ati 9800=7.5~10.5a @12V (assuming 90~125 watts) a max load,
    a 9600 ir nvida 5200 used far less power
    so your already at 18a with no fan,s no hd, no cd,no dvd ,no mobo chipset , no mem, no sound..etc
    If you exclude the motherboard, memory, etc like you did there, the amd 64 draws 7.2A @ 12V.
    90~125W for an ATI 9800?! [irony]Are you working for a PSU manufacturer or what?[/irony] That's just absurd.  
    Go read this post to get a feel for the actual power consumption: https://forum-en.msi.com/index.php?postid=297061&sid=#post297061

  • How can I get the vertical scroll bar in firefox for mac to operate more smoothly?

    This scroll bar issue has been a real pain for awhile, though it seemed to be better for a period of time and now has grown much worse again. I'm using Firefox 22.0. I try to grasp the blue scroll bar (right side placement) to move it up or down for pages that require scrolling to view, and it is very hard to hold and move the bar, plus it often bogs down as the colored wheel shows up as if the software is trying to process the action. It's very frustrating. I'm set to "smooth scrolling" in the Firefox settings, but that doesn't help. Is there a way to fix this and make the scroll bar move quickly and smoothly in Firefox for Mac?

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • JScrollPane: Can the Vertical Scroll Bar go on the left?

    Hope you can help,
    Im using a JScrollPane within another one, i.e, I have a component inside a JScrollPane, and one of its components is a JScrollPane. This is fine and dandy, but the internal scrolled component gets pretty tall and wide, so people end up using the OUTER horizontal scroll bar to scroll to the INNER vertical scrollbar to scroll DOWN the inner component.
    What would be really nice would be to have the INNER scrolled component to have its scroll bar on the LEFT to save the above hassle.
    Is this possible with JScrolledPane?

    In JScrollPane (jdk1.3)
    public void setComponentOrientation(ComponentOrientation co)
    Sets the orientation for the vertical and horizontal scrollbars as determined by the ComponentOrientation argument.
    Parameters:
    co - one of the following values:
    java.awt.ComponentOrientation.LEFT_TO_RIGHT
    java.awt.ComponentOrientation.RIGHT_TO_LEFT
    java.awt.ComponentOrientation.UNKNOWN

  • What can I do to stop the vertical scroll bar from freezing up or vanishing?

    I am mostly in the App Store, but often the vertical (up & down) scroll bar will freeze up so it does not move or while scrolling with it, the bar vanishes!  How can I fix this or can it be fixed?

    The only thing that's worked for me is clicking on a selection (I'm usually in music), and then going back to the main page. Usually, the scroll bar will reappear.  That's a ridiculous jumping through hoops to do something simple, but I haven't found any solution, either.

  • How do I set the vertical scroll bar to be displayed all the time?

    This is a part of program I coded:
    TreeNode root = makeNBATree();
    DefaultTreeModel model = new DefaultTreeModel(root);
    tree = new JTree(model);
    JPanel p = new JPanel();
    p.setLayout(new GridLayout(1, 0));
    JScrollPane sp = new JScrollPane(tree,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER,
         ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    sp.setPreferredSize(new Dimension(500, 500));
    p.add(sp);
    contentPane.add(p, "Center");
    when I compiled and ran the program, it said
    Exception in thread"main" java.lang.IllegalArgumentException: invalid verticalScrollBarPolicy
    at javax.swing.JScrollPane.setVerticalScrollBarPolicy(Unknown Source)
    at javax.swing.JScrollPane.<init>(Unknown Sourc)
    at NBATreeFrame.<init>(NBATree.java:59)
    at NBATree.main(NBATree.java:239)
    I would like to know is there any part I coded wrong?

    Take a look at the API again:
    JScrollPane(Component view, int verticalPolicy, int horizontalPolicy)
    You have:
    JScrollPane(Component view, int Horizontal, int Vertical)

  • Using a Mac, Firefox does not allow me to use the vertical scroll bar real-time in Godaddy webmail. It lags and jumps. Godaddy says it is a browser issue. Does not happen in Safari with Mac OS 10.4.11 or on PC w/windows vista.

    The problem is not my server (Comcast) as it does not happen on Safari when trying different websites as well as Godaddy.com or my Godaddy webmail. The problem is only when using my Mac OS X 10.4.11 (not my Windows Vista PC) in Firefox. I only began noticing this recently. Godaddy says this is a browser issue with my Mac as they cannot replicate it.
    == URL of affected sites ==
    https://login.secureserver.net/index.php?app=wbe&clearcookies=1

    The problem is not my server (Comcast) as it does not happen on Safari when trying different websites as well as Godaddy.com or my Godaddy webmail. The problem is only when using my Mac OS X 10.4.11 (not my Windows Vista PC) in Firefox. I only began noticing this recently. Godaddy says this is a browser issue with my Mac as they cannot replicate it.
    == URL of affected sites ==
    https://login.secureserver.net/index.php?app=wbe&clearcookies=1

Maybe you are looking for

  • Two computers two ipods

    I have a desktop pc as my nano home. I have a new laptop and a new 80G ipod, I want ALL my music on the biggin' and just the travel songs on the littlun' Do I need an external harddrive to save all this? When I consolidate my library does this double

  • Problem in repoting(urgent)

    hi, I make my data warehousing with data warehouse builder and now I can see it in oracle database. I make an OLAPconnection from jdeveloper to my warehouse schema and test it.the test is successfull but when I try to create a report for example grap

  • Problems with blending modes

    Hi, I have a layer with a solid color (212º,93,78) on top of which I have another layer with a solid color (205º,100,74).  Call this second layer the blend layer. I then choose for it a blending mode of Color, and the resulting color in the top layer

  • IPhoto db copying from MBP to Air...

    We tried porting all my wife's iPhoto media to her new Air from her old MBP. The sidebar shows up correctly and all the thumbnails are there, but the photos appear as blank pics. I thought iPhoto was a db, not a files manipulation system. Thoughts? D

  • Auto Starting up and Shutting down Application Server

    i have problem to starting Application Server automatically on Oracle Linux(unbreakable Linux). i had made ias file that contain : #! /bin/sh ### BEGIN INIT INFO # Provides: ias # Required-Start: $network $syslog $remote_fs raw # Required-Stop: # Def