Tables Horisontal Scrolling

Hellow.
I have a problem with JTable. This is code of my simple programm:
StClass.java
import javax.swing.*;
public class StClass
    public static void main(String []args)
        JFrame frm = new JFrame();
        MyTab tb = new MyTab();
        JScrollPane pn = new JScrollPane();
        pn.getViewport().add(tb, null);
        frm.getContentPane().add(pn);
        frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frm.setBounds(10,10,300,300);
        frm.show();
}MyTab.java
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.DefaultTableColumnModel;
import javax.swing.table.TableColumn;
import java.util.Vector;
import java.awt.*;
public class MyTab extends JTable
    public MyTab()
        this.setModel( DefTabModel);
        Object []R = {"1","2","3"};
        for(int i=0;i<3;i++)
            DefTabModel.addColumn("col " + String.valueOf(i));
        DefTabModel.addRow(R);
        DefTabModel.addRow(R);
        DefTabModel.addRow(R);
        DefTabModel.addRow(R);
        this.columnModel.getColumn(0).setMinWidth(140);
        this.columnModel.getColumn(1).setMinWidth(120);
        this.columnModel.getColumn(2).setMinWidth(150);
    DefaultTableModel DefTabModel = new DefaultTableModel();
}As you see: I make ScrollPane, and then I put table on it.
When there is many rows, then Vertical scrollbar appears. BUT as you see sum of width of columns is more than scrollpane width AND HORISONTAL SCROLLBAR DON't APPEARS!!!
WHAT I HAVE TO DO???

Try this
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);

Similar Messages

  • Table control scrolling issue

    hi,
          I am having a issue with table control scrolling. When i was passing less number of records (say 19 records becuase table control is having 19 lines) to table control in BDC call transaction, everything is working fine. after filling the 19 line items its not taking the next line item the page is not scrolling down. T.code is <b>GS02</b>. please suggest me. following is my code
    REPORT ZLOCK_WBS_ELEMENTS  MESSAGE-ID ZFI_RESTMT.
                           TYPES                                         *
    *types declaration for final internal table
    types: begin of ty_final,
             ryear       like zupi5a-ryear,  "Fiscal year
             rbukrs      like zupi5a-rbukrs, "Company code
             racct       like zupi5a-racct,  "Account number
             rzzps_posid like zupi5a-rzzps_posid, "WBS element
             rzzmtit     like zupi5a-rzzmtit, "MPM title
             rzzmfor     like zupi5a-rzzmfor, "MPM format
             rzzmatnr    like zupi5a-rzzmatnr, "Material number
             rzzcou      like zupi5a-rzzcou, "Country
             rzzfow      like zupi5a-rzzfow,  "Financial owner
             rzzoow      like zupi5a-rzzoow,  "Operational owner
             rzzcon      like zupi5a-rzzcon,  "Licensee Contract
             rzzloc      like zupi5a-rzzloc, "Licensor Contract
             kostl       like zupi5a-kostl,  "Cost center
             zzfam       like zupi5a-zzfam,  "Fame Number
             zzfor       like zupi5a-zzfor,  "Format
             zzprd       like zupi5a-zzprd,  "Product Line
             zzwin       like zupi5a-zzwin,  "Window group
             zzwig       like zupi5a-zzwig,  "Window
             rtcur       like zupi5a-rtcur,  "Currency Key
             tsl         like zupi5a-tsl,  "Amount Transaction currency
             hsl         like zupi5a-hsl,  "Amount Co. code currency
             ksl         like zupi5a-ksl,  "Amount Group currency
             msl         like zupi5a-msl,  "Quantity
           end of ty_final.
    Data
    data:  j_final2      type standard table of ty_final,
           v_final2      type standard table of ty_final.
    data:  wa_final2     type ty_final.
    data:  bdcdata like bdcdata occurs 0 with header line,
           messtab like bdcmsgcoll occurs 0 with header line.
    data :begin of i_values occurs 0.
            include structure setvalues.
    data :end of i_values.
    data: v_counter(3) type n value '0',
          v_from    like rgsbl-from,
          V_FROM(30) TYPE C,
          v_setname like zfi_setid_cc-setid,
          v_setid like sethier-setid,
          n type i,
          l type i,
          k type i value '1',
          p_rbukrs like zupi5a-rbukrs.
    import p_rbukrs from memory id 'bukrsid'.
    import i_final2 to j_final2 from memory id 'table'.
    To eliminate duplicate WBS elements to be stored into the sets
    v_final2 = j_final2.
    sort v_final2 by rzzps_posid.
    delete adjacent duplicates from v_final2 comparing rzzps_posid.
    select single setid into v_setname
           from zfi_setid_cc
           where rbukrs EQ p_rbukrs.
    IF sy-subrc <> 0.
      MESSAGE E005.
    ENDIF.
    *write 'ZFIRESTATEMENT' to v_setname.
    call function 'G_SET_GET_ID_FROM_NAME'
         EXPORTING
              shortname = v_setname
         IMPORTING
              new_setid = v_setid.
    call function 'G_SET_TREE_IMPORT'
         EXPORTING
              client     = sy-mandt
              langu      = sy-langu
              setid      = v_setid
         TABLES
              set_values = i_values.
    describe table i_values lines n.
    describe table v_final2 lines l.
    write n to v_counter.
    clear bdcdata.
    refresh bdcdata.
    perform bdc_dynpro      using 'SAPMGSBM' '0105'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RGSBM-SHORTNAME'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    *perform bdc_field       using 'RGSBM-SHORTNAME'
                                 'ZFIRESTATEMENT'.
    perform bdc_field       using 'RGSBM-SHORTNAME'
                                  v_setname.
    loop at v_final2 into wa_final2.
       v_counter = v_counter + 1.
      perform bdc_dynpro      using 'SAPMGSBM' '0115'.
      concatenate 'RGSBL-FROM(' v_counter ')' into v_from.
      perform bdc_field     using 'BDC_CURSOR'
                                  v_from.
      perform bdc_field     using 'BDC_OKCODE'
                                  '/00'.
      perform bdc_field     using 'RGSBS-TITLE'
                                  'FI Restatement-WBS locking'.
      perform bdc_field     using v_from
                                   wa_final2-rzzps_posid.
    endloop.
    perform bdc_dynpro      using 'SAPMGSBM' '0115'.
    perform bdc_field       using 'BDC_CURSOR'
                                  v_from.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    perform bdc_field       using 'RGSBS-TITLE'
                                  'FI Restatement-WBS locking'.
    perform bdc_dynpro      using 'SAPMGSBM' '0105'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/EBACK'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RGSBM-SHORTNAME'.
    call transaction 'GS02'
      using bdcdata
      mode 'A'
      update 'S'
      messages into messtab.
           Start new screen                                              *
    form bdc_dynpro using program dynpro.
      clear bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      append bdcdata.
    endform.
           Insert field                                                  *
    form bdc_field using fnam fval.
      if fval <> ' '.
        clear bdcdata.
        bdcdata-fnam = fnam.
        bdcdata-fval = fval.
        append bdcdata.
      endif.
    endform.
    this is working fine when they r less than 19 line items. please suggest me with the logic when it is more than 19 line items.

    Hi,
    Just try to increase the table control lines before display.
    v_counter = n + 10.

  • How to exclude Table`s  scroll bar from Drag Source

    Hi
    i have an af:table inside other af:table as its column like below sample
    and user can drag inner table and drop it to other row of outer table but when user click on the scrollbar of inner table to scrolling the inner table selected as drag source and user con not scroll inner table
    so is it possible to exclude scroll bars of table from drag source?
    depart Id
    Dep name
    Emp
    dep1
    IT
    emp Name
    emp email
    emp Tel
    jan
    [email protected]
    8990
    dav
    [email protected]
    8844
    dep2
    Finance
    emp Name
    emp email
    emp Tel
    smit
    [email protected]
    8745
    mary
    [email protected]
    8952

    Hi,
    Always mention your JDev version.
    As Timo mentioned, it would be easier for you if you use a treeTable. Any specific reasons why you don't want to use it? If you want to do it through iterator, you could also use a grid layout (depends on your JDev version) to make it look like a grid.
    -Arun

  • Table Control Scrolling issue in Module Pool

    Hi,
    I've done table control. From Selection screen i've 3 buttons, if we'll press on one button one table control is visible. There if i do scrolling up to 10 records and i come back to selection and press another button again in table control scrolling is at previous place only. May be its nt refreshing.
    Kinldy help on this issue.
    With Regards,
    jack.

    hi,
    i've done like below. But no result.

  • 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.

  • How to scroll the contents of the table without scrolling tab/colmn headers

    how to scroll the contents of the table without scrolling table and column headers in WebDynPro.
    I have set the table properties as
    footer visible = false;
    Visible row count = -1;
    and have put the table into scroll container with some specified height.
    I dont want to use the footer as I have used many tables in the container in same row and with same <b>Data node</b>.
    I have used many tables in same row and with same context node to differentiate it with two different colors for that specific columns.
    I am using <b>NW 04</b> and not NW04s.
    Please help me regarding this.

    To print the whole data of your table you have to do it yourself. The showPrintablePageBehavior only print what you actually see on the page. It does not traverse the data.
    The normal way to handle tis is to use a report generator (like itext, jasper report, fop ...).
    Timo

  • Af:table no scroll

    I am using a table with detailsStamp form in it. I dont want my table to scroll instead the i want the broswer to scroll. How can I do that ?
    Thanks

    My Table is already in the table group layout with scroll . Still the table is taking a fixed height. See below is my code. When I am expanding the form in the detailStamp of the table , I want the browser default scroll to appear not the table scroll.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:panelStretchLayout id="psl3">
    <f:facet name="center">
    <af:panelGroupLayout layout="scroll" id="pgl1"
    inlineStyle="border-color:Red; border-width:thick;">
    <af:panelHeader text="RmsResProjectsDemo" id="ph1">
    <af:query id="qryId1" headerText="Search" disclosed="true"
    value="#{bindings.ProjectSearchQuery.queryDescriptor}"
    model="#{bindings.ProjectSearchQuery.queryModel}"
    queryListener="#{bindings.ProjectSearchQuery.processQuery}"
    queryOperationListener="#{bindings.ProjectSearchQuery.processQueryOperation}"
    resultComponentId="::resId1"/>
    </af:panelHeader>
    <af:table value="#{bindings.RmsResProjectsDemoView1.collectionModel}"
    var="row"
    rows="#{bindings.RmsResProjectsDemoView1.rangeSize}"
    emptyText="#{bindings.RmsResProjectsDemoView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.RmsResProjectsDemoView1.rangeSize}"
    rowBandingInterval="0" id="resId1"
    styleClass="AFStretchWidth" autoHeightRows="-1">
    <af:column sortProperty="ProjectNumber" sortable="false"
    headerText="#{bindings.RmsResProjectsDemoView1.hints.ProjectNumber.label}"
    id="resId1c1" styleClass="AFStretchWidth">
    <af:outputText value="#{row.ProjectNumber}" id="ot5">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.RmsResProjectsDemoView1.hints.ProjectNumber.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="ProjectName" sortable="false"
    headerText="#{bindings.RmsResProjectsDemoView1.hints.ProjectName.label}"
    id="resId1c2">
    <af:outputText value="#{row.ProjectName}" id="ot9"/>
    </af:column>
    <f:facet name="detailStamp">
    <af:panelFormLayout id="pfl1">
    <af:inputText value="#{row.bindings.ProjectNumber.inputValue}"
    label="#{bindings.RmsResProjectsDemoView1.hints.ProjectNumber.label}"
    required="#{bindings.RmsResProjectsDemoView1.hints.ProjectNumber.mandatory}"
    columns="#{bindings.RmsResProjectsDemoView1.hints.ProjectNumber.displayWidth}"
    maximumLength="#{bindings.RmsResProjectsDemoView1.hints.ProjectNumber.precision}"
    shortDesc="#{bindings.RmsResProjectsDemoView1.hints.ProjectNumber.tooltip}"
    id="it8">
    <f:validator binding="#{row.bindings.ProjectNumber.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.RmsResProjectsDemoView1.hints.ProjectNumber.format}"/>
    </af:inputText>
    <af:inputText value="#{row.bindings.ProjectName.inputValue}"
    label="#{bindings.RmsResProjectsDemoView1.hints.ProjectName.label}"
    required="#{bindings.RmsResProjectsDemoView1.hints.ProjectName.mandatory}"
    columns="#{bindings.RmsResProjectsDemoView1.hints.ProjectName.displayWidth}"
    maximumLength="#{bindings.RmsResProjectsDemoView1.hints.ProjectName.precision}"
    shortDesc="#{bindings.RmsResProjectsDemoView1.hints.ProjectName.tooltip}"
    id="it2">
    <f:validator binding="#{row.bindings.ProjectName.validator}"/>
    </af:inputText>
    <af:inputText value="#{row.bindings.ProjectDescription.inputValue}"
    label="#{bindings.RmsResProjectsDemoView1.hints.ProjectDescription.label}"
    required="#{bindings.RmsResProjectsDemoView1.hints.ProjectDescription.mandatory}"
    columns="#{bindings.RmsResProjectsDemoView1.hints.ProjectDescription.displayWidth}"
    maximumLength="#{bindings.RmsResProjectsDemoView1.hints.ProjectDescription.precision}"
    shortDesc="#{bindings.RmsResProjectsDemoView1.hints.ProjectDescription.tooltip}"
    id="it30">
    <f:validator binding="#{row.bindings.ProjectDescription.validator}"/>
    </af:inputText>
    <f:facet name="footer">
    <af:commandButton text="Submit" id="cb1"/>
    </f:facet>
    </af:panelFormLayout>
    </f:facet>
    </af:table>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Hide the Table Row Scroller

    Hello ,
    I am on EP7.0 NW04s and want to hide the Table Row Scroller ...the one which says "Row 1 of 4" for eg: ....is there any table property I can modify to achieve this..
    Any help would be highly appreciated.

    Hi Subahsh,
    For Hiding RowScroller, footerVisible setting will not work.
    If you want to hide the Row scroller then do following steps
    (1).IWDTable t = (IWDTable)view.getElemnt("Table");
    (2)t.setVisibleRows(2);
    (3)then delete the rows which you do not want to show..
    and before deleting copy it some where.
    Or the other way to handle the problem is :-
    TableNode----
    > ActualNode create both in the context
    Keep all contents in your actual Node.
    And when you want to update the number of rows...
    then invalidate TableNode( it will clear the table node).
    And the again copy Elements from ActualNode.
    And keep a count of the number of elements, set the visibility of row to that count..
    In this way the scroller will never come...
    See basic of this concept is that you have to keep the VisibleRow setting same as number of elements in your table.
    feel free to ask queries
    Regards,
    Praveen
    Message was edited by:
            Praveen Kumar Pandey

  • Table column scrolling

    Hi experts,
    i have 2 tables on one view, both has the same amount of columns. I want to make the tables vertical scrollable, but i need the tables to scroll the columns synchronously.
    That means that in both tables the same columns should be visible if the user scrolls in one of the tables.
    Is this possible and if yes, how?
    Thanks & regards
    Jan

    >
    Abhimanyu Lagishetti wrote:
    > There is no property called firstVisibleCol like firstVisibleRow, also the onScroll event will not get triggered on horizantal scrolling, i don't think it is possible
    >
    > Abhi
    I'm working on 7.0 EnhP1 so I probably have functionality you don't have yet, but in my system there is a table parameter called firstVisibleScrollableCol although it is still true that the onScroll only fires for the normal row scrolling.  I would have to experiement - but assuming you has 7.0 EnhP1 you might be able to use the WDDOMODIFYVIEW event set a two different context nodes that are each bound to the firstVisibleScrollableCol property of your two internal tables.  However before EnhP1 I don't think this requirement would be possible.

  • Issue in table control scroll bar

    Hi experts,
    In Table control I used the following code,
    Refresh control 'TCDATA' from screen '200'.
    If i use this code i cant able to  scroll the data when the table control having multiple lines.
    Can any one suggest me?. what i need to do for this..
    Edited by: sai.bala on Sep 17, 2010 12:22 PM

    Hi ,
    try this...
    Refresh control 'TCDATA' from screen '200'.
    "write this statement below refresh table control
    * Describe lines of internal table to extend the table control Vertical
    * scroll bar
      DESCRIBE TABLE <tablename> LINES TCDATA-lines.
    prabhudas

  • BDC Recording For J1IG with Table Control Scroll bar

    Dear Friends,
    I am doing BDC program for J1IG Transaction after done recording.
    As you knows that, In J1IG transaction max. 11 materials are shows in table control at a time and if more records are there, then we have to scroll down manually so after that, we can see the records.
    Now my BDC program runs upto 11 materials but when more than 11 materials, selection is coming on first material only and cursor not showing 12th material.
    So i think page down is not working for that issue.
    I have seen lots of search forum for that but not getting the proper answer.
    Please reply.
    Regards,
    Shivam.

    Dear Dinu,
    For better understanding please see the code.
    So you suggest what should i have to do?.
    LOOP AT jtab INTO wb.
         LOOP AT itab INTO wa WHERE mblnr EQ wb-mblnr.
           CLEAR : flag.
           AT NEW mblnr.
             flag = 'X'.
             CLEAR : cnt, var1, var2.
           ENDAT.
           cnt = cnt + 1.
           IF flag EQ 'X'.
             PERFORM bdc_dynpro      USING 'SAPMJ1IG' '0100'.
             PERFORM bdc_field       USING 'BDC_OKCODE'
                                       '=ECAP'.
             PERFORM bdc_dynpro      USING 'SAPMJ1IG' '0200'.
             PERFORM bdc_field       USING 'BDC_CURSOR'
                                       'T_HEADER-EXDAT'.
             PERFORM bdc_field       USING 'BDC_OKCODE'
                                       '/00'.
             PERFORM bdc_field       USING 'J_1IEXCHDR-EXGRP'
                                       wa-exgrp.
             PERFORM bdc_field       USING 'T_HEADER-MBLNR'
                                       wa-mblnr.
             PERFORM bdc_field       USING 'T_HEADER-MJAHR'
                                       wa-mjahr.
             PERFORM bdc_field       USING 'T_HEADER-EXNUM'
                                       wa-exnum.
             PERFORM bdc_field       USING 'T_HEADER-EXDAT'
                                       wa-exdat.
             PERFORM bdc_dynpro      USING 'SAPMJ1IG' '0200'.
             PERFORM bdc_field       USING 'BDC_CURSOR'
                                       'J_1IEXCHDR-EXGRP'.
             PERFORM bdc_field       USING 'BDC_OKCODE'
                                       '=DETL'.
           ENDIF.
           CONCATENATE 'T_ITEM-ZEILE(' cnt ')'  INTO var1.
           CONCATENATE 'T_ITEM-SELECTION(' cnt ')'  INTO var2.
           PERFORM bdc_dynpro      USING 'SAPMJ1IG' '0300'.
           PERFORM bdc_field       USING 'BDC_CURSOR'
                                     var1.           "'T_ITEM-ZEILE(01)'.
           PERFORM bdc_field       USING 'BDC_OKCODE'
                                     '=MORE'.
           PERFORM bdc_field       USING var2 "'T_ITEM-SELECTION(01)'
                                     'X'. "record-selection_01_019.
           PERFORM bdc_dynpro      USING 'SAPMJ1IG' '0400'.
           PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'T_LOCAL_EXC-EXADDRATE1(01)'.
           PERFORM bdc_field       USING 'BDC_OKCODE'
                                     '/00'.
           PERFORM bdc_field       USING 'T_LOCAL_EXC-MENGE(01)'
                                     wa-menge.
           PERFORM bdc_field       USING 'T_LOCAL_EXC-EXBAS(01)'
                                     wa-exbas.
           PERFORM bdc_field       USING 'T_LOCAL_EXC-EXBED(01)'
                                     wa-exbed.
           PERFORM bdc_field       USING 'T_LOCAL_EXC-BEDRATE(01)'
                                     wa-bedrate.
           PERFORM bdc_field       USING 'T_LOCAL_EXC-EXAED(01)'
                                     wa-exaed.
           PERFORM bdc_field       USING 'T_LOCAL_EXC-AEDRATE(01)'
                                     wa-aedrate.
           PERFORM bdc_field       USING 'T_LOCAL_EXC-ECS(01)'
                                     wa-ecs.
           PERFORM bdc_field       USING 'T_LOCAL_EXC-ECSRATE(01)'
                                     wa-ecsrate.
           PERFORM bdc_field       USING 'T_LOCAL_EXC-EXADDTAX1(01)'
                                     wa-exaddtax1.
           PERFORM bdc_field       USING 'T_LOCAL_EXC-EXADDRATE1(01)'
                                     wa-exaddrate1.
           PERFORM bdc_dynpro      USING 'SAPMJ1IG' '0400'.
           PERFORM bdc_field       USING 'BDC_CURSOR'
                                     'T_LOCAL_EXC-RG23ASER(01)'.
           PERFORM bdc_field       USING 'BDC_OKCODE'
                                     '=BACK'.
         ENDLOOP.
         PERFORM bdc_dynpro      USING 'SAPMJ1IG' '0300'.
         PERFORM bdc_field       USING 'BDC_CURSOR'
                                   'T_ITEM-DOCNO(01)'.
         PERFORM bdc_field       USING 'BDC_OKCODE'
                                   '=SAVE'.
         CLEAR opt.
         opt-dismode = 'A'.
         opt-updmode = 'S'.
    *    opt-defsize = '12'.
    *    CLEAR: it_messages[], it_messages.
         CALL TRANSACTION 'J1IG' USING it_bdcdata OPTIONS FROM opt
                                       MESSAGES INTO it_messages.
         REFRESH it_bdcdata.
       ENDLOOP.
       CHECK it_messages[] IS NOT INITIAL.
       LOOP AT it_messages.
         PERFORM fill_messages USING it_messages-msgtyp
                                     it_messages-msgid
                                     it_messages-msgnr
                                     it_messages-msgv1
                                     it_messages-msgv2
                                     it_messages-msgv3
                                     it_messages-msgv4.
       ENDLOOP.
       PERFORM display_messages TABLES tmsg.

  • Table view: scroll bar issue

    Hi guru's,
    I'm having trouble with defining a table view. I'm building a KPI dashboard that should be able to hold the results of many queries. I have one query that will always return a single row. Therefore, I resized the layout of the table view so that it will only display 1 row. However, when deploying the model, I get a vertical scrollbar! The table shows the record from the query and even part of a second (empty) row and I'm able to scroll down even further. I have tried all options, but I can't get rid of the scrollbar.
    Does any of you guys have a solution?
    Best regards,
    Arno

    Hi Prachi,
    thanks for your reply! You are completely right, regarding the flex compiler. We use that one, because we get errors using the Webdynpro compiler. I'll get basis to look into it, because form view is not an option for us (but that's another topic ).
    Best regards,
    Arno

  • Table Control Scroll Bar inactive

    Hi All,
    I am facing a strange problem. I have placed a table control on my screen and have added the columns. Rest of the functionality is also fine. However, even when the number of rows in the table exceeds its height, the Vertical Scroll bar is inactive and I cannot scroll down to the hidden line items. The horizontal scroll bar is working perfectly.The color of the Vertical Scroll bar is also Dark grey (as in inactive.)
    I fail to understand what could be the reason for this? Helpful answers will be suitably rewarded
    Regards,
    Madhur

    Hi Madur,
    Try this code :
    (assume that the name of your table control is T1)
    In the screen logic you will have:
                    Loop with control T1.
                       module get_Looplines.
                    Endloop.
                        Module get_looplines.
                          Looplines = sy-loopc.
                        Endmodule.
    In the PBO of the screen you will have a module that loads the itab and determines the total number of lines read.
                   Module load_itab.
                    .      (select database table and
    append to itab)
                    describe table itab lines linecount.
                   Endmodule.
    We now have all the values to construct a scroll module.
    MODULE SCROLL INPUT.
    CASE SAVE_OK_CODE.
    WHEN 'P--'.
       T1-TOP_LINE = 1.
    WHEN 'P-'.
       T1-TOP_LINE = T1-TOP_LINE - LOOPLINES.
         IF T1-TOP_LINE < 1.
            T1-TOP_LINE = 1.
         ENDIF.
    WHEN 'P+'.
       T1-TOP_LINE = T1-TOP_LINE + LOOPLINES.
         IF T1-TOP_LINE > LINECOUNT.
            T1-TOP_LINE = LINECOUNT - LOOPLINES + 1.
         ENDIF.
    WHEN 'P++'.
       T1-TOP_LINE = LINECOUNT - LOOPLINES + 1.
    ENDCASE.
    ENDMODULE.                 " SCROLL  INPUT
        WHEN 'P--'.
          CLEAR SY-UCOMM.
          CTR1-TOP_LINE = 1.
        WHEN 'P-'.
          CLEAR SY-UCOMM.
          CTR1-TOP_LINE = CTR1-TOP_LINE - LINECOUNT1.
          IF CTR1-TOP_LINE < 1.
            CTR1-TOP_LINE = 1.
          ENDIF.
        WHEN 'P+'.
          DESCRIBE TABLE ITAB1 LINES N1.
          CTR1-TOP_LINE = CTR1-TOP_LINE + LINECOUNT1.
          IF CTR1-TOP_LINE > N1.
            CTR1-TOP_LINE = N1.
          ENDIF.
          CLEAR SY-UCOMM.
        WHEN 'P++'.
          DESCRIBE TABLE ITAB1 LINES N1.
          CLEAR SY-UCOMM.
          CTR1-TOP_LINE = N1.
    Cheers
    Sunny
    Rewrd points, if helpful

  • Table cell scroll bar overflow- why doesnt it work?

    Hi everyone.
    Ok, im have an existing document/site:
    http://www.helenbwilson.com/helen-portfolio-1.html
    I want the table cell in the left to have a scroll bar (only
    with the height part). I want the "block" of the images to have a
    height of 400px. Now, I have tried to do this, and for the most
    part got it to work-in another document:
    http://www.helenbwilson.com/CSS-test-01.html
    I am trying to replicate, but I have absolutely no idea why
    its not working now.
    I applied a css style and I want the same type of scroll, so
    when there are more images, it can have a scroll bar.
    Can anyone tell me what Im doing wrong? If I am not being
    clear, please let me know.
    Any info would be appreciated.
    Thanks
    -psy

    I think you mean something like this:
    Put this in your head:
    <style type="text/css">
    <!--
    .imageBlock {
    display: block;
    float: left;
    height: 400px;
    width: 250px;
    overflow: auto;
    background-color: #FF0000;
    -->
    </style>
    put this in your body:
    <div class="imageBlock">
    </div>
    If the table or other content you place inside your
    'imageBlock' div, is higher than 400 px, you'll get a vertical
    scrollbar.

  • Table control scroll bar issue

    how to set the scroll bar for table control for the transaction code va42 for billing plan tab.
    i have added few custom fileds for the table control, when i m re-arranging the columns for the table control, the scroll bar is fixed for one field( as standard) and the scroll bar starts from that place. how to fix the scroll bar or control the scroll bar and sets it position for the desired column.

    HI,
    Table control ahs a property called FIXED_COLS. You ave to pass the column number to this property.

Maybe you are looking for

  • External hard drive not recognized... help please.

    okay, well here is the story: my iBook G4 had its stock 30gb hard drive in it and it was running extremely low on space. so i figured i didn't want to carry around an external hard drive, therefore i would buy an internal hard drive an install it. so

  • HT2404 I just clicked on Software Updates; BUT nothing shows what's happening? How come I can't see the updates & time it will take?

    Help!  I just got this Lion, and SO many changes & not necessarily for the better ! I went to the Apple icon, but  "Software Updates" did not show ... though I had deferred installing some updates ... Finally it showed up, I clicked on it, saw the up

  • N95 - "Already in use" Error Message

    Hi, I've only had my N95 for a bit over a week now, and up until a couple of days ago, it was all working great! Then I went to read a text message on my phone and it wouldn't let me open the messages tab (either on the menu OR from standby mode). I

  • I can't MY JFrame to run out side jbuidler6

    i can't get My Jframe to compile and pop up using javaw fuction downloaded from java site. I know the rest of my code works but for some reason when i run the javaw compiler it's unable to launch the frame, An error message pops up stating"Can't find

  • Java Update does not install latest build

    Kind of an odd bug I suppose: Java Update only installs up to build 6, even though build 7 is listed on the site. It's possible that the latest build hasn't been placed on the update servers yet, though personally I think there's a problem with Java