JScrollPane vertical bar offset

Hello all,
I hava a GUI with a JTextPane and a JScrollPane added to it.
When the added text exceeds the vertical length the bar moves to the bottom - I HATE THAT-
Could you please tell me how to "instruct" thay bar to be at the top at all times?
Billions of thanks in advance!
Regards

Hello all,
I hava a GUI with a JTextPane and a JScrollPane added
to it.
When the added text exceeds the vertical length the
bar moves to the bottom - I HATE THAT-
Could you please tell me how to "instruct" thay bar to
be at the top at all times?
Billions of thanks in advance!
RegardsYou could achieve that with an ChangeListener but how do you want to see the lower content if the scrollbar is always on top ??
regards
Tim

Similar Messages

  • JScrollPane vertical Bar

    Hello all,
    I have the following problem:
    Having added a JScrollPane on a JTextArea or JTextPane, when using the setText() method if the text exceeds the max size, the vertical Bar moves to the end of the text -
    How can i tell the bar to stay to it's starting position and the text to be dispalyed(so when he moves the bar he ll see the rest of the text)
    thanks in advance for the help!!!

    textPane.setText();
    textPane.setCaretPosition(0);

  • CHANGE JSCROLLPANE VERTICAL BAR COLOUR

    Hello!,
    do you know how to change Vertical Bar colour in a JScrollPane?
    Thanks!

    I think you wantUIManager.put("ScrollBar.thumb", yourColor);before you create the scroll pane. However, other properties ("ScrollBar.background", "ScrollBar.foreground", "ScrollBar.track") might be more what you need.

  • I dropped my iPhone 5s and white vertical bars problem

    Hey all,
    Recently today I dropped my iPhone 5s and white vertical bars started to appear in the right hand side of my phone... Do I just need to get my screen replaced or is there more to the problem?

    Apple doesn't replace the display on the 5s, only the 5 and the 5c. Probably wouldn't matter anyway. The damage is probably more extensive than just the display.
    Make an appointment at the genius bar. A replacement is $269 if you don't have AppleCare+

  • How to create a vertical bar chart from a table? (PHP, HTML and CSS)

    Hi everyone,
    I have created a table and wish to proceed to do it even better in terms of analysis pattern. I want
    to create a vertical bar chart from the created table but I dunno how to start it.
    Here is the code for the table:
    <?php
    $gpa11=$_REQUEST['gpa11'];
    $gpa12=$_REQUEST['gpa12'];
    $gpa21=$_REQUEST['gpa21'];
    $gpa22=$_REQUEST['gpa22'];
    $gpa31=$_REQUEST['gpa31'];
    $gpa32=$_REQUEST['gpa32'];
    $gpa41=$_REQUEST['gpa41'];
    $gpa42=$_REQUEST['gpa42'];
    $gpa51=$_REQUEST['gpa51'];
    $gpa52=$_REQUEST['gpa52'];
    ?>
    <!doctype html>
    <html lang="en">
       <head>
          <meta charset="utf-8">
          <meta name="viewport" content="width=1024">
          <title>Feng Mentor Mentee</title>
       </head>
       <body>
          <div id="wrapper">
             <div class="chart">
                <h3>GPA Performance Graph</h3>
                <table id="data-table" border="1" cellpadding="10" cellspacing="0"
                summary="The performance of students throughout the years in university">
                   <thead>
                      <tr>
                         <td> </td>
                         <th scope="col">Year 1</th>
                         <th scope="col">Year 2</th>
                         <th scope="col">Year 3</th>
                         <th scope="col">Year 4</th>
                         <th scope="col">Year 5</th>
                      </tr>
                   </thead>
                   <tbody>
                      <tr>
                         <th scope="row">Sem 1</th>
                         <td><?php echo $gpa11;?></td>
                         <td><?php echo $gpa21;?></td>
                         <td><?php echo $gpa31;?></td>
                         <td><?php echo $gpa41;?></td>
                         <td><?php echo $gpa51;?></td>
                      </tr>
                      <tr>
                         <th scope="row">Sem 2</th>
                         <td><?php echo $gpa12;?></td>
                         <td><?php echo $gpa22;?></td>
                         <td><?php echo $gpa32;?></td>
                         <td><?php echo $gpa42;?></td>
                         <td><?php echo $gpa52;?></td>
                      </tr>
                   </tbody>
                </table>
             </div>
          </div>
       </body>
    </html>
    Here's the look:
                                                              GPA Performance Graph                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    Year 1
    Year 2
    Year 3
    Year 4
    Year 5
    Sem 1
    Sem 2
    Please help me on this because this is my 1st project on php.

    Hi
    Are you using BI query? If yes then follow the steps -
    1. Take Sales org in rows of BI query. & take invoice type & Key figure in Columns.
    2. In VC use this query & drag chart from the output of this query.
    3. Right click on chart & go to 'Configure Element'. There select Chart Type as 'Bar chart'
    4. Below that you will get default option as clustered, there you select 'Stacked'
    5. Create Data series as per your requirement.
    6. Arrange proper layout of the model & then deploy.
    You will get required output in stacked format.
    Regards
    Sandeep

  • CSS, Flash, or HTML? What is causing the white vertical bar?

    I am using an I-frame to embed a photo gallery that was created with Adobe Bridge CS4. Adobe Bridge instructed me to make the iframe height = 75% of the width. The code is <iframe src="PhotoAlbum/index.html" width="900" height="675" frameborder="0"></iframe>
    #photoAlbum contains the iframe with the following properties:
    #photoAlbum {
    margin-top: 20px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    width: 900px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top-width: 2px;
    border-top-style: groove;
    border-top-color: #333;
    I tried changing the width to 960, 900, 850 etc with no success.
    I have tried making the background of #photoAlbum black with no success.
    The link to the photo album is http://www.gigharborrealestate.com/youtube/016/PhotoAlbum/index.html
    The site that I am having problems with is http://www.gigharborrealestate.com/youtube/016/ On the right side of the Trelliis Grove Photo Gallery is a white vertical bar.  If you go to /PhotoAlbum/index.html there is no white bar.
    Why does this bar show up when /PhotoAlbum/index.html is put into an I-frame? How can I get rid of the vertical bar?

    Cool so where do I start
    I found this Tutorial:
    http://www.toxiclab.org/tutorial.asp?ID=37
    But I've never done html in flash before

  • A cursor is displaying where I clicked mouse on the Firefox screen. If, I clicked on a page or a link in a page, a cursor pointer(vertical bar is blinking).

    Hi, Hello, Sir/Madam, I'm a Firefox user from India. My problem is,
    "Whenever I opened Firefox browser, and clicked on a page in the browser(even the start-up home page), a vertical bar starts to blink in the screen, even if I used tab button, to move over the link, the vertical bar appearing also moves accordingly. This problem I'm facing from yesterday(29.10.2012)".
    Could you please tell me how to resolve this issue?

    In addition to the above:
    You probably have switched on caret browsing.
    *http://kb.mozillazine.org/accessibility.browsewithcaret
    *Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    *http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Display name and value on label of vertical bar chart

    Hi,
    i have a vertical bar chart. On x-axis there are Countries: (Italy, Netherlands and so on), and on y-axies there are the values.
    When i mouse over a bar, on default is shown only the value. I want show a tooltip with the value and the name.
    For example, when i mouse over Netherlands bar, i want to display, NETHERLANDS , 92,45.
    I've modified bar.pcxml file adding following string:
    FormatString='%_YVALUE'
    I've restarted all processes, but now when i mouse over on bar i see a tooltip with %_YVALUE text.
    What's the correct syntax?
    Thanks
    Giancarlo

    I don't think its possible to use this '%_YVALUE' for Bar graphs. Please refer to table 1.1 in the below link for the supported values for FormatString for each graph type:
    [http://www.corda.com/docsource/doc4/popchart/docs/builder/creatin7.htm#447987]
    As you can see, '%_YVALUE' and '%_XVALUE' are supported for X-Y graphs only, which I guess are Scatter and Bubble charts. I tried using other ones like '%_GRAPH_TOTAL' for bar graphs which just works fine.
    Hope this helps!!
    Thanks

  • When typing text in forms, the vertical bar gets multiplied all over the place.

    Often when I'm typing text into a form on various sites, be it Facebook or this very site, the vertical bar that follows the input text gets randomized all over the line and appears multiple times. The glitch disappears about half a second after I stop typing (as soon as the pipe character starts blinking), but it still drives me nuts when I'm typing something regularly. You can find a screenshot of this in action from a Facebook form here: http://imgur.com/mNr9Y

    Try to disable "Morphological Filtering" in the Catalyst drivers:
    * Catalyst Control Center > 3D Settings > Disable Morphological Filtering

  • Vertical bar in table control

    HELLO ALL,
    I AM HAVING A PROBLEM WITH VERTICAL BAR IN MODULE POOL PROGRAM FOR A TABLE CONTROL.
    WHEN I TRIED WITH WIZARD ITS WORK FINE BUT WHEN I CREATE MANUALLY, FIRST OF ALL IT DOESN'T GIVE ME ANY VERTICAL BAR.
    Pls do let me know if i need to anything to get vertical bar so that i can insert any number of lines in my table control

    hi RAVI KANTH,
    I just want to create table control manually with vertical bar and i don't have page down icon on my screen.
    can you tell how to proceed regarding this
    tHANKS IN ADVANCE

  • Samsung S5 camera images have vertical bars/gradient in them. Has anyone seen this before?

    Low light conditions produce vertical bars in the image, see attached.
    I downloaded another camera app and it too produces these bars.
    It would seem that there is a hardware issue with the sensor.
    In outdoor images these are not noticeable but I believe they are still there since as the light increases they get lighter. At some point the gradient simply blends together when there is enough light.
    This is my second phone in less than 10 days, it seems getting a fully functional S5 is difficult.

        Hello pf1234,
    Having a camera on your smartphone that doesn't work is understandably frustrating but we will work to get this issue resolved for you. Are you having the same issue with the front facing camera? Let's try to reset the camera app to see if it resolves the issue http://vz.to/XMEq5K Please let us know how it turns out.
    CandiceH_VZW
    Follow us on Twitter at @VZWSupport

  • Strange vertical bar in address bar blinking near cursor

    After I updated my Firefox to version 33, I noticed that there is strange grey vertical bar keep blinking near cursor in the address bar and sometime it appear near close tab button. How to fix that problem?
    Sorry for my bad english.

    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:
    #Open Firefox ''Options'' window (''Preferences'' on Mac or Linux) as follows:
    #* Click the menu button [[Image:New Fx Menu]] and select ''Options''.
    #In the Firefox Options (or Preferences) 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.

  • Create Pie Chart and Vertical bar chart using report builder 3.0 with sharepoint custom list

    Hi All,
    I have a client requirement to create reports which should show the graphical representation of SharePoint Custom List data. The reports are Month wise and YTD. Also i have to create dashboard.
    For creating reports, i have heard about Report Builder and SSRS. I have SQL server 2008r2 and installed report builder 3.0 but i am not aware of creating reports(KPI, Pie Chart, Vertical bar, etc.,) with sharepoint customlist.
    Can some one please help me on this.
    MercuryMan

    Here is some information about using the SharePoint List Data source with SSRS/Report Builder/BIDS:
    http://www.infotoad.com/blog/post/2012/10/11/using-a-sharepoint-list-connection-type-as-a-data-source-for-reporting-services.aspx
    http://technet.microsoft.com/en-us/library/ee633650.aspx
    http://www.codeproject.com/Articles/24469/SQL-Reporting-Services-data-from-SharePoint-lists
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Stacked Vertical Bar

    I would like to create a vertically stacked bar graph that shows the following:
    I have a group of members that belong to specific 3 groups and have 3 different behaviors.
    Group 1: High Income & High Expenditure
    Group 2: Middle Income & Middle Expenditure
    Group 3: Lowe Income & Low Expenditure
    My bar chart would have 3 bars with the type of expenditure (high, middle or low) on the X-Axis and Income level (high, middle & low) on the Y-Axis. The metric is basically the count of members and I would like to depict this as a stacked vertical bar. Thanks in advance.

    hi, I found one possible way to achieve my goal
    use the filter.
    if there are 3 kinds. create 3 column with 3 formulae below:
    FILTER(test_stacked.no_of_item USING (test_stacked.kind = 'Banana'))
    FILTER(test_stacked.no_of_item USING (test_stacked.kind = 'Orange'))
    FILTER(test_stacked.no_of_item USING (test_stacked.kind = 'Lemon'))
    reference: Line Bar combo, stacked
    but if there are 100 kinds, it needs 100 columns with 100 formulae
    is there any smarter ways to achieve my goal?

  • Graph values on the Vertical Bar

    Hi,
    Is there any possiblity of the of the graph values to be there on the Vertical bar graphs.
    Generally the vertical bar graph values will display on top of the vertical bar graph.
    Thanks in Advance.
    Siva

    Here is a link that will walk you through setting up each of your Device Profile pages for your iPod:
    http://ipod.about.com/od/tes1/ss/ipod-touch-setu.htm
    Cheers,
    GB

Maybe you are looking for