No Scroll bar with JTextArea on unix machine

hi am using JTextArea with Unix machine... The problem is not enabling scroll bars
can anyone help me

JTextArea agreeTxt;
agreeTxt = new JTextArea(11, 42);
agreeTxt.setAutoscrolls(true);
agreeTxt.setLineWrap(true);
agreeTxt.setEditable(false);
JScrollPane pane = new JScrollPane( agreeTxt );Now add the JScrollPane object to your JPanel or where ever you have your JTextArea

Similar Messages

  • How to make a scroll Bar with buttons

    Hi all,
    I am using Flash cs6 on an iMAC running 10.7.2
    I would like to know if anyone could please point me to a tutorial, showing "how to create a scroll bar with buttons". I am having a heck of a time finding a tutorial.
    Many thanks in advance.
    regards,
    DH

    http://learnola.com/2008/10/27/flash-tutorial-create-a-custom-scrollbar-with-actionscript/

  • Scrolling bar with external text

    Hi,
    I'm trying to create a scroller bar with external text on Flash, but not suceeding much. I want to do it in AS 2.0, as my whole website is created in AS 2.0. I found a tutorial on Kirupa for Flash MX 2004, but does not work with Flash CS4, which is what I'm running.
    What I need is, basically, to have a scroll bar to scroll up and down an external text (XML or .txt). I just don't seem to be able to do it. Also, is there a way of customizing the scroll bar?
    Thanks for the help!
    N.

    Hey, I had to do a VERY similar thing for a student project a
    few months ago. If you go to
    Flashkit.com, you can find
    tutorials on how to import XML and CSS or XSL. I was able to do it
    and I don't know a lot of actionscript. If you want to see how I
    used it, go to
    the University of Scranton's MIT
    website.
    Hope that helps!

  • How to link one scroll bar with two dynamic text boxes.

    How to link one scroll bar with two dynamic text boxes.
    If i move scroll bar in one text box,automatically text will
    be moved in another text box.But scroll bar is not visible.
    Can you please help me.
    Thanks in advance.

    See the following article:
    JavaScript - setFocus Method for tabbing to next form field
    And see if iOS can even handle the sample form.
    iOS and android devices are not a powerful as your desktop of laptop computer and have limited support for JavaScript within PDF forms. This limitation for specific apps ranges from none to quite a bit but not all JavaScript.

  • Why is there a vertical scroll bar with short page export from FW CS4?

    When I view my exported page that is 400 pixels tall, I see a vertical scroll bar on the right of my IE7 browser even though the page is no where near the bottom of the browser.  How do I eliminate that scroll bar?

    Unfortunately this is not working in IE7.  Below is my body tag (I edited the SLICES.XTT to prevent the margins) where I've added the overflow option:
    body </style>
    But I still see the vertical scroll bar with a 400 px image exported as html, see attachments.

  • Scroll bar with different color

    I want my scroll bar to not the default one but a different
    color one. Am I able to do this on Dreamweaver.
    WHen I set a layer with the scroll property if the text goes
    beyond the area it becomes scrollable but the scroll is the default
    one , so I would like to chage the properties of the scroll
    bar(collor, size, etc...), is that possible using Dreamveaver?, I
    know you can do different using flash but I am trying to don't use
    too much flash on my website.

    You can but it will only work in IE5.5 (I don't think it
    would work with
    IE6, either) - which, IMHO - isn't worth your trouble. If you
    want to
    control your scrollbars cross-browser, use Flash but then
    again - not every
    user will have Flash installed.
    If you insist - this will actually generate the CSS-code for
    you. Use this
    at your own risk as I have NOT taken the time to check the
    produced CSS code
    for validity:
    http://www.newtutorials.com/changing-scrollbar-color.htm
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    ===============================
    Proud GAWDS Member
    http://www.gawds.org
    Delivering accessible websites to all ...
    ===============================
    "OscarSSS" <[email protected]> wrote in
    message
    news:e5ialr$e53$[email protected]..
    >I want my scroll bar to not the default one but a
    different color one. Am I
    > able to do this on Dreamweaver.
    > WHen I set a layer with the scroll property if the text
    goes beyond the
    > area
    > it becomes scrollable but the scroll is the default one
    , so I would like
    > to
    > chage the properties of the scroll bar(collor, size,
    etc...), is that
    > possible
    > using Dreamveaver?, I know you can do different using
    flash but I am
    > trying to
    > don't use too much flash on my website.
    >

  • Horizontal scroll bar with Line charts

    Hi,
           I want  a scrollable bar attached to x-axis as in this example(fourth one in the following URL---http://www.connectedpixel.com/blog/scrollingcharts).I able to find these feature only with ColumnCharts .Can any one tell whether can we apply the same to LineCharts .I request you to send some docs/examples of scrollbar with Line Charts
    Regards
    Kalavati
    [email protected]

    Kalavati,
    it's all fairly straightforward ActionScript stuff. Create a new ActionScript class derived from Panel. In a suitable handler create the line chart and scroll bar (HScrollbar), position them wherever you want with the x/y/height/width properties, and add them as children (otherwise they won't show up).
    I'm not sure what you're wanting to do with the scroll bar but let's suppose that at the start you show all the x-axis data (which is the default) and have the scrollbar thumb pointer at 100% (ie scrollPosition=maxScrollPosition). Then catch the scroll event. In the handler, work out the percentage across of the current position (this is a whole lot easier if you've set maxScrollPosition=100 to start with), then work out the implied change to the line chart in terms of data values. I don't know if you know in advance the data values or not, but it doesn't really matter. Suppose the horizontal axis is a LinearAxis. keep hold of the data max value along this axis for later use (say max_data_value), then do
    LinearAxis(chart.horizontalAxis).maximum = max_data_value * [the percentage worked out from the scroll bar]
    Richard

  • Scroll Bar with achor-type functionality

    Hi all,
    I was wondering if anyone has any reference to a horizontal
    scroll bar that scrolls a MovieClip and its functionality includes
    the ability to jump to a specific y position of the movieClip
    inside of the ScrollBar MovieClip and of course the scroll bar
    would move to its correct coordinates. For example, I need the
    MovieClip to go 333 pixels down (this is pretty easy) and then tell
    the scroll bar to go to its corresponding location. Anyone have a
    good example of this that is pretty dynamic?
    I have an example of this which is close to working, but I
    would like to know if there is a better more dynamic way of doing
    it.
    Thanks!!!

    Continuing this conversation with myself, I opted to use the
    ScrollPane component and use the vPosition property. We had to use
    all the event listeners before it worked,
    my_sp.addEventListener("complete", listener);
    my_sp.addEventListener("progress", listener);
    my_sp.addEventListener("scroll", listener);
    This worked well and I could feed the vposition and wind up
    where I needed to go in the scroll pane.
    So now I am having a problem with skinning the scroll pane. I
    can skin it just fine. But seeing as my scroll bar, the scroller in
    the middle of the scroll pane that you drag to get to the location
    you want to go is different in size from the original (aka scroll
    thumb). It does not adjust its size so it believes it has something
    like 56 more pixels in either direction.
    What happens is the scroll thumb will start 56 pixels below
    where it should and it stops about 56 pixels before it should stop.
    So, your content finishes scrolling and your scroll thumb does not
    finish its entire scroll - it is hanging 56 pixels above where it
    should. You drag it back to the top, the content that is being
    scrolled is back at it original position where it should be while
    the scroll thumb is hanging about 56 pixels below where it should
    ultimately be.
    Is there a way to adjust the size of the middle scroller
    – what in the skins is called the scroll thumb? I need it at
    a constant size. I can re-skin it so it looks like it should but it
    does not function as it should.
    Any suggestions?
    Anybody I can call at Adobe? (Should I send smoke signals?
    Rent the Goodyear blimb to post my Flash follies in desperation to
    solve this problem?)

  • Scroll bar with rounded ends

    Hi,
    First I'm not sure this is the right forum to be posting
    about CS3 components, if there is a better one, please direct me to
    it.
    I want to make a scrollbar that has rounded end caps. If I
    use the CS3 scroll bar component for this purpose, it doesn't look
    right, because when the bar skin is scaled according to the bar's
    progress, it scales the end pieces. What I really want is to have
    only the middle scaling/stretching, while the end caps remain
    constant sized.
    Is this possible with the CS3 component? Or any tips about
    finding or making one that does this?
    Thanks,
    Ryan

    You can but it will only work in IE5.5 (I don't think it
    would work with
    IE6, either) - which, IMHO - isn't worth your trouble. If you
    want to
    control your scrollbars cross-browser, use Flash but then
    again - not every
    user will have Flash installed.
    If you insist - this will actually generate the CSS-code for
    you. Use this
    at your own risk as I have NOT taken the time to check the
    produced CSS code
    for validity:
    http://www.newtutorials.com/changing-scrollbar-color.htm
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    ===============================
    Proud GAWDS Member
    http://www.gawds.org
    Delivering accessible websites to all ...
    ===============================
    "OscarSSS" <[email protected]> wrote in
    message
    news:e5ialr$e53$[email protected]..
    >I want my scroll bar to not the default one but a
    different color one. Am I
    > able to do this on Dreamweaver.
    > WHen I set a layer with the scroll property if the text
    goes beyond the
    > area
    > it becomes scrollable but the scroll is the default one
    , so I would like
    > to
    > chage the properties of the scroll bar(collor, size,
    etc...), is that
    > possible
    > using Dreamveaver?, I know you can do different using
    flash but I am
    > trying to
    > don't use too much flash on my website.
    >

  • 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

  • Missing Scroll Bar with Maverick - when will it change?

    What are the plans to fix this problem?  I am about ready to get rid of my Apple MacPro because I am not finding Apple to be a "consumer friendly" company any longer.  Whoever made this decision, made a VERY bad one.  I waste so much time trying to get the scroll bar because I there is no longer  way to keep it visible.  Terrible way to lose a customer...guess my thoughts of an IPhone or IPad just went down the tubes, too!  Ha..I am trying to "scroll down" to send this...that was 2 minutes ago!

     (Apple menu) > System Preferences > General.
    The Discussion you referenced was for Safari's Preferences, not System Preferences, and the reply in that Discussion is correct.
    guess my thoughts of an IPhone or IPad just went down the tubes, too!
    Scroll bars are similar in both appearance and behavior in iOS.

  • Scroll bar with htmlText

    im doing it like this right now
    [code]
    <mx:Accordion id="password" width="100%" height="100%">
    <mx:VBox label="How do I reset my password?" width="100%"
    height="100%">
    <mx:Text width="100%" height="100%">
    <mx:htmlText>
    <![CDATA[blah blah blah blah blah]]>
    </mx:htmlText>
    </mx:Text>
    </mx:VBox>
    </mx:accordian>
    [/code]
    but there is no scroll bar, if there is too much text, it's
    just gone, i can't scroll... any ideas?

    i can't find a livedoc on it, please help :(

  • Table controls (scroll bars) with LSMW

    Hi,
    I have to fill a table control from a lsmw project, my problem appears when we need to scroll down table control because there are no more free lines.
    My question is if it's possible to manage table control scroll bars to scroll down when all rows will be taken, using lsmw.
    Any idea about it would be very appreciated
    Thanks in advance

    Hi Javier,
    I suggest you is that you should loop at the internal table from which you are filling the data into the table control or use a counter for number of rows comming up at a time in the table control. And then put code for ADD+ button. Do this till the end of file or table.
    I hope this helps.
    Also you can use TCode for the LSMW to upload one record at a time. U can try this also.
    Regards,
    Usha.

  • Scroll bar with flowlayout still does not work

    Why does the scrollbar with my textArea not work?
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class JEmail extends JFrame implements ActionListener
         JPanel panel = new JPanel(new FlowLayout());
         private final static String newline = "\n";
         JButton button = new JButton("Send");
         JLabel to = new JLabel("TO:");
         JLabel from = new JLabel("From:");
         JTextField tobox = new JTextField(8);
         JTextField frombox = new JTextField(8);
         //     JTextArea email = new JTextArea(5,10);
              JLabel message = new JLabel("Message:");
         //     JScrollPane scroll = new JScrollPane(email);
              JTextArea textArea = new JTextArea(5,10);
              JScrollPane scroll = new JScrollPane(textArea);     
         //JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
         //     JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
         public JEmail()
              super("Email");
              panel.setLayout(new FlowLayout());
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              panel.add(to);
              panel.add(tobox);
              panel.add(from);
              panel.add(frombox);
              panel.add(message);
              panel.add(textArea);
         panel.add(scroll);
              panel.add(button);
              button.addActionListener(this);
         //     email.addAdjustmentListener(this);
              setContentPane(panel);
         public void actionPerformed(ActionEvent e)
              Object source = e.getSource();
              if (source == button)
              textArea.append(newline + "Mail has been sent\n");
              tobox.setText("");
              frombox.setText("");
         public void adjustmentValueChanged(AdjustmentEvent e)
              Object source = e.getSource();
         public static void main(String[] args)
              JFrame aFrame = new JEmail();
              aFrame.setSize(400, 400);
              aFrame.setVisible(true);
    }

    Post the code again, this time using the [ code ] tags.

  • Scroll bar with external text file

    Hello all,
    I need to make a flash movie with a graphic background with
    text from an external file.
    Ideally:
    1) The text file would NOT have to be imported into the flash
    movie. It would simply be in the same web folder as the flash file.
    2) Even better the text file would have a separate css file
    so I can change font size etc, while I tweak the movie, and get
    client approval.
    If 1 and 2 are not possible, then I can live with importing
    the text file. But CSS would sure be a nice addition!
    BTW I have Flaxh MX Professional 2004.
    Thanks
    Rowby

    Hey, I had to do a VERY similar thing for a student project a
    few months ago. If you go to
    Flashkit.com, you can find
    tutorials on how to import XML and CSS or XSL. I was able to do it
    and I don't know a lot of actionscript. If you want to see how I
    used it, go to
    the University of Scranton's MIT
    website.
    Hope that helps!

Maybe you are looking for

  • Photos for iOS: How can i sort all of my albums automatically in alphabetical order

    Hey there, first off, why isn't there a a community for the new Photos app? Anyway, here is my problem: How can i sort my albums on the new Photos app on iOS? I think it's not possible at the moment. I am using the iCloud Photo library and uploadet a

  • I am trying to sync my ipod but it is not working.

    First said no space. I made space. Now has enough but one big voice note (1.45 hours) is not sync. what should i do?

  • Event help please!!!

    Hello In a game I am currently making I have had some problems with The keyPressed() and keyReleased() methods. If i press spacebar to fire (its in keyReleased()) while i'm moving, my ship will stop (since the moving is controlled with keyPressed()).

  • Lightroom doesn't show and use drive B:

    Hello, I have many partitions and drives in my PC (Win 7 64 Bit Ultimate), so I'm using drive B: for my pictures. There are no problems with Win7 or other programs but LR doesn't recognize this drive B: neither for import nor for saving files to fold

  • Does anyone have any ideas?

    My daughters ipod shows that its at my neighbors house on Apple finder- icloud/find, Ive asked them if they have it they said no, any ideas?