How do you add a scroll bar to a page

I would like to add a mini scroll bar to my page so that the overall windwo stays small, but I can add lots of content. Here is an example: http://birdhouseskateboards.com/
Notice the bar on the right

You need to setBounds() on the JScrollPane, not the JList.
The JScrollPane is the component that is being added to the panel.

Similar Messages

  • How do you add a scroll bar to a scrolling text field in a folio?

    I've created iPhone and iPad folios with multiple pages. There are scrolling text fields on each page. The fields scroll as designed, but the scroll bars on the  text fields only appear while actually scrolling. Is there a way to have them always visible so the user knows there is more hidden info? The only bars that are constantly visible are the page scroll bars.  Thanks!

    Why is your content pane null? I thought the content pane was the top-level in all windows? If you want complete control over the location of a list box, you want to set the layout of the content pane to null... the way I almost always do this is the other way around, to create my own panel and use setContentPane instead:
    JPanel content = new JPanel(null);
    JScrollPane scroll = new JScrollPane(myListBox);
    scroll.setBounds(380, 10, 500, 500);
    content.add(scroll);
    setContentPane(content);

  • How do i add a Scroll Bar to a  JList Component using absolute positioning?

    I've got a applet whose content pane is set to null. I've create a jlist component on this applet and using absolute positioning set the bounds at
    ListBox1.setBounds(380,10, 500, 500);.
    My problem is creating add a scroll bar to the list box.
    JScrollPane scrollPane = new JScrollPane(ListBox1);
    C.add(scrollPane);
    The above code is what i use and when i run this applet i don't see the list box at all. How do i add a scrollbar to this list box or JList component. Please help.

    You need to setBounds() on the JScrollPane, not the JList.
    The JScrollPane is the component that is being added to the panel.

  • How do I add a scroll bar to an array?

    I want to take a 2D array and change the row its is in with a scrollbar so that in a another array index I can pull out individual number from each row. 
    So I have a CSV file [time,1,2,3,4,5] and I want the user to able to vary the time with a scrollbar. 
    Thanks! 

    sofiakyle wrote:
    I want to take a 2D array and change the row its is in with a scrollbar so that in a another array index I can pull out individual number from each row. 
    So I have a CSV file [time,1,2,3,4,5] and I want the user to able to vary the time with a scrollbar. 
    A scrollbar is a cosmetic UI element that does not modify data (e.g. vary time) or "pull out numbers" (whatever that means).
    If you can only scroll through 8 values, maybe you need to transpose the array to swap rows with columns.
    LabVIEW Champion . Do more with less code and in less time .

  • How do you add a title bar across top of web pg?

    the only option i see is has very small text.

    Welcome to the Apple Discussions. Put your title in the existing text box, select all and type Command and "+" repeatedly until the size is what you want. Or add a new text box, add your text, select the font and size with the Font button at the bottom.
    OT

  • How do you add downloaded smileys to the emoticon page in the text message

    Hi:
    I just got a Blackberry Q5 and am still figuring out how to use it. I get how to access the smileys in the emoticon menu of the text message, but I downloaded some new smileys and was wondering if there's an easy way to load them up, instead of existing the text message, loading the downloaded smileys, copying and pasting them, and then returning to the menu. It seems like a lot of effort. Like, what's the point of downloading smiley's if it's this hard to use them.
    Does anyone know how? Thanks.
    Moogle87

    You can set the destination of downloads in your browser's preferences.  For example, in Safari, on the menubar,  Safari > General tab > Save downloaded files to:
    Direct them to a folder (like the downloads folder) and then put a shortcut on the dock.
    Regards,
    Captfred

  • How do you add fonts in pages?

    How do you add fonts and clip art in pages? I seem to have few fonts in pages. New to Mac. Thanks! Also seems that there is no clipart in pages? If there is, where can I find it?

    On the Mac you add fonts to the System by double clicking on them, they then get opened in Font Book where you can open/close and organise them.
    Most ClipArt offered with other applications is rubbish. Apple has left it to you to source your own, better material. This may help:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=12&mforum=iworktipsn trick
    Peter

  • How to add a scroll bar within a view window ?I want to display x and y axis outside the scoll window and keep those axis static and move the graph within scroll area

    how to add a scroll bar within a view window ?I want to display x and y axis outside the scoll window and keep those axis static and move the graph within scroll area
    ananya

    Hey Ananya,
    I believe what you want to do is possible, but it will not be
    easy.  If you want to add a scroll bar that will scroll the graph
    back and forth but keep the axis set, you would want to add a
    horizontal or vertical scrollbar.  Then you would create an event
    handler for the scroll event.  You would have to manually plot
    different data within this scroll event.  Unfortunately, there is
    not really a built in way to do this with the Measurement Studio plot
    control.
    Thanks,
    Pat P.
    Software Engineer
    National Instruments

  • How to add the scroll bar in the vertical photo gallery?

    like this, how to add the scroll bar? http://www.flashvault.net/tutorial.asp?ID=288 Thanks,

    I want to know how to add a vertical scroll bar in the photo gallery which I copied from the tutorial. And add the event to catch MouseEvent.CLICK for each photo. Please advise. Thanks,

  • How can I hide the scroll bar in TextArea?

    How can I hide the scroll bar in TextArea?

    Hi. To remove the horizontal scrollbar you can do this:
    textArea.setWrapText(true);
    To remove the vertical scrollbar you can do this:
    ScrollBar scrollBarv = (ScrollBar)ta.lookup(".scroll-bar:vertical");
    scrollBarv.setDisable(true);  and set the opacity to 0 in the css file:
    //css file
    .text-area .scroll-bar:vertical:disabled {
        -fx-opacity: 0;
    }Here is an example:
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ContextMenu;
    import javafx.scene.control.MenuItem;
    import javafx.scene.control.ScrollBar;
    import javafx.scene.control.TextArea;
    import javafx.scene.input.ContextMenuEvent;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    public class TextAreaSample extends Application {
        @Override
        public void start(Stage primaryStage) {
        final TextArea textArea = new TextArea();
            textArea.setWrapText(true);
            StackPane root = new StackPane();
            root.getChildren().add(textArea);
            Scene scene = new Scene(root, 300, 250);
            primaryStage.setScene(scene);
            primaryStage.show();
            scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm());
            ScrollBar scrollBarv = (ScrollBar)textArea.lookup(".scroll-bar:vertical");
            scrollBarv.setDisable(true);
        public static void main(String[] args) {
            launch(args);
    }

  • How can I put a scroll bar on a frame?

    Hello,
    I have a class that extends JFrame, and I need the Frame have a scroll bar. How can I do so?

    JFrame frame = new JFrame() ;
    JScrollPane scrollpane = new JScrollPane() ;
    JPanel panel=new JPanel();
    JLabel label=new JLabel("Hello!");
    label.setPreferredSize(new Dimension(2000,2000));
    panel.add(label);
    scrollpane.add(panel);
    frame.setContentPane(scrollpane);
    Does that work for you?
    PS:scroll bar as needed is the default setting, so you don't actually need them. And yeah, your panel must be big enough to let the scroll bars show themselves.

  • How do you add a video clip to a slide show?

    How do you add a video clip to a slide show using elements 12?

    You can import some very short video clips into Photoshop and make gifs.  I can import short (10 second or so) .mvi video clips I've taken with my point and shoot camera.
    Use File ->Import->Video Frames to Layers
    CS3 doesn't recognize .mvi files until you enter *.* in the box, hit load, then find the file you want.
    After the file has been loaded, go to Windows, and check Animation.
    After the Animation bar loads, go to the right side arrow, check Make Frames from Layers.
    Then Save for Web and Devices, and you've got your gif.
    I find it much easier to use the separate software.

  • How do you add a custom label to dates in contacts.....

    How do you add a custom label to dates in contacts- I have multiple birthdays in contact group and want to change label through customise to add additional birthday- unless another way to add second birthday to contacts and identify each one?????? or way to link contacts with same address phone number etc but id birthdays?????

    You have some contacts with more than one birthday?
    To add a custom label for a date, select Edit for an existing contact. Select Add Field. Select Date. Scroll up with the Info window above the date selection and select Other for the new date selection. Select Add Custom Label and then select this label for the new date field for the contact.
    As far as linking dates with multiple contacts, the answer is no to that.

  • How do you add a folder to email

    how do you add a folder to email files

    The folders on the desktop are widgets. Hit the app button in the top right hand side to take you to the app and widget drawer. Once there tap on the word Widgets at the top of the screen and scroll over to the folder widgets. Press and hold on the folder you want and it will then turn into a movable item you can drag to your desktop.

  • How do you add a password to a secured web sight after you initially said no?

    How do you add a password to Safari for a secured web sight after you initially said no?

    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Test.

Maybe you are looking for

  • Windows 8.1 laptop wakes up from sleep or hibernate to synchronize time

    I put my HP Pavilion g7 notebook in either sleep or hibernate mode but during the night it wakes itself up with the following event: Log Name:      System Source:        Microsoft-Windows-Kernel-General Event ID:      1 Task Category: None Level:    

  • Can't restore my ipod touch - unknown error 18 displays....

    My daughter's ipod touch wasn't operating correctly - apps wouldn't update, locked up, etc.  I attempted to back up and restore, but it won't let me restore, instead citing "unknown error 18", but it's now locked in a half-restored state and I can't

  • Down paynt

    can i amke a down payment more or less than the pur chase order? if i make a less down payment once  done the MIRO, we can transfer the amount from down payment to normal payment. usually we post down payments with special GL indicator, so this amoun

  • Cannot login into Alert Configuration (RWB)

    I have tryed to use xisuper, j2ee_admin accounts and I am always getting error. Logon failed What has happened? Call of URL http://xiserver:8000/sap/bc/bsp/sap/alertinbox/index.htm terminated due to error in logon data. Which user could login into Al

  • How to Create Track in NWDI for CRM ISA 5.0

    hi can anyone please suggest me how to create track in NWDI for CRM ISA 5.0 for different archive files which consists of source files like(ex: SAP-SHRAPP.SCA,SAP-SHRWEB.SCA, e.t.c.) and as well as empty source files like(ex: SAP-SHRAPP.SCA,SAP-SHRWE