The number of rows displayed in a JTable

Hi,
Can anyone tell me how I choose the number of rows displayed in a JTable? My table displays 25 rows, and thats a bit too many.
Thanks.

You dont need to do much.. I think you just have to initialze the table with ..
JTablt t = new JTable(rows,cols);
and make sure to make the 'rows' parameter to whatever u want. :-)
Cheers

Similar Messages

  • How to set the number of rows displayed in a classical report at runtime?

    Hi,
    Our customer has several standard client hardware configuration and would like to enable end users to choose their 'display profile' at login time. This 'display profile' would contain predefined values for these hardware configurations and supposed to set various paramters that should define the number of rows displayed in a classical report region.
    I tried to provide parameters on the report region but it refused to accept anything but numerical values. Is it possible to do this?
    Regards, Tamas

    The link is to the closest linkable point in the documentation to the description of the Number of Rows (Item) attribute.
    It sounds like you have been trying to enter—unsuccessfully—an item name or substitution string into the Number of Rows attribute. The Number of Rows (Item) attribute is the one that actually allows you to do this. Click on the flashlight icon beside it to get a list of items from the application.

  • Classic Report limit the number of rows displayed

    Hi All,
    In my application I have a classic Report which show the data of a simple query. For lay-out reasons I want to limit the number of display to 5 instead of the default 15. I've looked in several forums and they told me that I have to set the number of rows in the report attributes.
    But it did not what I want. I'm Using APEX 4.1.0 on a Oracle 11G database
    My question is: How can I limit the maximum number of rows in a classic SQL Report.

    Hamertje16 wrote:
    In my application I have a classic Report which show the data of a simple query. For lay-out reasons I want to limit the number of display to 5 instead of the default 15. I've looked in several forums and they told me that I have to set the number of rows in the report attributes.And did you do so?
    But it did not what I want. I'm Using APEX 4.1.0 on a Oracle 11G databaseHow did it not do what you want? Displayed an error? Displayed no rows? Displayed 15 rows? Displayed some other number of rows? We can only help if we fully understand the nature of the problem.
    My question is: How can I limit the maximum number of rows in a classic SQL Report.To display 5 rows per page set the report's Number of Rows attribute to *5*.
    However, pagination settings get cached for the duration of the session. For this change to be instantly visible, either log out, restart the brower, and log in again, or manually re-request the page from the browser address bar, adding 'RP' in the ClearCache position in the URL.

  • How to increase the number of row displayed in the result set.

    Hi All,
    I have a seeded oracle page OA.jsp?page=/oracle/apps/pa/structure/webui/FPStructVersionPG from projects module.
    On the above page, when we click on the financial tab to see the tasks, it shows only 180 tasks out of 298. I dont find any link on the page which would give me the rest of the tasks, overall it shows only 180 tasks.
    I checked the VO query it picks up all the 298 records.
      SELECT   *
        FROM   (SELECT   element_number,
                         element_name,
                         object_type,
                         element_version_id,
                         proj_element_id,
                         project_id,
                         display_sequence,
                       ---  milestone_flag,
                       ---  critical_flag,
                         parent_element_id,
                         relationship_type,
                         relationship_subtype,
                         summary_element_flag,
                      ----   progress_status_code,
                      ---   progress_status_meaning,
                      ---   progress_comments,
                     ---    scheduled_start_date,
                      --   scheduled_finish_date,
                         task_manager_id,
                         task_manager,
                         parent_structure_version_id,
                         wbs_level,
                         wbs_number,
                         DECODE (object_type,
                                 'PA_STRUCTURES', 'StructureVersion',
                                 'NoIcon')
                            AS structure_icon,
                       --  DECODE (critical_flag, 'Y', 'Critical', 'NoIcon')  AS critical_icon,
                     --    DECODE (milestone_flag, 'Y', 'Milestone', 'NoIcon') AS milestone_icon,
                         DECODE (relationship_type, 'L', 'Link', 'NoIcon')
                            AS link_icon,
                         DECODE (object_type, 'PA_STRUCTURES', 'Y', 'N')
                            AS disable_select_flag,
                         elem_rec_ver_number,
                         elem_ver_rec_ver_number,
                       --  elem_ver_sch_rec_ver_number,
                         DECODE (object_type,
                                 'PA_STRUCTURES', 'NoEditTaskNumber',
                                 'EditTaskNumber')
                            AS display_task_number,
                         DECODE (object_type,
                                 'PA_STRUCTURES', 'NoEditTaskName',
                                 'EditTaskName')
                            AS display_task_name,
                         DECODE (summary_element_flag,
                                 'Y', 'NoEditSchStartDate',
                                 'EditSchStartDate')
                            AS display_start_date,
                         DECODE (summary_element_flag,
                                 'Y', 'NoEditSchFinishDate',
                                 'EditSchFinishDate')
                            AS display_finish_date,
                         DECODE (object_type,
                                 'PA_STRUCTURES', 'NoEditTaskManager',
                                 'EditTaskManager')
                            AS display_task_manager,
                         DECODE (object_type, 'PA_STRUCTURES', '0', wbs_number)
                            AS outline_number,
                         element_number AS formatted_task_number,
                         element_name AS formatted_task_name,
                       --  progress_comments AS formatted_progress_comments,
                       --  scheduled_start_date AS formatted_start_date,
                      ---   scheduled_finish_date AS formatted_finish_date,
                         task_manager AS formatted_task_manager,
                      ---   status_icon_active_ind,
                       --  percent_complete_id,
                       ---  status_icon_ind,
                         NULL AS task_manager_raw,
                         DECODE (
                            task_manager,
                            NULL,
                            DECODE (summary_element_flag,
                                    'Y', '<B>' || task_manager || '</B>',
                                    task_manager)
                            AS task_manager_raw_no_link,
                         status_code,
                         status_code_meaning,
                         priority_code,
                         priority_description,
                         organization_id,
                         organization_name,
                      --   include_in_proj_prog_rpt,
                         description,
                         OBJECT_RELATIONSHIP_ID,
                         OBJECT_REC_VER_NUMBER,
                      --   pev_schedule_id,
                         parent_element_version_id,
                         STRUCTURE_TYPE_CLASS_CODE,
                         link_task_flag,
                         DISPLAY_PARENT_VERSION_ID,
                         parent_ver_rec_ver_number,
                        -- actual_start_date,
                        -- actual_finish_date,
                       --  estimated_start_date,
                      --   estimated_finish_date,
                      --   completed_percentage,
                      ---   as_of_date,
                       ---  report_version_id,
                         baseline_start_date,
                         baseline_finish_date,
                         DECODE (object_type,
                                 'PA_STRUCTURES', 'NoLinkedTaskName',
                                 'LinkedTaskName')
                            AS Linked_Task_name,
                         pm_source_name,
                         pm_source_code,
                         pm_source_reference,
                         DECODE (NVL (pm_source_name, 'Y'),
                                 'Y', NULL,
                                 pm_source_reference)
                            AS display_pm_source_ref,
                         element_name || ' (' || element_number || ')'
                            AS task_name_number,
                       --  est_sch_start_var,
                       ---  est_sch_finish_var,
                        -- act_sch_start_var,
                       --  act_sch_finish_var,
                       ---  sch_bsl_start_var,
                      ---   sch_bsl_finish_var,
                         DECODE (object_type,
                                 'PA_STRUCTURES', 'NoLinkTaskNameNumber',
                                 'LinkTaskNameNumber')
                            AS linked_task_name_number,
                      --   critical_flag_meaning,
                      --   milestone_flag_meaning,
                         work_telephone,
                         service_type_meaning,
                         service_type_code,
                         work_type_name,
                         work_type_id,
                         chargeable_meaning,
                         chargeable_flag,
                         billable_meaning,
                         billable_flag,
                         receive_project_invoice_m,
                         receive_project_invoice_flag,
                         transaction_ctrl_start_date,
                         transaction_ctrl_finish_date,
                       --  prior_percent_complete,
                      --   progress_brief_overview,
                      ---   SCHEDULE_AS_OF_DATE,
                    ----     TRANSACTION_AS_OF_DATE,
                   ---      BASELINE_AS_OF_DATE,
                     ---    ESTIMATE_AS_OF_DATE,
                      --   ACTUAL_AS_OF_DATE,
                         ACTIVE_TASK_MEANING,
                         DAYS_TO_SCH_START,
                         DAYS_TO_SCH_FINISH,
                         FINANCIAL_TASK_FLAG,
                       ---  DAYS_TO_ESTIMATE_START,
                       --  DAYS_TO_ESTIMATE_FINISH,
                       --  DAYS_SINCE_ACT_START,
                        -- DAYS_SINCE_ACT_FINISH,
                        -- FINISHED_TASK_FLAG,
                        -- FINISHED_TASK_MEANING,
                         TASK_CREATION_DATE,
                         LOWEST_TASK_MEANING,
                         TASK_TYPE_ID,
                         TASK_TYPE,
                         TASK_STATUS_CODE,
                         TASK_STATUS_MEANING,
                       --  PHASE_CODE,
                        -- PHASE_CODE_MEANING,
                        -- PLANNED_EFFORT,
                       --  WEIGHTING_PERCENTAGE,
                        -- SCHEDULED_DURATION_DAYS,
                        -- BASELINE_DURATION_DAYS,
                        -- ESTIMATED_DURATION_DAYS,
                        -- ACTUAL_DURATION_DAYS,
                         ADDRESS_ID,
                         ADDRESS1,
                         ADDRESS2,
                         ADDRESS3,
                         ADDRESS4,
                       --  WQ_ITEM_CODE,
                       --  WQ_ITEM_MEANING,
                        -- WQ_UOM_CODE,
                        -- WQ_UOM_MEANING,
                        -- WQ_PLANNED_QUANTITY,
                        -- ACTUAL_WQ_ENTRY_CODE,
                        -- ACTUAL_WQ_ENTRY_MEANING,
                        -- PROG_ENTRY_ENABLE_FLAG,
                        -- PERCENT_COMP_ENABLE_FLAG,
                        -- REMAIN_EFFORT_ENABLE_FLAG,
                        -- TASK_PROGRESS_ENTRY_PAGE_ID,
                        -- PAGE_NAME,
                        -- BASE_PERCENT_COMP_DERIV_CODE,
                        -- BASE_PERCENT_COMP_DERIV_M,
                        -- WQ_ENABLE_FLAG,
                         --PROG_ENTRY_REQ_FLAG,
                            address1
                         || ''
                         || address2
                         || ''
                         || address3
                         || ''
                         || DECODE (address4, ' , , ', '', address4)
                            work_site_full_address,
                         STRUCT_PUBLISHED_FLAG,
                         --ACTUAL_WORK_QUANTITY,
                        -- ESTIMATED_REMAINING_EFFORT,
                        -- VERSIONING_ENABLED_FLAG,
                         ---PHASE_VERSION_ID,
                         project_name,
                         project_number,
                         TASK_UNPUB_VER_STATUS_CODE,
                         DECODE (summary_element_flag, 'Y', 1, 0) AS leaf_task_flag,
                         0 AS PROJ_LEVEL_DISABLE_FLAG,
                         child_element_flag,
                         OPEN_ISSUES,
                         OPEN_CHANGE_DOCUMENTS,
                        -- phase_name,
                        -- days_until_scheduled_finish,
                         DECODE (TASK_UNPUB_VER_STATUS_CODE, 'TO_BE_DELETED', 1, 0)
                            AS to_be_deleted_image,
                         'WorkInfo' AS task_manager_called_page,
                         '-1' AS task_manager_resource_id,
                         OPEN_CHANGE_REQUESTS,
                         OPEN_CHANGE_ORDERS,
                         0 AS structure_type_flag,
                         DECODE (
                            PA_PROJ_ELEMENTS_UTILS.IS_LOWEST_LEVEL_FIN_TASK (
                               project_id,
                               element_version_id,
                               'N'
                            'N',
                            'Y',
                            'N'
                            AS FinChildElementFlag,
                         DECODE (
                            PA_PROJ_ELEMENTS_UTILS.CHECK_IS_FINANCIAL_TASK (
                               proj_element_id
                            'N',
                            1,
                            0
                            txn_dates_flag
                  FROM   pa_fin_structures_tasks_v) QRSLT
    ORDER BY   display_sequencePlease suggest how to get this done, this is oracle seeded module.
    Ashish

    Hi Ashish,
    Please check with vo.getRowCount();how many results are being fetched by vo.else substitute the vo to get vo,setMaxfetchSize().I'm not sure.Please check with this.I will be very glad if you let me know.
    Best Regards
    Krishna Priya Bandyopadhyay

  • Changing the default number of rows displayed in a interactive report

    Hi,
    I have a sql query based interactive report but i cant change the default number of pages i.e 15.
    is there any way to change the number of rows displayed.
    Thank you,
    rakesh

    Hi,
    That was very useful document that you shared, yes that is correct we can so it this way but there is another way doing it where in if you go to the report attribute section and in that there is Layout and Pagination and under
    that you can fix the number of rows, and over there we can also accept values from page item such as if the page item value changes the number of rows displayed in the report changes dynamically.
    In my report i get only pagination but not a option for layout.
    Any help will be appreciated.
    And also where i can get the links to the similar document that you have shared ?
    TY
    rakesh
    Edited by: rakesh119 on Apr 30, 2013 12:10 PM

  • Number of Rows Displayed in a SQL Report Region

    Hi,
    Just wondering whether it is possible to control the 'Number of Rows' displayed under the 'Layout and Pagination' section within the Report Attributes page.
    Basically need to know if I can programmatically control this or even better, can it be customized by the user as the user may want to see say 15 rows, 200 rows or 'All' rows of a certain region on the page. FYI, I have three different report regions on one page and want to give the user the flexibility to modify the number of rows displayed per region.
    Thanks.
    Tony.

    Tony,
    you can find that in this how-to document:
    http://www.oracle.com/technology/products/database/htmldb/howtos/howto_report_rownum.html
    Denes Kubicek

  • Number of rows displayed per page in an interactive report

    Hi,
    I'd like to know if it's possible to change the values of the select list called 'Rows' in an interactive report (which is displayed in the search bar).
    Indeed, I want to display 16 rows per page and I can only choose among the values 1, 5, 10, 15, 20, 25, 30, 50, 100, 200...
    Thank you for your reply.
    Emilie.

    Hi Tobias,
    Thank you for your help.
    I had already tried this but it's not what I want. What your are saying only limits the values in the select list (for example, if I set to 16, I can't choose values higher than 16 in the select list 'Rows' of the search bar).
    I want to limit the number of rows displayed in the interactive report to 16 per page.
    Any other idea?
    Emilie.
    Hi Emilie,
    Go: Home>Application Builder>Application 301>Page 51>Interactive Report Attributes>Search Bar>Maximum Rows Per Page
    Set to = 16
    Oracle help description: Defines the maximum number to display in Rows Per Page Selector in the search bar.
    Greetings,
    Tobias

  • Number of "rows" displayed for Drag and Drop items

    Where do I set the number of rows displayed in my databound objects in UIX/ADF/Struts (Tables, LOV, searches, etc...)? I remember this being an option in the Preview, but I just can't find it now.

    Mike,
    do you mean the range size?
    Select the UIModel.xml file and open the Structure window. Select the RowSetIterator and open the Property Inspector.
    Frank

  • How to set the number of rows that an awt.Choice can display

    Dear Sir,
    I want to ask how an awt.Choice  can set the number of rows that it can display, like the method setMaximumRowCount in JCombobox. Since I want to set more row can be displayed, but choice no any method can set. And I have tried to add Jcombobox into awt.frame, then, the handling event function cannot receive event for the right-top cornet button(minimize, maximum, close).
    Best Regards,

    please post a Short, Self Contained, Correct Example showing your problem.
    bye
    TPD

  • How to increase the number of rows to be displayed in BEx Web Analyzer

    hi,
    I am viewing reports using BEx Web analyzer option. It is displaying only 24 rows  of data at a time. How to increase the number of rows? do i need to any kind of settings?
    pls reply.

    Hi,
    I think the standard template in 2004s is named 0ANALYSIS_PATTERN. You can find it in Web Application Designer, open, and search for the technical name. If you want to change the number of rows or columns, you can find this setting near the bottom of the XHTML view of the template:
    <bi:BLOCK_COLUMNS_SIZE value="4" />
    <bi:BLOCK_ROWS_SIZE value="17" />
    Then just save, and ignore the error messages.
    Message was edited by:
            vind Reinsberg

  • How to increase the number of rows in a jTable dynamically?

    Can anyone help me in increasing the number of rows in a jTable dynamically without using DefaultTableModel?
    I don't want to use DefaultTableModel because my program is about to finish except this problem.
    Thanks in advance.

    Presumably you're using your own custom table model class. Modify that so that it returns the number of rows you want. Though presumably it would do this anyway so I've no idea what the problem is.
    Do you mean you've added rows to the table model but they're not being reflected in the table itself? You need to fire events - AbstractTableModel provides simple methods to fire them, but if you're not using that then you'll have to fire them manually.

  • How to determine the number of rows to be displayed in a report

    hello experts,
    Has anyone ever come across this requirement before? Before a report finishes being executed and before it displays the results, is there a way to determine the number of rows to be displayed as the result?
    Many thanks in advance.
    Regards,
    Inma

    Hello Arun,
    Thanks for your reply but do you know which method I should use for this purpose if I use the table interface?
    Thanks,
    Inma

  • Is it possible to change the number of rows to be displayed in adf query ?

    Hello,
    is it possible to change the number of rows that are displayed in an adf query similar to an adf form ?
    I need to display approx 5 rows per column instead of displaying all the fields in a single column ? Thanks.

    Thanks , how do you add in the code ,is it something like follows :
    <af:query id="qryId1" headerText="Search" disclosed="true"
                                value="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                                model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
                                queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                                queryOperationListener="#{bindings.ImplicitViewCriteriaQuery.processQueryOperation}">
                        <af:inputText value="#{bindings.PrtDesc.inputValue}" label="Desc"
                                      required="#{bindings.PrtDesc.hints.mandatory}"
                                      columns="#{bindings.PrtDesc.hints.displayWidth}"
                                      maximumLength="#{bindings.PrtDesc.hints.precision}"
                                      shortDesc="#{bindings.PrtDesc.hints.tooltip}" id="it3">
                          <f:validator binding="#{bindings.PrtDesc.validator}"/>
                        </af:inputText>
                      <af:column>
                       <af:outputtext/>
                        <af:outputtext/>
                     </af:column>
                      </af:query>

  • Rows Per Page doesn't affect the number of records displayed

    I just updated from 3.2 to 4.0 this morning. When I change the Rows Per Page value in the action menu the report doesn't change and the number of records displayed stays at 10. The report has ~6000 records. I edited the report attributes and add the rows selector to the IR search bar. This doesn't change the behavior either. I noticed that if I change the rows per page in the action menu then the drop down select list is updated, but the report still doesn't change from 10. I tried paging to the next set of results and it still remains at 10.
    Has anyone else experienced this problem?
    Tony

    Yes, Tony, I've seen this in several versions of APEX. In most cases, simply starting a new session was enough to force APEX to refresh the page and grab the new set of pagination directives. If that doesn't work, please give more info like: what type of report you are doing and what the Pagination values are. Please note the following:
    Report Template
    Pagination Scheme
    Enable Partial Page Refresh
    Display Position
    Number of Rows/Number of Rows Item
    Maximum Row Count

  • How to limit the number of rows in a report

    I have several reports with a number of parameters - date ranges etc.
    Depending on the parameter values selected by the user the reports can return thousands of rows.
    I would like to limit the number of rows returned to, say, 500. If more than 500 rows are returned by the query then display an error message requesting that the user enter more specific parameters.
    Ideally for performance reasons it would be good to catch the error before the datafile is generated, but I don't know if this is possible. Alternatively a check in the template might do the job - using COUNT on the group?.

    Hi Hugh,
    In your query, you got to add rowum < 500 or some sort of DB specific limit to the row being returned,
    this will help to stop the report to get more than 500 records and the report template wont have any restriction.
    or
    you can do that in template too, but i would not recommend.
    In these both cases or in any case, you cannot give any meaningful error if it exceeds N rows,there is no option like this till now.

Maybe you are looking for

  • Error while adding new record

    I have created an user defined table for storing city details.When I add record in it,it returns -4002 and the record is not saved.The code is as follows , Private Sub AddCity()         Dim objCity As SAPbobsCOM.UserTable         Dim intCode As Integ

  • The option to sync wirelessly is not showing up on the summary tab

    The option to sync wirelessly is not showing up on the summary tab when iphone is connected. Does anyone know why?

  • Problem about release of blocked invoices automatically

    Hello, We have many blocked invoices against payment that come from I/R in MM. The main reasons that they were blocked come from Quantity and Date difference. We know that invoices with the blocking reason "quantity" or "date" are released automatica

  • The phone can't power on,sometimes can power on,but dead halt when setup

    In use, the phone hint and  display "USB connect Itunes:, When finish connecting and update,can power up but will be dead halt during setup ,displaying the white apple  .the phone can't use now. Please help solve this problem. thanks. you can connect

  • HU managed material consumption against Production Order

    Hi Gurus I am struggling to determine how we will consume HU managed goods in production.  The scenario is for the rework or repack of finished goods.   1)      The HUs are staged to the production area (either PSA or ST 914 in WM) based on need for