How to make table

hi,
i have a 2 tables of same structure ,i want to make a new table from thoese tables, but problem is that both table has some same data & i want to make new a table that should not have duplicate data .
table 1 table 2 table 3 must be
123 200701 123 200705 123 200701
123 200712 123 200807 123 200807
how to do it ?
thxs

create table t3
as
select * from t1
union
select * from t2Thanks,
Karthick.

Similar Messages

  • How to make table as "editable false"

    Dear Forum,
    i am user of jDeveloper jClient/Swing .jpr.
    cutomer table having following attributes-
    1.cust_id (primary key)
    2.cust_name
    3.cust_add
    Suppose customerview bind with jTable1.
    Using ViewObjectEditor, i set "updateable never" for all fields.
    This show error, when data insert into table " cust_id as
    read only".
    Help me, Using jClient Binding how to make Table as "editable false".

    Overriding method prepareEditor() for new table:
    private JTable tableList = new JTable(){
    public Component prepareEditor(TableCellEditor editor, int row, int column) {
    // 1 and 2 column is not editable
    if(column == 0 || column == 1){ return null; }
    return super.prepareEditor(editor, row, column);

  • HOW TO MAKE TABLE CONTROL NON EDITABLE

    hi all
    how to make table control non editable
    Thanks & Regards
    harsha

    Hi,
    Try this code in the PBO inside the module in the LOOP...ENDLOOP.
       IF SY-TCODE EQ 'ZEMPLDISPLAY'.
        LOOP AT SCREEN.
         if screen-name eq 'column1' or screen-name eq 'column2'.  "Give the names of the columns in the table control
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        endif.
        ENDLOOP.
      ENDIF.
    Or you can go the Layout of the table control in Change mode and for every column's attributes, make it 'Output' only field. Check  'Output only' field.

  • How to make table that will include controls such as drop list?

    How to make table that will include controls such as drop list?
    I need to create table as Property Browser of ActiveX, that include rows with differnt types such as drop list, color, ...

    Hi Nadav,
    I figured out where I missed your point. When you wrote
    table as Property Browser of ActiveX, that include rows with differnt types such as drop list, color, ...
    I was thinking mixed data-types in a [2d] table!
    Looking at the property browser again it looks like no single LV function can do all of that. It can be developed as a pop-up (like the browser is set-up) and then code all of the elegance using an event structure to control the background color of a string indicator while controling the visability of rings that are only made visable when a mouse down is detected. That will get you pretty close.
    So no, my previous response ws not correct for what you are trying to do if you want to duplicate all of the wistles and bells of the property browser pop-up window.
    Please forgive my distraction.
    Ben 
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to make table have transportable entries

    Hi Experts,
    how to make table ZFUSTXFACTOR have transportable entries?
    Regards,
    Saleem

    HI,
    In The se11 menu Utilities-->table maintenance generator-->if u already created table maintenance generator then in the tab DIALOG DATA TRANSFER DETAILS check the radio button STANDARD RECORDING ROUTINE.
    Then when ever u save the data in the table it will pop up a screen to create a Transport request.
    Thanks,CSR.
    ***please reward if helpful.

  • How to make tables similar to apple site?

    Is anyone aware of any tutorials on how to make tables
    similar to
    http://www.apple.com/support/leopard/
    Thanks!

    Look at the code.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Mike" <[email protected]> wrote in message
    news:[email protected]..
    > Is it all CSS? How is it being done? Anyone point me to
    some tutorials?
    >
    > Thanks.
    >
    > Ken Binney wrote:
    >> And then you will discover there are no tables in
    that layout.
    >>
    >>
    >>
    >>
    >> "John T Smith" <[email protected]>
    wrote in message
    >> news:g0ichc$64f$[email protected]..
    >>> While at that site, tell your browser to show
    you the code... in IE that
    >>> is
    >>> click on the View option and select source
    >>>
    >>> You may also do a File--Save As to save a copy
    of the code to your
    >>> computer to
    >>> view
    >>>
    >>

  • How to make table format

    Hi,
    Im not expert in Oracle Database especially in querying of data's
    My problem is about to be honest i have no idea how to make table format.
    We have a problem in our production instance we raised it in Oracle Support but one of the technical support there is asking about this
    "I want table data of the corresponding batch. Please take help of you DBA and ensure that you are connected to the correct instance, where you have this issue."
    I am only one DBA here in our company and Im still Newbie.
    here is the scripts the he want me to run it
    select batch_id from gme_batch_header bh, mtl_parameters mp
    where batch_no = '115982'
    and organization_code = '101'
    and bh.organization_id = mp.organization_id;
    select *
    FROM gme_batch_header
    WHERE batch_id in (XXXXXX);
    select batch_id, line_type, material_detail_id, inventory_item_id, plan_qty, actual_qty, wip_plan_qty, dtl_um, release_type, phantom_id,
    locator_id, material_requirement_date, move_order_line_id, original_primary_qty, subinventory
    FROM gme_material_details
    WHERE batch_id IN (XXXXXX)
    ORDER BY batch_id, line_type, material_detail_id;
    SELECT 'MMT' as table_name, t.transaction_id as trans_or_rsrv_id, ty.transaction_type_name, h.batch_status, d.batch_id as batch_id, t.transaction_source_id as trans_or_rsrv_source_id, d.line_type, t.trx_source_line_id as material_detail_id,
    t.organization_id, pa.organization_code, t.inventory_item_id, i.segment1 as item_number, t.subinventory_code, t.locator_id, lt.lot_number as lot_number, t.primary_quantity, t.transaction_quantity as trans_or_rsrv_qty, lt.transaction_quantity as lot_qty, t.transaction_uom as trans_or_rsrv_uom, t.secondary_transaction_quantity as sec_qty, t.secondary_uom_code,
    to_char(t.transaction_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date, t.LPN_ID, t.TRANSFER_LPN_ID, t.transaction_mode, NULL as lock_flag, NULL as process_flag
    FROM mtl_material_transactions t, gme_material_details d, gme_batch_header h, mtl_transaction_lot_numbers lt,
    mtl_lot_numbers lot, mtl_system_items_b i, mtl_transaction_types ty, mtl_parameters pa
    WHERE t.transaction_source_type_id = 5
    AND h.batch_id in (XXXXXX)
    AND t.transaction_source_id = h.batch_id
    AND t.organization_id = h.organization_id
    AND d.batch_id = h.batch_id
    AND d.material_detail_id = t.trx_source_line_id
    AND lt.transaction_id(+) = t.transaction_id -- This join allows us to get the lot number
    AND lot.lot_number(+) = lt.lot_number -- This join allows us to get lot specific info if needed.
    AND lot.organization_id(+) = lt.organization_id
    AND lot.inventory_item_id(+) = lt.inventory_item_id
    AND t.organization_id = i.organization_id
    AND t.inventory_item_id = i.inventory_item_id
    AND t.transaction_type_id = ty.transaction_type_id
    And t.organization_id = pa.organization_id
    UNION ALL
    SELECT 'RSRV' as table_name, reservation_id as trans_or_rsrv_id , NULL, h.batch_status, d.batch_id as batch_id,
    demand_source_header_id as trans_or_rsrv_source_id, d.line_type, demand_source_line_id as material_detail_id,
    r.organization_id, pa.organization_code, r.inventory_item_id, i.segment1 as item_number, r.subinventory_code, r.locator_id, r.lot_number,primary_reservation_quantity, reservation_quantity as trans_or_rsrv_qty, NULL,reservation_uom_code as trans_or_rsrv_uom, secondary_reservation_quantity as sec_qty, r.secondary_uom_code,
    to_char(requirement_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date, LPN_ID, NULL, NULL, NULL, NULL
    FROM mtl_reservations r, gme_material_details d, gme_batch_header h, mtl_system_items_b i, mtl_parameters pa
    WHERE demand_source_type_id = 5
    AND h.batch_id in (XXXXXX)
    AND demand_source_header_id = h.batch_id
    AND r.organization_id = h.organization_id
    AND d.batch_id = h.batch_id
    AND d.material_detail_id = demand_source_line_id
    AND r.organization_id = i.organization_id
    AND r.inventory_item_id = i.inventory_item_id
    And r.organization_id = pa.organization_id
    UNION ALL
    SELECT 'PPL' as table_name, pending_product_lot_id as trans_or_rsrv_id, NULL, h.batch_status, d.batch_id as batch_id, NULL, d.line_type, d.material_detail_id, h.organization_id, pa.organization_code, d.inventory_item_id, i.segment1 as item_number, NULL, NULL, lot_number, NULL, quantity as trans_or_rsrv_qty, NULL, NULL, secondary_quantity as sec_qty, NULL, NULL, NULL, NULL, NULL, NULL, NULL
    FROM gme_pending_product_lots p, gme_material_details d, gme_batch_header h, mtl_system_items_b i, mtl_parameters pa
    WHERE h.batch_id in (XXXXXX)
    AND p.batch_id = h.batch_id
    AND d.batch_id = h.batch_id
    AND d.material_detail_id = p.material_detail_id
    AND h.organization_id = i.organization_id
    AND d.inventory_item_id = i.inventory_item_id
    And h.organization_id = pa.organization_id
    UNION ALL
    -- Note that there should not be any transactions in MMTT. If there are, they are usually "stuck" there and
    -- need to be processed or deleted
    SELECT 'MMTT' as table_name, t.TRANSACTION_TEMP_ID as trans_or_rsrv_id, ty.transaction_type_name, h.batch_status, d.batch_id as batch_id, t.transaction_source_id as trans_or_rsrv_source_id, d.line_type, t.trx_source_line_id as material_detail_id, t.organization_id, pa.organization_code, t.inventory_item_id, i.segment1 as item_number, t.subinventory_code, t.locator_id, lt.lot_number as lot_number, t.primary_quantity, t.transaction_quantity as trans_or_rsrv_qty, lt.transaction_quantity as lot_qty, t.transaction_uom as trans_or_rsrv_uom, t.secondary_transaction_quantity as sec_qty, t.secondary_uom_code, to_char(t.transaction_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date,t.LPN_ID, t.TRANSFER_LPN_ID, t.transaction_mode, t.lock_flag, t.process_flag
    FROM mtl_material_transactions_temp t, gme_material_details d, gme_batch_header h,
    mtl_transaction_lots_temp lt, mtl_system_items_b i, mtl_transaction_types ty, mtl_parameters pa --mtl_lot_numbers lot
    WHERE t.transaction_source_type_id = 5
    AND h.batch_id in (XXXXXX)
    AND transaction_source_id = h.batch_id
    AND t.organization_id = h.organization_id
    AND d.batch_id = h.batch_id
    AND d.material_detail_id = trx_source_line_id
    AND lt.TRANSACTION_TEMP_ID (+) = t.TRANSACTION_TEMP_ID -- This join allows us to get the lot number
    --AND lot.lot_number(+) = lt.lot_number
    --AND t.organization_id = lot.organization_id
    AND t.organization_id = i.organization_id
    AND t.inventory_item_id = i.inventory_item_id
    AND t.transaction_type_id = ty.transaction_type_id
    And t.organization_id = pa.organization_id
    UNION ALL
    SELECT 'MTI' as table_name, t.TRANSACTION_INTERFACE_ID as trans_or_rsrv_id, ty.transaction_type_name, h.batch_status, d.batch_id as batch_id, t.transaction_source_id as trans_or_rsrv_source_id, d.line_type, t.trx_source_line_id as material_detail_id, t.organization_id, pa.organization_code, t.inventory_item_id, i.segment1 as item_number, t.subinventory_code, t.locator_id, lt.lot_number as lot_number, t.primary_quantity, t.transaction_quantity as trans_or_rsrv_qty, lt.transaction_quantity as lot_qty, t.transaction_uom as trans_or_rsrv_uom, t.secondary_transaction_quantity as sec_qty, t.secondary_uom_code, to_char(t.transaction_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date, t.LPN_ID, t.TRANSFER_LPN_ID, t.transaction_mode, to_char(t.lock_flag), to_char(t.process_flag)
    FROM mtl_transactions_interface t, gme_material_details d, gme_batch_header h,
    mtl_transaction_lots_interface lt, mtl_system_items_b i, mtl_transaction_types ty, mtl_parameters pa --mtl_lot_numbers lot
    WHERE t.transaction_source_type_id = 5
    AND h.batch_id in (XXXXXX)
    AND transaction_source_id = h.batch_id
    AND t.organization_id = h.organization_id
    AND d.batch_id = h.batch_id
    AND d.material_detail_id = trx_source_line_id
    AND lt.TRANSACTION_INTERFACE_ID (+) = t.TRANSACTION_INTERFACE_ID -- This join allows us to get the lot number
    --AND lot.lot_number(+) = lt.lot_number
    --AND t.organization_id = lot.organization_id
    AND t.organization_id = i.organization_id
    AND t.inventory_item_id = i.inventory_item_id
    AND t.transaction_type_id = ty.transaction_type_id
    And t.organization_id = pa.organization_id
    ORDER BY batch_id, table_name, line_type, material_detail_id;
    SELECT *
    FROM gme_transaction_pairs
    WHERE batch_id in (XXXXXX);
    I used SQL Developer and connected in our Production instance where the problem is there
    so i run it please see attached file:
    please help how to make table format outpur what are the steps that i need to produce correctly.

    Hi,
    From your post, it seems that you need to upload the results of the query to Oracle Support.
    You can spool the output to a file and upload it.
    Something like...
    SQL>spool output.txt
    SQL>set lines 200
    SQL>set pages 200
    --execute the queries
    SQL>spool off
    I don't know about SQL Developer but tools such as PL/SQL Developer and Toad will allow you to export the query results directly to MS Excel.
    Regards,
    Sujoy

  • How to make table of contents linkable

    Could someone tell me how to make the table of contents for my indesing book linkable? I've seen this in PDF documents before and assume it can be done using InDesign, but haven't been able to figure out how to do it.

    gscortino1 wrote:
    I need to have a Book Table of contents work as well as chapter Table of contents and also Ineractive elements all work when clicked in a PDF.  How do I manage this?  I can get the Table of Contents to work and no interactive elements or visa versa. I f I export to pdf Ptint I get both TOC to work but no buttons If I export to interactive I get only the Chapter TOC to work and the buttons but not the Book TOC.  I know its a bug what is Adobe doing about it and when are we going to get a free fix? 
    What version of ID are you using? What export settings? As noted above, there is a bug, and what you want may not be posible at the moment.

  • How to make tables visible for Group Operations

    Hi:
    - SunMC Group Operations has a 'Modules Table' option which
    allows users to edit tables within a module
    - Why is it that for some modules, the tables are not visible at all, but
    for other modules, the tables are visible ?
    - Is there any documentation available which outlines how to make a module's
    table visible under SunMC Group Operations 'Modules Table' option ?
    thanks
    J L

    Please check the below thread.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/eff6e995-e13e-4e30-844e-6242a613daff/making-sp-apps-visibleinvisible-to-users
    My Blog- http://www.sharepoint-journey.com| Twitter
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

  • How to make table cell have certain width

    Hi
    i have 3 cells when i write text in any cell it effects the
    width of other cells !!!
    how to make every cell have certain? i mean i want to wrap
    the text not to effect the cell width
    thanks in advance.

    Hi Mac,
    Try this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD><TITLE>Home</TITLE>
    <META http-equiv=Content-Type content="text/html;
    charset=iso-8859-1">
    <style>
    .text-content-green {
    FONT-SIZE: 11px;
    COLOR: #a5a834;
    LINE-HEIGHT: 20px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    .text-content-green:hover {
    FONT-SIZE: 11px;
    COLOR: #AE0B0B;
    LINE-HEIGHT: 20px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION:underline;
    .margin {
    margin: 1px 1px 1px 1px;
    border-style: solid;
    border-top-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-color: gainsboro;
    </style
    </HEAD>
    <BODY topmargin="10px" leftmargin="0" rightmargin="0"
    class="body-style">
    <TABLE width="729" border="0" cellpadding="0"
    cellspacing="0" cellsadding="0" align="center" class="margin">
    <TBODY>
    <TR>
    <TD width="125" valign="top" bgcolor="#f0f0c1">
    <table width="125" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td width="25" height="25" align="middle"></td>
    <td width="108" class="text-content-green"><A
    class="text-content-green" href="default.html">LEFT
    NAV</A></td>
    </tr>
    <tr>
    <td colspan="2" align="middle"></td>
    </tr>
    <tr>
    <td width="25" height="25" align="middle"></td>
    <td width="108" class="text-content-green"></td>
    </tr>
    <tr>
    <td colspan="2"></td>
    </tr>
    </table>
    </TD>
    <TD vAlign=top width=539 bgColor="white" height=471>
    <P class="text-content-green" align=left
    style="padding-left:5px">Lorem ipsum dolor sit amet, consectetur
    adipisicing elit.Duis aute irure dolor in reprehenderit in
    voluptate velit esse cillum .
    </P>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </BODY>
    </HTML>
    HTH
    Shanthi

  • How to make table maintenance generaot in display mode

    Hi,
       I was created table maintenance generator for customized table. I want to use this to view log changes only not for real maintenance.
    How can i make my table maintenance generator as display only(Meaning with out change functionality).
    Kind Regards,
    Rays

    Hi Rays,
    Have you looked FM <b>VIEW_MAINTENANCE_CALL</b>?
    CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
      EXPORTING
        ACTION      = 'D'
        VIEW_NAME   = 'ZTABLE'
      TABLES
        DBA_SELLIST = IT_RANGETAB
      EXCEPTIONS
        CLIENT_REFERENCE                     = 1
        FOREIGN_LOCK                         = 2
        INVALID_ACTION                       = 3
        NO_CLIENTINDEPENDENT_AUTH            = 4
        NO_DATABASE_FUNCTION                 = 5
        NO_EDITOR_FUNCTION                   = 6
        NO_SHOW_AUTH                         = 7
        NO_TVDIR_ENTRY                       = 8
        NO_UPD_AUTH                          = 9
        ONLY_SHOW_ALLOWED                    = 10
        SYSTEM_FAILURE                       = 11
        UNKNOWN_FIELD_IN_DBA_SELLIST         = 12
        VIEW_NOT_FOUND                       = 13
        MAINTENANCE_PROHIBITED               = 14
        OTHERS                               = 15.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Indesign to ebook-kindle: how to make table of contents link/jump to first page each chapter?

    I have successfully completed the "ebooks: from adobe indesign to the kindle store.pdf"
    I have InDesign CS 5, not 5.5.
    I did the indesign doc - export to epub, then converted that epub in Calibre to MOBI format for kindle.
    But how do I make a table of contents that link or jump to the beginning of its respective chapter head?
    THANKS!!!

    Yes, that fixed it, thanks! I had no idea they clashed like that. I ruthlessly purged all other tables of contents, and then used Layout > Table of Contents to create a new one, and it worked.
    It made more sense after seeing in this thread that table of contents styles are more like presets or entities than styles.

  • How to make tables fully sized in a database diagram?

    Hi,
    This is my first time using JDeveloper. I have been asked to make a database diagram from a database schema for the purposes of printing the diagram out to stick on the office wall, yay Smile
    There are a huge number of tables (100+) and I have got them on the screen, but the problem is that all the tables are the same size and many don't show all their fields. I could manually resize all the tables and shift them around but it would take forever. As I'm being paid for this I thought I should try and find an easier way.
    I tried selecting all the tables and choosing Model->Optimize Shape Size but it didn't work, and I can't see anything else that would do it.
    Thankfully, someone else is going to worry about how to print it out.
    Can anyone help?
    thx
    Adam

    Hi,
    It should be showing the cardinalities unless you've turned the preferences off! You may find that the cardinalities aren't positioned as close to the lines due to the redrawing. If you select one of the FKs you should see two grey lines going from the line to where the cardinalities are, you can then either move them manually or try one of the 'Layout Shapes' options which will relayout your diagram and hopefully move the cardinalities closer to the Fks.
    You can check whether the 'Show Cardinality' property is set to 'True' by selecting one FK and then invoking the context menu and selecting 'Select All This Type' and then in the Property Inspector ensure that the value is set to True.
    Regards,
    Lisa
    You can ignore this I was typing this while you were posting that you had done it!
    Message was edited by:
    Lisa Sherriff

  • How to make table column of the webdynpro application scrollable??

    Hi all,
    I want to make some columns of my table to be fixed and some to be scrollable...
    So if anybody know how to do it..
    Please do let me know...
    Thanks and regards..

    Shruti,
    If you are using NW 7.0 (NW04s) then check properties:
    -- Table.scrollableColCount
    -- Column.fixedPosition
    Both let you define number of of "fixed" columns at left/right and number of scrollable columns in between.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • How to make table borders visible in BI Publisher report

    Hi,
    I'm trying to create a BI Publisher report that contains a number of table and want to make sure the borders of the table visible after publishing. Can you anyone tell me how?
    Edited by: user11001592 on Jan 22, 2010 2:50 AM

    In Word, if you have set the borders on then you should see them in the output. In Word it has a setting to let you see 'gridlines' even if they are not set ie you have turned the borders off. Highlight the table and set all the borders on and re-try. If that fails, try building the table from scratch and copy the cell contents across to the new table
    Tim

  • How to make table column with formula

    Hi all..
    This is my class
    public class MyNumber{
         private int num;
         public int getNum(){
              return num;
         public void setNum( int num){
              this.num = num;
    }Consider I design a table with FXML editor ( Scene Builder in this case )
    and these are some of my codes
    private TableView tab;
    private TableColumn<MyNumber, Integer> tabColInput;
    private TableColumn tabColOutput;
    tab.setEditable(true);
    tabColInput.setEditable(true);
    tabColInput.setCellValueFactory( new PropertyValueFactory<Person,Integer>("num") );
    tabColInput.setCellFactory(TextFieldTableCell.forTableColumn());
    tabColInput.setOnEditCommit(
        new EventHandler<CellEditEvent<MyNumber, Integer>>() {
            @Override
            public void handle(CellEditEvent<MyNumber, Integer> t) {
                ((MyNumber) t.getTableView().getItems().get(
                    t.getTablePosition().getRow())
                    ).setNum(t.getNewValue());
    );Problem:
    I want to make tabColOutput to always show the result for tabColInput times 2
    eg:
    When I change a row in tabColInput to 10, tabColOutput will show 20
    When I change a row in tabColInput to 3, tabColOutput will show 6
    Could anyone advice me how to do this?
    Ps: I am not english native speaker, so I am sorry if I am saying it wrong ^^

    I just give it a try and it works like magic
    Here is how I do it (change a cell from a table by code)
    import java.util.ArrayList;
    import java.util.List;
    import javafx.application.Application;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.geometry.Insets;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.VBox;
    import javafx.scene.text.Font;
    import javafx.stage.Stage;
    public class TableViewSample extends Application {
        public static final String Column1MapKey = "A";
        public static final String Column2MapKey = "B";
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage stage) {
            List<MyTableData> listData = new ArrayList<MyTableData>();
            listData.add(new MyTableData("A", 21) );
            listData.add(new MyTableData("B", 24) );
            listData.add(new MyTableData("C", 23) );
            listData.add(new MyTableData("D", 21) );
            listData.add(new MyTableData("E", 22) );
            ObservableList<MyTableData> tableData = FXCollections.observableArrayList(listData);
            Scene scene = new Scene(new Group());
            stage.setTitle("Table View Sample");
            stage.setWidth(300);
            stage.setHeight(500);
            final Label label = new Label("Student IDs");
            label.setFont(new Font("Arial", 20));
            TableColumn<MyTableData, String> firstDataColumn = new TableColumn<MyTableData, String>("NAME");
            TableColumn<MyTableData, Integer> secondDataColumn = new TableColumn<MyTableData, Integer>("AGE");
            firstDataColumn.setCellValueFactory(new PropertyValueFactory<MyTableData, String>("name"));
    //        firstDataColumn.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<MyTableData, String>, ObservableValue<String>>(){
    //            @Override
    //            public ObservableValue<String> call(CellDataFeatures<MyTableData, String> p) {
    //                return p.getValue().nameProperty();
            firstDataColumn.setMinWidth(130);
            secondDataColumn.setCellValueFactory(new PropertyValueFactory<MyTableData, Integer>("age"));
            secondDataColumn.setMinWidth(130);
            TableView<MyTableData> table_view = new TableView<MyTableData>();
            table_view.setItems(tableData);
            table_view.getColumns().setAll(firstDataColumn, secondDataColumn);
            final VBox vbox = new VBox();
            vbox.setSpacing(5);
            vbox.setPadding(new Insets(10, 0, 0, 10));
            vbox.getChildren().addAll(label, table_view);
            ((Group) scene.getRoot()).getChildren().addAll(vbox);
            stage.setScene(scene);
            stage.show();
            //(this is where I change my table content with code)
            tableData.get(0).setName("xx Gargoyle xx");
            System.out.println("Testing Done");
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    public class MyTableData{
        private final SimpleStringProperty name;
        private int age;
        public MyTableData(String name, int age) {
            this.name = new SimpleStringProperty(name);
            this.age = age;
        public String getName() {
            return name.get();
        public StringProperty nameProperty(){
            return name;
        public void setName(String name) {
            this.name.set(name);
        public int getAge() {
            return age;
        public void setAge(int age) {
            this.age = age;
    }And thank you very much

Maybe you are looking for

  • New iTunes for managing apps

    Dislaimer: I am NOT an experience iTunes user! Question: How do I see my devices in a way I can manage the apps on them in the new iTunes? Background: I updated my iTunes yesterday to 11.01.12, the "new, even better" one. I understand it makes my mus

  • How to add sub flyout in a flyout

    Hello All,     I have added two to three flyouts in my toolbar. Now I want to add a sub -flyout inside a flyout. how to make it , which object i am supposes to use for it. Please help me.

  • Where is the Command Wizard in BEx Web Application Designer(WAD) 7.0

    Hi, I am new to SAP and BEx Web App Designer and am reading through the help about the so-called Command Wizard. I have looked all over the app and I see nothing called a Command Wizard. I am I missing something obvious or is this buried somewhere in

  • Active Script  Easing Help (Solved)

    Okay I have a simple menu that worked great in MX2004, but i have upgrade to Flash 8 now the script doesn't work and was wonder what am i doing wrong. I have placed breaks within the code to see whats failing. It looks as if the button On Release() n

  • Web Comic Book help

    Hello Can anyone suggest a good way to put up a web comic? Is there a program or plugin that can navigate the Previous / Next buttons? Or do I need to create this on my own in iWeb? I have played around with the slideshow option, but the image size t