Modifying Scroll Bars

Is there a way to change the actual dimensions of a scroll bar in CS4, as well as the color of the scroll bar contents? The typical default html scroll bar just seems so large and dominant on a web page and i would like to make the width narrower and to make certain parts transparent or different colors. Any insight would be very helpful! Thanks!!

Custom colored scrollbars are possible in IE only.  No other browser supports this.
http://www.echoecho.com/toolcustomscroll.htm
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com

Similar Messages

  • I would like to know it it's possible to change the scroll bar from the right part of the firefox browser, to the left part and, if it's possible, how can it be done. Thank you!

    The scroll bar (the one used to scroll up and down any kind of website), that is normally in the right part of the firefox browser, would be of much help to me if it could sometimes be moved to the left part of the browser. Is this possible? How can it be done? Can anybody tell me the exact steps to take in order to do this (if it is possible of course)? This would be helpfull to me, since I think that the firefox scroll bar is overlaping the scroll part of the facebook chat sidebar, since I just can see a few people on this facebook chat sidebar and I can´t scroll along it, as I could a while ago. So my guess is that the firefox scroll bar is covering the other. In order to solve it in a simpler way, I guessed that if the firefox scroll bar could be moved to the left side of the browser, this problem could be solved. So, can anybody help me?

    http://kb.mozillazine.org/layout.scrollbar.side
    Type '''about:config''' in Location (address) bar
    filter for '''layout.scrollbar.side'''
    Right-click the Preference and Modify it to '''3'''
    You may need to reload any pages open to have scrollbar move to left after Preference change.

  • Scroll Bar in ALV Top Of Page

    Hi Ppl,
    I am using REUSE_ALV_COMMENTARY_WRITE to display top of page in ALV. The issue is i want to restrict the top-of-page height.
    As of now if i have 10 lines to print...the top-of-page comes with 10 lines in display.
    But i want some (say 4 or 5) to be visible with scroolbar and rest can be viewed by use of the scroll--bar movement!!
    Any soln?? Please reply
    Regards,
    Santosh!!

    Hi Santosh,
    I am not sure if that is possible by using FM approach. - REUSE_ALV_COMMENTARY_WRITE
    But yes its possible if you are using Docking Container. with split container approach. ie. OOPs .
    Refer sample code.
    Constants Declaration
    CONSTANTS: c_x             TYPE c          VALUE 'X',
               c_mode          TYPE char1      VALUE 'O',
               c_mask          TYPE char9      VALUE ',*.*,*.*.',
               c_error_log     TYPE tabname    VALUE 'ZERROR_LOG',
               c_succ          TYPE iconname   VALUE '@01@',    "#EC *
               c_fail          TYPE iconname   VALUE '@02@',
               c_object        TYPE emg_object VALUE 'PARTNER'," Legacy obj
               c_opbuk         TYPE opbuk_kk   VALUE 'UK01',
               c_split         TYPE c
                               VALUE cl_abap_char_utilities=>horizontal_tab,
               c_path          TYPE char100
                               VALUE '/local/data/interface/A28/DM/OUT'.
    *Variables Declaration
    DATA:  flg_pre     TYPE c,             " Flag -  Presentation browse
           flg_x       TYPE c,
           cnt_total   TYPE char8,         " Total Records processed
           cnt_success TYPE char8,         " Total Records success
           cnt_failed  TYPE char8,        " Total Records failed
           cnt_repeat  TYPE char8.
    *-- ALV Grid data declaration
          CLASS v_lcl_event_receiver DEFINITION
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
         handle_print_top_of_page FOR EVENT print_top_of_page OF
                                            cl_gui_alv_grid,
         handle_top_of_page       FOR EVENT top_of_page OF
                                            cl_gui_alv_grid.
    ENDCLASS.                    "o_lcl_event_receiver DEFINITION
          ALV Data declaration
    DATA : o_alvgrid          TYPE REF TO cl_gui_alv_grid,
           o_split            TYPE REF TO cl_gui_easy_splitter_container,
           o_dockingcontainer TYPE REF TO cl_gui_docking_container,
          <b> o_container_top    TYPE REF TO cl_gui_container,
           o_container_bot    TYPE REF TO cl_gui_container,
           o_html             TYPE REF TO cl_dd_document,</b>       o_event_receiver   TYPE REF TO lcl_event_receiver,
           ok_code            LIKE sy-ucomm,
           i_fieldcat         TYPE lvc_t_fcat,
           wa_fieldcat        TYPE lvc_s_fcat,
           wa_layout          TYPE lvc_s_layo.
          CLASS LCL_EVENT_RECEIVER IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
    *-- Top of Page
      METHOD handle_print_top_of_page.
      ENDMETHOD.                    "handle_print_top_of_page
      METHOD handle_top_of_page.
      ENDMETHOD.                    "handle_top_of_page
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    *-- ALV List data declaration
    DATA:  i_field_cat1       TYPE slis_t_fieldcat_alv,
           w_lay_out1         TYPE slis_layout_alv,
           w_field_cat        TYPE slis_fieldcat_alv,
           i_events1          TYPE slis_t_event,
           w_event            TYPE slis_alv_event,
           w_print            TYPE slis_print_alv.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STANDARD'.
      SET TITLEBAR 'TITLE'.
    *-- Create Instances
      PERFORM f0040_create_object.
    *-- Create Field catalog
      PERFORM f0050_field_catalog
                        TABLES i_fieldcat
                        USING c_error_log.
    *-- Modify Field Catalog
      PERFORM f0060_modify_fldcatalog
                        TABLES i_fieldcat.
    *-- Set ALV Layout
      PERFORM f0070_layout.
    *-- Generate ALV Grid
      PERFORM f0080_display_list
                        TABLES  i_error
                                i_fieldcat
                          USING wa_layout.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Form  f0040_create_object
    FORM f0040_create_object .
      IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    *-- Create Container
        CREATE OBJECT o_dockingcontainer
          EXPORTING
            ratio                     = '95'
         EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6.
        IF sy-subrc NE 0.
          MESSAGE i000 WITH text-013.   " Error in object creation
          LEAVE LIST-PROCESSING.
        ENDIF.
    *--Create Splitter Container
        CREATE OBJECT o_split
          EXPORTING
            parent            = o_dockingcontainer
            sash_position     = 20
            with_border       = 0
          EXCEPTIONS
            cntl_error        = 1
            cntl_system_error = 2
            OTHERS            = 3.
    *--Get the containers of the splitter control
        o_container_top = o_split->top_left_container.
        o_container_bot = o_split->bottom_right_container.
      ENDIF.
      CREATE OBJECT o_alvgrid
         EXPORTING
           i_parent = o_container_bot.
    *-- Print Top of Page
      PERFORM f0041_top_of_page.
    ENDFORM.                    " f0040_create_object
    <b>&----
    *&      Form  f0041_top_of_page</b>
    FORM f0041_top_of_page .
      DATA: lws_text  TYPE sdydo_text_element.
      IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    *-- Object for HTML top container
        CREATE OBJECT o_html
            EXPORTING style            = 'ALV_GRID'
                      background_color = 35.
    *-- Top of Page
        CALL METHOD o_alvgrid->list_processing_events
          EXPORTING
            i_event_name = 'TOP_OF_PAGE'
            i_dyndoc_id  = o_html.
    *-- Total Record Text
        CALL METHOD o_html->add_text
          EXPORTING
            text         = text-014
            sap_emphasis = text-017.
        CALL METHOD o_html->add_gap
          EXPORTING
            width = 8.
    **-- Total record Value
        lws_text = cnt_total.
        CALL METHOD o_html->add_text
          EXPORTING
            text         = lws_text
            sap_emphasis = text-017.
        CLEAR  lws_text.
        CALL METHOD o_html->new_line
          EXPORTING
            repeat = 1.
    **-- Total Success text
        CALL METHOD o_html->add_text
          EXPORTING
            text         = text-015
            sap_emphasis = text-017
            fix_lines    = c_x.
        CALL METHOD o_html->add_gap
          EXPORTING
            width = 12.
        lws_text = cnt_success.
        CALL METHOD o_html->add_text
          EXPORTING
            text         = lws_text
            sap_emphasis = text-017
            fix_lines    = c_x.
        CLEAR  lws_text.
        CALL METHOD o_html->new_line
          EXPORTING
            repeat = 1.
    *-- Total Failed text
        CALL METHOD o_html->add_text
          EXPORTING
            text         = text-016
            sap_emphasis = text-017
            fix_lines    = c_x.
        CALL METHOD o_html->add_gap
          EXPORTING
            width = 16.
        lws_text = cnt_failed.
        CALL METHOD o_html->add_text
          EXPORTING
            text         = lws_text
            sap_emphasis = text-017
            fix_lines    = c_x.
        CLEAR  lws_text.
    *-- Display Report Header
    <b>    CALL METHOD o_html->display_document
          EXPORTING
            parent = o_container_top.</b>
      ENDIF.
    ENDFORM.                    " f0041_top_of_page
    *&      Form  f0050_field_catalog
    FORM f0050_field_catalog  TABLES   p_fieldcat STRUCTURE lvc_s_fcat
                              USING value(p_structure).
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = p_structure
        CHANGING
          ct_fieldcat            = p_fieldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
        MESSAGE i000(zo_spa) WITH text-017.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " f0050_field_catalog
    *&      Form  f0070_layout
    FORM f0070_layout .
      wa_layout-zebra      = c_x.
      wa_layout-cwidth_opt = c_x.
    ENDFORM.                    " f0070_layout
    *&      Form  f0080_display_list
    FORM f0080_display_list  TABLES  p_output
                                     p_fieldcat
                             USING value(p_layout).
    *-- Display Report
      CALL METHOD o_alvgrid->set_table_for_first_display
        EXPORTING
          i_save                        = 'A'
          is_layout                     = p_layout
        CHANGING
          it_outtab                     = p_output[]
          it_fieldcatalog               = p_fieldcat[]
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE i000(zo_spa) WITH text-022.    " Error in Displaying
        LEAVE LIST-PROCESSING.
      ENDIF.
    **-- Create Event object
      CREATE OBJECT o_event_receiver.
      SET HANDLER o_event_receiver->handle_print_top_of_page
                                     FOR o_alvgrid.
    ENDFORM.                    " f0080_display_list
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE user_command_0100 INPUT.
      ok_code = sy-ucomm.
      CASE ok_code.
        WHEN 'EXIT' OR  'CANC'.
          PERFORM f4000_free_objects:
                   USING o_alvgrid 'ALV' text-031,
                   USING o_dockingcontainer 'DOCKING' text-032.
          LEAVE PROGRAM.
        WHEN 'BACK'.
          PERFORM f4000_free_objects:
                   USING o_alvgrid 'ALV' text-031,
                   USING o_dockingcontainer 'DOCKING' text-032.
          SET SCREEN '0'.
          LEAVE SCREEN.
        WHEN OTHERS.
          PERFORM f4000_free_objects:
                    USING o_alvgrid 'ALV' text-031,
                    USING o_dockingcontainer 'DOCKING' text-032.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  f4000_free_objects
    FORM f4000_free_objects  USING pobject
                            value(ptype)
                            value(ptext) TYPE c.
      DATA: lo_objectalv TYPE REF TO cl_gui_alv_grid.
      CASE ptype.
        WHEN 'ALV'.
          lo_objectalv = pobject.
          IF NOT ( lo_objectalv IS INITIAL ).
            CALL METHOD lo_objectalv->free
              EXCEPTIONS
                cntl_error        = 1
                cntl_system_error = 2
                OTHERS            = 3.
            CLEAR: pobject, lo_objectalv.
            PERFORM f4010_error_handle USING ptext.
          ENDIF.
        WHEN 'DOCKING'.
          DATA: lo_objectdock TYPE REF TO cl_gui_docking_container.
          lo_objectdock = pobject.
          IF NOT ( lo_objectdock IS INITIAL ).
            CALL METHOD lo_objectdock->free
              EXCEPTIONS
                cntl_error        = 1
                cntl_system_error = 2
                OTHERS            = 3.
            CLEAR: pobject, lo_objectdock.
            PERFORM f4010_error_handle USING ptext.
          ENDIF.
        WHEN OTHERS.
          sy-subrc = 1.
          PERFORM f4010_error_handle
                       USING text-031.
      ENDCASE.
    ENDFORM.                    " f4000_free_objects
    *&      Form  f4010_error_handle
    FORM f4010_error_handle  USING value(ptext) TYPE c.
      IF sy-subrc NE 0.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            titel = text-031
            txt2  = sy-subrc
            txt1  = ptext.
      ENDIF.
    ENDFORM.                    " f4010_error_handle
    Reward points if this Helps.
    Manish

  • Horizontal Scroll bar Is not working iN REUSE_ALV_BLOCK_LIST

    Hi Experts,
    I am trying to create a reprot by using REUSE_ALV_BLOCK_LIST_APPEND, REUSE_ALV_BLOCK_LIST_DISPLAY.  I have 20 fields to display there, but here last two fields are coming in next row. But I need it it in one line with scroll bar. Cna anybody help me for that.
    Either I should use any other FM to display blocks ( 2 tables) or there is any OOps based FM for this with USER_COMMAND.
    Your help will be beneficial for me.
    Thanks a lot in advance.
    Edited by: Moni Bindal on Feb 10, 2009 7:32 AM

    Hello Moni,
    For increasing the length of columns
    try the below code while building the fieldcat,
    F_FIELDCAT-COL_POS = 1.
    F_FIELDCAT-FIELDNAME = 'EBELN'.
    F_FIELDCAT-TABNAME = 'IT_EKKO'.
    F_FIELDCAT-REF_FIELDNAME = 'EBELN'.
    F_FIELDCAT-REF_TABNAME = 'EKKO'.
    F_FIELDCAT-KEY = ''.
    F_FIELDCAT-EMPHASIZE = 'C510'.
    F_FIELDCAT-LOWERCASE = 'X'.
    F_FIELDCAT-SELTEXT_M = 'PURCHAGE DOCUMENT NUMBER'.
    FIELDCAT-OUTPUTLEN = 20.
    F_FIELDCAT-HOTSPOT = 'X'.
    F_FIELDCAT-DO_SUM = 'X'.
    APPEND I_FIELDCAT TO I_FIELDCAT.
    Important
    FIELDCAT-OUTPUTLEN = 20.
    if you are generating the field catalog using FM "REUSE_ALV_FIELDCATALOG_MERGE" then,
    read the field catalog table using the field names and modify the fieldlength
    read table F_FIELDCAT with key FIELDNAME = 'MAKTX'.
    F_FIELDCAT-OUTPUTLEN = 40.
    modify F_FIELDCAT index sy-tabix.
    OR
    as I suggested earlier, you can shift the block with highest width to top, so all other blocks will also be displayed properly without wrapping to next line.

  • SharePoint 2010, unable to see the site vertical scroll bar in Safari and Mozilla Firefox

    Hi,
    I am not able to see the sharepoint site vertical scroll bar in Safari and Mozilla firefox in window OS as well as  Mac OS , even I have tried with various option of the browser but still not able to see the vertical scroll bar.
    I have tried to check with other sharepoint site in Windows OS and found that I can see others sites vertical scroll bar in Safari and Mozilla firefox , Please let me know why I am not able to see for my sharepoint sites.
    Thanks
    Roopak

    Screen in jammed or how it looks without vertical scroll bar ? Check with site master page if you have modified anything related to  vertical bar or else Try in other system and check if you are able to see vertical bar . 
    Let us know your result 
    Whenever you see a reply and if you think is helpful, click &quot;Vote As Helpful&quot;! And whenever you see a reply being an answer to the question of the thread, click &quot;Mark As Answer

  • Text editing window expands instead of creating vertical scroll bar

    In the last few days, I have noticed that when I try to edit or post to Wordpress.com the vertical scroll bar no longer appears on the text editing box. Instead the box just gets progressively larger which makes it very difficult to get to other items on the WordPress editing screen, such as tags and categories. This problem seems to have arisen during the v31.0 auto-upgrade. Is anybody else having this issue and what steps can I take to solve it? (FYI, I tried modifying the setting described in another response about a similar issue using the about:config screen, with no success.)

    I don't know whether your dashboard has the "Visual" and "Text" buttons, but I believe the Visual uses CKEditor or another WYSIWYG editor and the Text editor might be a simpler design. Are both affected?
    I searched around to see whether I could find Wordpress.com support threads or other stories about it and I can't. So I'll fall back on some general suggestions:
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * (menu bar) Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove WordPress.com cookies without affecting other sites.
    Then try reloading the page. Does that help?
    To rule out extensions as a possible culprit, could you try the site in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions, some advanced features, and some custom settings. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * (menu bar) Help menu > Restart with Add-ons Disabled
    Note: Flash and other plugins still run
    After Firefox closes, a small dialog should appear: click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • Vertical Scroll Bar on the device display

    Hello,
    I had the problem with both horizontal and vertical scroll bars. Managed to get rid of the horizontal scroll bas using the parameters ~itsmobileelemfactor and ~itsmobileelemunits but the vertical scroll bar is still there. As our transactions are developed internally, I managed to sqeeze the screen elements but still the vertical scroll bars are there.
    I am testing with Intermec CK3 device with Intermec Browser.
    I was going thru this forum and someone has suggested to modify the CSS.
    Can someone help me which html parameters are required and under which css class e.g. font size, line-height etc to reduce the overall screen size? I am not good in HTML.
    Thanks in advance.
    Regards
    Narottam

    Hi Oisin,
    Parameters in SE80:
    ~GENERATEDYNPRO = 1
    ~ITSMOBILE = 1
    ~SOURCES = ZZITS_IB_LM00,ITSMOBILE01,ITSMOBILE
    ~THEME = 99
    ~TRANSACTION = LM01
    Parameters in SICF:
    ~ITSMOBILE = 1
    ~TRANSACTION = LM01
    ~THEME = 99
    ~SOURCES = ZZITS_IB_LM00, ITSMOBILE01,ITSMOBILE
    ~POPUPS = 1
    ~WEBTRANSACTIONTYPE = EWT
    ~ITSMOBILEDEVICEINCLUDE = ZZ_IBROWSE
    ~ITSMOBILEELEMFACTOR = 8
    ~ITSMOBILEELEMUNIT = px
    I know you helped me earlier and provided two OSS notes. Those nores are installed.
    Again, please let me know what I am missing to get rid of the vertical scroll bar. Strictly we have followed 16X20 screen size which is SAP RF standard.
    Regards
    Narottam

  • Table Grid resizing,How to avoid getting scroll bar in the browser

    Hi All,
    Requirement is to enable Grid Resizing feature in the Table UI element. The table will have  approx 12-30 columns
    For providing this feature on the table UI element, we have set the following properties
    'ScrollableColCount' Property of table UI is set to -1.
    'Resizable' property of each column is set to true.
    This will remove the scrollbar at table level and all the columns will be shown on the screen at one time.
    Problem encountered:
    1. Horizontal  scroll bar will be introduced on the screen.We tried giving width in pixels  to individual column grid but unable to eliminate this scroll bar in the screen.   
    2. Also the resizing properties modified for a table grid will be applied on the similar task screen having table UI element.
       For Example: In GP Workflow,if USer1 holds 2 task(Task A and B) of an application. If he resizes the column of the table in A task then these changes will be reflected in the B task table UI also.
    Please provide pointers on this.
    Thanks and Regards,
    Pradeep

    Hi,
    In table set tablecellEditor wrapping property to true,by default its false.
    By this you can get value in many rows(per row size is depend on whatever u have given for column width).
    this way you can avoid scroll bar.
    Regards
    Trilochan

  • JTable can't display column names and scroll bar in JDialog !!

    Dear All ,
    My flow of program is JFrame call JDialog.
    dialogCopy = new dialogCopyBay(frame, "Bay Name Define", true, Integer.parseInt(txtSourceBay.getText()) ,proVsl ,300 ,300);
    dialogCopy.setBounds(0, 0, 300, 300);
    dialogCopy.setVisible(true);        Then,I set the datasource of JTable is from a TableModel.
    It's wild that JTable can diplay the data without column names and scroll bar.
    I have no idea what's going wrong.Cause I follow the Sun Tutorial to code.
    Here with the code of my JDialog.
    Thanks & Best Regards
    package com.whl.panel;
    import com.whl.vslEditor.vslDefine;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Frame;
    import javax.swing.JDialog;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    public class dialogCopyBay extends JDialog {
        vslDefine glbVslDefine;
        int lvCnt = -1;
        JTable tableCopyBay;
        int bgnX = 0;
        int bgnY = 30;
        int tableWidth = 100;
        int tableHeight = 100;
        public dialogCopyBay(Frame frame, String title, boolean modal, int sourceBay,
                vslDefine pVslDefine, int ttlWidth, int ttlHeight) {
            super(frame, title, true);
            Container contentPane = getContentPane();
            System.out.println("dialogCopyBay Constructor");
            glbVslDefine = null;
            glbVslDefine = pVslDefine;
            copyBayModel copyBay = new copyBayModel((glbVslDefine.getVslBayStructure().length - 1),sourceBay);
            tableCopyBay = new JTable(copyBay);
            tableCopyBay.setPreferredScrollableViewportSize(new Dimension(tableWidth, tableHeight));
            JScrollPane scrollPane = new JScrollPane(tableCopyBay);
            scrollPane.setViewportView(tableCopyBay) ;
            tableCopyBay.setFillsViewportHeight(true);
            tableCopyBay.setBounds(bgnX, bgnY, tableWidth, tableHeight);
            tableCopyBay.setBounds(10, 10, 100, 200) ;
            contentPane.setLayout(null);
            contentPane.add(scrollPane);
            contentPane.add(tableCopyBay);
        class copyBayModel extends AbstractTableModel {
            String[] columnNames;
            Object[][] dataTarget;
            public copyBayModel(int rowNum ,int pSourceBay) {
                columnNames = new String[]{"Choose", "Bay Name"};
                dataTarget = new Object[rowNum][2];
                for (int i = 0; i <= glbVslDefine.getVslBayStructure().length - 1; i++) {
                    if (pSourceBay != glbVslDefine.getVslBayStructure().getBayName() &&
    glbVslDefine.getVslBayStructure()[i].getIsSuperStructure() == 'N') {
    lvCnt = lvCnt + 1;
    dataTarget[lvCnt][0] = false;
    dataTarget[lvCnt][1] = glbVslDefine.getVslBayStructure()[i].getBayName();
    System.out.println("lvCnt=" + lvCnt + ",BayName=" + glbVslDefine.getVslBayStructure()[i].getBayName());
    public int getRowCount() {
    return dataTarget.length;
    public int getColumnCount() {
    return columnNames.length;
    public String getColumnName(int col) {
    return columnNames[col];
    public Object getValueAt(int rowIndex, int columnIndex) {
    return dataTarget[rowIndex][columnIndex];
    public Class getColumnClass(int c) {
    return getValueAt(0, c).getClass();
    public boolean isCellEditable(int row, int col) {
    if (col == 1) {
    // Bay Name Not Allow To modify
    return false;
    } else {
    return true;
    public void setValueAt(Object value, int row, int col) {
    dataTarget[row][col] = value;
    fireTableCellUpdated(row, col);

    Dear DB ,
    I am not sure what you mean.
    Currently,I don't undestand which code is error.
    And I also saw some example is add JTable and JScrollPane in JDialog.
    Like Below examle in Sun tutorial
    public class ListDialog extends JDialog implements MouseListener, MouseMotionListener{
        private static ListDialog dialog;
        private static String value = "";
        private JList list;
        public static void initialize(Component comp,
                String[] possibleValues,
                String title,
                String labelText) {
            Frame frame = JOptionPane.getFrameForComponent(comp);
            dialog = new ListDialog(frame, possibleValues,
                    title, labelText);
         * Show the initialized dialog. The first argument should
         * be null if you want the dialog to come up in the center
         * of the screen. Otherwise, the argument should be the
         * component on top of which the dialog should appear.
        public static String showDialog(Component comp, String initialValue) {
            if (dialog != null) {
                dialog.setValue(initialValue);
                dialog.setLocationRelativeTo(comp);
                dialog.setVisible(true);
            } else {
                System.err.println("ListDialog requires you to call initialize " + "before calling showDialog.");
            return value;
        private void setValue(String newValue) {
            value = newValue;
            list.setSelectedValue(value, true);
        private ListDialog(Frame frame, Object[] data, String title,
                String labelText) {
            super(frame, title, true);
    //buttons
            JButton cancelButton = new JButton("Cancel");
            final JButton setButton = new JButton("Set");
            cancelButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ListDialog.dialog.setVisible(false);
            setButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ListDialog.value = (String) (list.getSelectedValue());
                    ListDialog.dialog.setVisible(false);
            getRootPane().setDefaultButton(setButton);
    //main part of the dialog
            list = new JList(data);
            list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
            list.addMouseListener(new MouseAdapter() {
                public void mouseClicked(MouseEvent e) {
                    if (e.getClickCount() == 2) {
                        setButton.doClick();
            JScrollPane listScroller = new JScrollPane(list);
            listScroller.setPreferredSize(new Dimension(250, 80));
    //XXX: Must do the following, too, or else the scroller thinks
    //XXX: it's taller than it is:
            listScroller.setMinimumSize(new Dimension(250, 80));
            listScroller.setAlignmentX(LEFT_ALIGNMENT);
    //Create a container so that we can add a title around
    //the scroll pane. Can't add a title directly to the
    //scroll pane because its background would be white.
    //Lay out the label and scroll pane from top to button.
            JPanel listPane = new JPanel();
            listPane.setLayout(new BoxLayout(listPane, BoxLayout.Y_AXIS));
            JLabel label = new JLabel(labelText);
            label.setLabelFor(list);
            listPane.add(label);
            listPane.add(Box.createRigidArea(new Dimension(0, 5)));
            listPane.add(listScroller);
            listPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    //Lay out the buttons from left to right.
            JPanel buttonPane = new JPanel();
            buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.X_AXIS));
            buttonPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));
            buttonPane.add(Box.createHorizontalGlue());
            buttonPane.add(cancelButton);
            buttonPane.add(Box.createRigidArea(new Dimension(10, 0)));
            buttonPane.add(setButton);
    //Put everything together, using the content pane's BorderLayout.
            Container contentPane = getContentPane();
            contentPane.add(listPane, BorderLayout.CENTER);
            contentPane.add(buttonPane, BorderLayout.SOUTH);
            pack();
        public void mouseClicked(MouseEvent e) {
            System.out.println("Mouse Click");
        public void mousePressed(MouseEvent e) {
            throw new UnsupportedOperationException("Not supported yet.");
        public void mouseReleased(MouseEvent e) {
            throw new UnsupportedOperationException("Not supported yet.");
        public void mouseEntered(MouseEvent e) {
            throw new UnsupportedOperationException("Not supported yet.");
        public void mouseExited(MouseEvent e) {
            throw new UnsupportedOperationException("Not supported yet.");
        public void mouseDragged(MouseEvent e) {
            throw new UnsupportedOperationException("Not supported yet.");
        public void mouseMoved(MouseEvent e) {
            throw new UnsupportedOperationException("Not supported yet.");
         * This is here so that you can view ListDialog even if you
         * haven't written the code to include it in a program.
    }

  • JScrollPane scroll bar trouble on rebuild

    I've been working on this for hours (about 4 hours now) without finding the right solution, so maybe someone can help. I searched through a few pages of the forum but didn't see this exact issue. And the tutorial online doesn't help much.
    I have a JPanel in a JScrollPane in a JFrame. The JFrame has it's height reduced if its over a particular size (in the test case, it gets reduced). When it first loads, it's fine. However, if I rebuild the whole JFrame (some event causes the JPanel content to change, and refresh() is called again), the window remains the same size but the vertical scroll bar extends off the bottom of the frame. If I manually resize the frame with the mouse (even by 1 pixel), the scroll bar updates and looks correct again. What is the correct way to do this? Calling revalidate() on the JScrollPane after doing the setSize() doesn't do anything. And why does it work the first time when the JFrame is first built through the Constructor?
    example code:
    public class MyFrame extends JFrame {
        public MyFrame() {
            super();
            refresh();
        private void refresh() {
            JPanel jp = new JPanel();
            jp.setLayout(new SpringLayout());
            // add some stuff to jp
            JScrollPane scrollPane = new JScrollPane(
                JScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                JScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED
            scrollPane.getViewport().add(jp);
            setContentPane(scrollPane);
            pack();
            if (getHeight() > MAX_HEIGHT) {
                setSize(getWidth(),MAX_HEIGHT);
    }

    When you have changed the content, call getRootPane().validate(); instead of pack(), as in this slightly modified version of your sample program:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MyFrame extends JFrame implements ActionListener {
        private static final int MAX_HEIGHT = 100;
        public MyFrame() {
            super();
            refresh(true);
        public static void main(String[] args) {
            MyFrame myFrame = new MyFrame();
            myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            myFrame.setVisible(true);
        private void refresh(boolean pack) {
            JPanel jp = new JPanel();
            jp.setLayout(new BoxLayout(jp,BoxLayout.Y_AXIS));
            JButton refreshButton = new JButton("Refresh");
            refreshButton.setActionCommand("refresh");
            refreshButton.addActionListener(this);
            jp.add(refreshButton);
            jp.add(new JLabel("Hello"));
            jp.add(new JLabel("There"));
            jp.add(new JLabel("Why"));
            jp.add(new JLabel("Doesn't"));
            jp.add(new JLabel("Refresh"));
            jp.add(new JLabel("Work"));
            JScrollPane scrollPane = new JScrollPane(
                ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED
            scrollPane.getViewport().add(jp);
            setContentPane(scrollPane);
            if (pack) {
                pack();
            else {
                getRootPane().validate();
            if (getHeight() > MAX_HEIGHT) {
                setSize(getWidth(),MAX_HEIGHT);
        public void actionPerformed(ActionEvent ae) {
            refresh(false);
    }

  • A horizontal Scroll Bar appears when it shouldn't - how do I get rid of it?

    Operating System: WIN 8, 8.1
    I am using a website (ribbon.me) which has a built in horizontal bar on its Explore TimeMap (basically a combination of a map and calendar into a single tool) that users can grab with the cursor / mouse to move the date forward or backwards in time. There is NOT supposed to be a "standard browser scroll bar" but one is appearing in Chrome. It only appears on my brand new computer...on my old Windows 7 computer, using latest Chrome, the scroll bar doesn't appear. (Even in Internet Explorer on the new computer, the scroll bar doesnt appear...but I dislike IE and LOVE Firefox) How the heck do I get rid of this scroll bar?
    Please help!

    Application Basics
    Name: Firefox
    Version: 24.0
    User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
    Extensions
    Important Modified Preferences
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.cache.disk.smart_size_cached_value: 358400
    browser.places.smartBookmarksVersion: 4
    browser.startup.homepage_override.buildID: 20130910160258
    browser.startup.homepage_override.mstone: 24.0
    extensions.lastAppVersion: 24.0
    gfx.direct3d.last_used_feature_level_idx: 0
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1382124597
    places.history.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    privacy.sanitize.migrateFx3Prefs: true
    storage.vacuum.last.index: 1
    storage.vacuum.last.places.sqlite: 1380228821
    Graphics
    Adapter Description: Intel(R) HD Graphics Family
    Adapter Drivers: igdumdim64 igd10iumd64 igd10iumd64 igdumdim32 igd10iumd32 igd10iumd32
    Adapter RAM: Unknown
    Device ID: 0x0a16
    Direct2D Enabled: true
    DirectWrite Enabled: true (6.3.9600.16384)
    Driver Date: 10-1-2013
    Driver Version: 10.18.10.3316
    GPU #2 Active: false
    GPU Accelerated Windows: 1/1 Direct3D 10
    Vendor ID: 0x8086
    WebGL Renderer: Google Inc. -- ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: false
    AzureCanvasBackend: direct2d
    AzureContentBackend: direct2d
    AzureFallbackCanvasBackend: cairo
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: true
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10
    Version in use: 4.10
    NSS
    Expected minimum version: 3.15.1 Basic ECC
    Version in use: 3.15.1 Basic ECC
    NSSSMIME
    In reply to Nellus91:
    Expected minimum version: 3.15.1 Basic ECC
    Version in use: 3.15.1 Basic ECC
    NSSSSL
    Expected minimum version: 3.15.1 Basic ECC
    Version in use: 3.15.1 Basic ECC
    NSSUTIL
    Expected minimum version: 3.15.1
    Version in use: 3.15.1

  • Additional Data B Tab; screen#8309 scroll bar problem

    Hi
    I created additional fields to capture Quotation related information.  There are about 43 custom fields added to VBAK using append structure.
    These have modified the Screen#8309 to include all those fields.  Looking at attributes of the screen#8309, it says Occupied 31 lines and 121 columns.
    When I execute transaction VA21 and my display is average screen size, I see about 21 lines and scroll bar to see the rest of the screen.  When I click on the scroll bar, the rest of previously hidden section of the screen shows blank.
    If I maximize my screen, all the fields show up correctly.  When the screen is in a reduced size and section that become visible when we use the scroll bar remain blank.
    I compared the attributes of screen#8309 and fields I have added with other SAP Screens which are long and run into multiple screens, I don't see anything specific parameter or flag that will initialize the hidden section of the screen.
    Question is how to get the hidden section of screen to populate automatically!?
    Any help is appreciated.
    Thanks,
    Vasava Krishnamoorthy

    Found the answer ...
    OSS Note# 302497,
    There is field "Scrollable" in the field attributes of the subscreen 8309 when you edit screen 4312; this field needs to be turned on ...

  • Content canvas to stacked canvas for scroll bars

    I have a form which has more items. Initially I developed the form with content canvas(this has vertical scroll bar). now I changed this canvas to stacked canvas to get horizontal + vertical scroll bar. But I am not able to do it. Can any one please advice me how to achieve. Basically I need horizontal + veritcal scroll, so that user can easily scroll it.
    Appreciate your help.
    Thanks in Advance!!

    Hi
    This is a common task in Oracle Applications forms, the steps would be:
    - Put the context, fixed fields on content canvas, to the left of the window
    - Modify the block to show vertical scroll bar, display it on content canvas, to the right of the window
    - Accommodate remaining fields on stacked canvas, all of them from 0.0 to the right.
    - Modify stacked canvas viewport size and position to be shown in the space between the fixed fields on the content canvas and the vertical scrollbar on it, allow for space to the horizontal scrollbar
    - As Craig's answer states, modify stacked canvas property to show horizontal scrollbar

  • Add Horizontal Scroll Bar to MII Navigation

    Hello,
    We are on MII 12.1.8 build (20).
    Our client would like to see a horizontal scroll bar for the Navigation pane such that if the Name of the link is longer the navigation page scrolls horizontally but I figured that in MII 12.1 I can only wrap the names or let them expand.
    I brought in the DynamicHomePageLibrary.xsl and tried to customized but I am unable to get a proper scroll bar.
    Please guide me on how I can add a horizontal scroll bar to MII Navigation page, which lines must be added/modified in DynamicHomePageLibrary.xsl
    Thanks,
    Adarsh

    At line 308 you should see something like this:
    <xsl:attribute name="style">z-index=5;display:visible;height:100%;border:1px solid #666;padding:5px;overflow:auto</xsl:attribute>
    Try adding a css width like so:
    <xsl:attribute name="style">z-index=5;display:visible;height:100%;border:1px solid #666;padding:5px;overflow:auto; width: 250px;</xsl:attribute>
    Edited by: Michael Appleby on Aug 17, 2011 12:25 AM added lines after and before the  blocks

  • Scroll bar options in Ubuntu -- need arrow scrolling not block scrolling -- how??

    How do I modify the firefox scroll bar -- need the arrows at top and bottom. The block scrolling doesn't work well for certain sites.

    I think Firefox relies on the settings in Windows' Mouse control panel, but maybe someone else is aware of some "secret" settings.
    You might want to consider using the mouse "wheel" for scrolling the page instead of the scroll bar. Saves a lot of horizontal hand movement.
    Note that if you happen to be holding the Ctrl key when you roll the wheel, the page display will zoom. You can use Ctrl+0 (that's zero) to reset it if that happens.

Maybe you are looking for

  • A photo has been found in the iphoto library that has not been imported???

    When i open iphoto i get a message saying "a photo has been found in the iphoto library that has not been imported, would you like to import it?" I have tried what everyone is saying to do, but when i look under show package contents there is no impo

  • House bank account problem

    the problem is when i was printed the cheque, the cheque no i entered manually  is not to be updated, and also i checked the house of bank of accounts, in this next cheque no is entered here. i used to delete the mext cheque no and update.. but now a

  • How MS_PURCHASE_ORDER_REPORTING function works?

    I want to know the functionality of this function. Because i have a requeriment in the me2s transaction. I need to replace the report by a smartform. And i need to know the functionality of this function (MS_PURCHASE_ORDER_REPORTING) thanks.

  • SOAP -- XI -- JDBC-Sender

    Hi All, i am doing a synchronous scenario from Webservices to JDBC. I try to get Data from the SQL-Database (SQL-Server). But my problem is, that i have more than one SQL-Statement . I am writing a program which call the Webservice. The Webservice is

  • Oracle BAM & Oracle XE

    I am trying to install Oracle BAM 10.1.3.3.0. The OS is Windows Server 2003 Enterprise Edition and I installed Oracle Database XE version 10.2.0.1.0. I am doing this in a development environment. When I try to install BAM I'm getting the following er