JTable's in Netrexx

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

JTable's in Netrexx

britten /Quique Britto (SPAIN VAL Export Mngr AMX)
I am having trouble setting up a JTable under Netrexx, the Java code is as
follows:

..
..
TableModel dataModel = new AbstractTableModel() {
          public int getColumnCount() { return 10; }
          public int getRowCount() { return 10;}
          public Object getValueAt(int row, int col) { return new
Integer(row*col); }
      };
      JTable table = new JTable(dataModel);
      JScrollPane scrollpane = new JScrollPane(table);
..
..


How do I write the "getColumnCount, get RowCount & getValueAt" in Netrexx,
are these methods?
I can't find any modern netrexx samples for using swing components.

Any help is appreciated.

Quique


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>


Reply | Threaded
Open this post in threaded view
|

Re: JTable's in Netrexx

rvjansen
Hi Quique,

  method getValueAt(row = int, col = int) returns java.lang.Object
    return this.tableStorage[row,col]

  method getRowCount() returns int
    return rows

  method getColumnCount() returns int
    return cols

these are taken from a working Swing Tablemodel in NetRexx.

saludos,

René.

> I am having trouble setting up a JTable under Netrexx, the Java code is as
> follows:
>
> ..
> ..
> TableModel dataModel = new AbstractTableModel() {
>           public int getColumnCount() { return 10; }
>           public int getRowCount() { return 10;}
>           public Object getValueAt(int row, int col) { return new
> Integer(row*col); }
>       };
>       JTable table = new JTable(dataModel);
>       JScrollPane scrollpane = new JScrollPane(table);
> ..
> ..
>
>
> How do I write the "getColumnCount, get RowCount & getValueAt" in Netrexx,
> are these methods?
> I can't find any modern netrexx samples for using swing components.
>
> Any help is appreciated.
>
> Quique
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe from this mailing list ( ibm-netrexx ), please send a note
> to
> [hidden email]
> with the following message in the body of the note
> unsubscribe ibm-netrexx <e-mail address>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>


Reply | Threaded
Open this post in threaded view
|

RE: JTable's in Netrexx

britten /Quique Britto (SPAIN VAL Export Mngr AMX)
In reply to this post by britten /Quique Britto (SPAIN VAL Export Mngr AMX)
thanks all for the the quick response, I will test tonight the replies
received.

Is there any modern articles/books about Netrexx, i have the IBM Redbook and
several other articles obtained fm the internet but all seem so old.

Quique




-----Mensaje original-----
De: [hidden email]
[mailto:[hidden email]]En nombre de
[hidden email]
Enviado el: martes, 31 de mayo de 2005 03:25
Para: [hidden email]
Asunto: Re: JTable's in Netrexx


Hi Quique,

  method getValueAt(row = int, col = int) returns java.lang.Object
    return this.tableStorage[row,col]

  method getRowCount() returns int
    return rows

  method getColumnCount() returns int
    return cols

these are taken from a working Swing Tablemodel in NetRexx.

saludos,

René.

> I am having trouble setting up a JTable under Netrexx, the Java code is as
> follows:
>
> ..
> ..
> TableModel dataModel = new AbstractTableModel() {
>           public int getColumnCount() { return 10; }
>           public int getRowCount() { return 10;}
>           public Object getValueAt(int row, int col) { return new
> Integer(row*col); }
>       };
>       JTable table = new JTable(dataModel);
>       JScrollPane scrollpane = new JScrollPane(table);
> ..
> ..
>
>
> How do I write the "getColumnCount, get RowCount & getValueAt" in Netrexx,
> are these methods?
> I can't find any modern netrexx samples for using swing components.
>
> Any help is appreciated.
>
> Quique
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
> To unsubscribe from this mailing list ( ibm-netrexx ), please send a note
> to
> [hidden email]
> with the following message in the body of the note
> unsubscribe ibm-netrexx <e-mail address>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>