Help!!! Refreshing  a JTable??

Hi. i have a web site where things are bought, which in turn updates a table in a database, how can i view the orders as they are being made in a jtable dynamicaly. i can view the static table, i have tried to call the table method inside the javax.swing.timer and nothing happens, jus the same old static table. i just need to be able to refresh the jtable as the table expands in the database??

Requery the database on your timer events and use the new result set to update the table.

Similar Messages

  • Help! how to refresh the JTable of a class from another thread class

    there is an application, in server side ,there are two classes, one is a class called face class that screen a JTable, another is a class the a thread ,which accept socket from client, when it accept the client socket, it deal the data and insert into db,then notify the face class to refresh the JTable,but in the thread class I used JTable's revalidate() and updateUI() method, the JTable does not refresh ,how should i do, pls give me help ,thank you very much

    thank you very much !
    i tried it ,but the TableModel i used like this ,and how to change the TableModel?
    here the files of mine ,pls give me some help,thank you very much
    1,first file is a class that create a JInternalFrame,and on it there is a table
    public class OutFace{
    public JInternalFrame createOutFace(){
    JInternalFrame jf = new JInternalFram();
    TableModel tm = new MyTableModel();
    JTable jt = new JTable(tm);
    JScrollPane jsp = new JScrollPane();
    jsp.add(jt);
    jf.getContentPane().add(jsp);
    return jf;
    2,the second file is the main face ,there is a button,when press the button,screen the JInternalFrame. there is also a thread is beggining started .
    public class MainFace extends JFrame implements ActionListener,Runnable{
    JButton jb = new JButton("create JInternalFrame");
    jb.addActionListener(this);
    JFrame fram = new JFrame();
    public void performance(ActionEvent e){
    JInternalFrame jif = new OutFace().createOutFace(); frame.getContentPane().add(JInternalFrame,BorderLayout.CENTER);
    public static void main(String[] args){
    frame.getContentPane().add(jb,BorderLayout.NORTH);
    frame.pack();
    frame.setVisible(true);
    ServerSokct ss = new ServerSocket(10000);
    Socket skt = ss.accept()'
    new ServerThread(skt).start();
    3.the third file is a thread class, there is a serversoket ,and accept the client side data,and want to refresh the JTable of the JInternalFrame
    public class ServerThread extends Thread{
    private skt;
    public ServerThread(Sokcet skt){
    this.skt = skt;
    public void run(){
    OutputObjectStream oos = null;
    InputObjectStream ios = null;
    try{
    Boolean flag = flag;
    //here i want to refresh the JTable,how to write?? }
    catch(){}
    4.second is the TableModel
    public class MyTableModel{
    public TableModel createTableModel(){
    String[][] data = getData();
    TableModel tm = AbstractTableModel(
    return tm;
    public String[][] getData(){
    }

  • How to refresh a JTable of a class from another thread class?

    there is an application, in server side ,there are four classes, one is a class called face class that create an JInternalFrame and on it screen a JTable, another is a class the a thread ,which accept socket from client, when it accept the client socket, it deal the data and insert into db,then notify the face class to refresh the JTable,but in the thread class I used JTable's revalidate() and updateUI() method, the JTable does not refresh ,how should i do, pls give me help ,thank you very much
    1,first file is a class that create a JInternalFrame,and on it there is a table
    public class OutFace{
    public JInternalFrame createOutFace(){
    JInternalFrame jf = new JInternalFram();
    TableModel tm = new MyTableModel();
    JTable jt = new JTable(tm);
    JScrollPane jsp = new JScrollPane();
    jsp.add(jt);
    jf.getContentPane().add(jsp);
    return jf;
    2,the second file is the main face ,there is a button,when press the button,screen the JInternalFrame. there is also a thread is beggining started .
    public class MainFace extends JFrame implements ActionListener,Runnable{
    JButton jb = new JButton("create JInternalFrame");
    jb.addActionListener(this);
    JFrame fram = new JFrame();
    public void performance(ActionEvent e){
    JInternalFrame jif = new OutFace().createOutFace(); frame.getContentPane().add(JInternalFrame,BorderLayout.CENTER);
    public static void main(String[] args){
    frame.getContentPane().add(jb,BorderLayout.NORTH);
    frame.pack();
    frame.setVisible(true);
    ServerSokct ss = new ServerSocket(10000);
    Socket skt = ss.accept()'
    new ServerThread(skt).start();
    3.the third file is a thread class, there is a serversoket ,and accept the client side data,and want to refresh the JTable of the JInternalFrame
    public class ServerThread extends Thread{
    private skt;
    public ServerThread(Sokcet skt){
    this.skt = skt;
    public void run(){
    OutputObjectStream oos = null;
    InputObjectStream ios = null;
    try{
    Boolean flag = flag;
    //here i want to refresh the JTable,how to write??
    catch(){}
    4.second is the TableModel
    public class MyTableModel{
    public TableModel createTableModel(){
    String[][] data = getData();
    TableModel tm = AbstractTableModel(
    return tm;
    public String[][] getData(){
    }

    Use the "code" formatting tags when posting code.
    Read this article on [url http://www.physci.org/codes/sscce.jsp]Creating a Simple Demo Program before posting any more code.
    Here is an example that updates a table from another thread:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=435487

  • I need help refreshing my Adobe Creative Cloud membership in Business Catalyst.

    I need help refreshing my Adobe Creative Cloud membership in Business Catalyst.
    Hello, I had an Adobe Muse membership and I have changed it to a full Adobe Creative cloud membership. The problem is when I login in to business catalyst and try to push live  a second site, it tells me as follows:  Your Adobe Creative Cloud Membership has reached its limit for hosted sites.
    I think business catalyst has not recognize jet that I have change my Adobe Creative Cloud Membership and does not allow me access to the 5 sites that are supposed to come with my adobe creative cloud.
    Please help me refresh my status on business catalyst so I can publish my 5 sites.
    thanks

    Hi,
    Please reach out to our direct support via case or live chat as this may require escalation.  It appears your account is not syncing with your adobe ID for whatever reason and will require further investigation to help resolve.  We'll need your ID(s) plus any additional details so we can correct this for you. 
    - http://helpx.adobe.com/contact.html
    Thanks,
    -Sidney

  • Refreshing a JTable

    Hi again,
    I have another issue, regarding refreshing a couple of JTables. I am using a procedure from a db2 database to populate a JTable. The JTable contains a list of extract tables contained in the database. What I need to do is be able to able to refresh the Jtable contents if a new extract table has been added to the list. This would be completed by a JButton action. Can anyone assist in this matter?

    I understand what you guys are saying. But the way that I have built my JTable did not use the defaultTableModel. A sample is below:
    public Component createExtractsTable(String library, String username, String reportname, String priority) throws SQLException
    // Open a connection to the database
    URL = DriverUtilities.makeURL(ActuaryUtilities.getDataBase(), VENDOR);
    DRIVER = DriverUtilities.getDriver(VENDOR);
    final DriverUtilities conn = new DriverUtilities(URL, DRIVER, username, ActuaryUtilities.getPassWord());
    // Prepare stored procedure using SQL escape sequence
    CallableStatement cs = conn.prepareCall("{call STOREDPROC.SAEXTRACT(?,?,?,?)}");
    try {
    cs.setString(1, library);
    cs.setString(2, username);
    cs.setString(3, reportname);
    cs.setString(4, priority);
    } catch (SQLException sqle) {
    logger.severe("[ " + new Date() + " ] createExtractsTable SQL error: " + sqle.getMessage());
    conn.executeExtractsCallableStatement(cs);
    try {
    conn.close();
    } catch (SQLException sqle) {
    logger.severe("[ " + new Date()     + " ] createExtractsTable SQL error: " + sqle.getMessage());
    final JTable table = new JTable(conn);
    table.setFont(tablefont);
    table.setColumnSelectionAllowed(false);
    table.setPreferredScrollableViewportSize(tablesize);
    table.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    TableColumn[] result = new TableColumn[table.getColumnCount()];
    JTableHeader header = table.getTableHeader();
    header.setFont(tableheaderfont);
    TableColumnModel colModel = table.getColumnModel();
    Enumeration enum = table.getColumnModel().getColumns();
    for (int i=0; enum.hasMoreElements(); i++) {
    result[i] = (TableColumn)enum.nextElement();
    colModel.getColumn(i).setResizable(false);
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    if (ALLOW_ROW_SELECTION) { // true by default
    ListSelectionModel rowEX = table.getSelectionModel();
    rowEX.addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent event) {
    if (event.getValueIsAdjusting())
    return;
    ListSelectionModel lsm = (ListSelectionModel) event.getSource();
    if (lsm.isSelectionEmpty()) {
    logger.warning("[ " + new Date() + " ] No rows are selected");
    } else {
    int selectRow = lsm.getMinSelectionIndex();
    extractTable = (String) conn.getValueAt(selectRow, 0);     
    rules.setExtractTableName(extractTable);
    JScrollPane scrollPane = new JScrollPane(table);
    TableColumn column = null;
    for (int i = 0; i < 5; i++) {
    column = table.getColumnModel().getColumn(i);
    if (i == 0) {
    // tableName column is bigger
    column.setPreferredWidth(90);
    } else if (i == 4 || i == 5) {
    column.setPreferredWidth(50);
    } else {
    column.setPreferredWidth(20);
    //Add the scroll pane to this window.
    extractsPanel.add(scrollPane, BorderLayout.CENTER);
    extractsPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(), "Extract Tables", TitledBorder.LEFT , 0, titleFont, titleColor));
    return (extractsPanel);
    }

  • Pls Help...Refreshing of JTable

    Hii,
    I am represinging data from database in JTable.I want it get refreshed and represent updated data.How can i do that
    Pls help me if u can
    Thanx
    Your Friend

    Hi,
    if your data model is a subclass of AbstractTableModel simply fireTableDataChanged() after you have updated your model - JTable is a table model listener to its model and will update its view accordingly. There are more fire.... methods in AbstractTableModel, choose that one, that reflects your changes best in order to avoid too much repaint action.
    greetings Marsian

  • Please Help! - Refreshing a JTable ( JDBC)

    Hi
    Currently I am populating a JTable with data from an Access database.
    I have not yet created my own Table Model.
    My table is displayed in a frame with a button to the side which when clicked creates a dialog box which enables the user to input data. Clicking the OK button on this dialog box then updates the database and the dialog box is removed.
    The problem is that the table is not updated with this newly input data.
    I have tried using
    ((AbstractTableModel)table1.getModel()).fireTableDataChanged();
    which doesn't work.
    If I create my own Table Model and then call on the fireTableDataChanged method,will this update the table? I want the table to update as soon as the dialog box is closed.
    I really would appreciate any help here. The JTable tutorial doesn't really help.
    Thanks
    LGS

    Would you agree that it would be better to requery the database incase another user has subsequently posted new recordsConcurrency shouldn't be a problem, but if it buys you peace of mind, then do it.
    Also -are you saying that I really should have my own Table Model? You should, this will give you more control over the operations of the table.
    If you want to see how I implement DB access in my table, check out the imports from and exports to external databases at the link shown below:
    http://www.aokabc.com
    ;o)
    V.V.

  • Problem: Is this how i update/refresh a JTable?

    Newbie in JTable and Swing here.
    I have created panel class which will load data from the database when first time come into this panel
    JScrollPane sp1 = new JScrollPane();
    PlayerTableModel pModel = new PlayerTableModel();
    JTable table1 = new JTable(pModel);
    upon a combobox change, i will refresh my table with new data...
    void cb_position_actionPerformed(ActionEvent e) {
    PlayerTableModel pModel = new PlayerTableModel(str_item);
    pModel.fireTableDataChanged();
    table1.repaint() ;
    but the above codes does not seems to refresh and update my table..
    help..
    Thanks...

    I have a piece of example code from a book that I've been working with lately. In this case when a certain combo box changes the table data is refreshed.
    Here is how it's done:
    if (scrollPane != null)
    getContentPane().remove(scrollPane);
    try
    String tableName= (String)tableNames.getSelectedItem();
    if (rs != null) rs.close();
    String query = "SELECT * FROM " + tableName;
    rs = stmt.executeQuery(query);
    if (SCROLLABLE)
    model = new ScrollingtbSchedule1Model(rs);
    else
    model = new CachingtbSchedule1Model(rs);
    JTable table = new JTable(model);
    scrollPane = new JScrollPane(table);
    getContentPane().add(scrollPane, "Center");
    pack();
    doLayout();
    catch(SQLException e)
    System.out.println("Error " + e);
    Notice that the pane is removed and then added again with the new data to force a "refresh".

  • Urgent help needed in jtable

    PLEASE could someone help me look at this and see why the color of my data in a jtable cell is niot turning red when I press enter
    THX
    package mintest;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.table.*;
    import com.borland.jbcl.layout.*;
    import java.awt.color.*;
    import javax.swing.event.*;
    import java.awt.Image;
    import javax.swing.ImageIcon;
    import javax.swing.AbstractButton;
    import javax.swing.JButton;
    import java.awt.datatransfer.*;
    import javax.swing.BorderFactory;
    import javax.swing.border.Border;
    import javax.swing.border.TitledBorder;
    import javax.swing.border.EtchedBorder;
    import java.io.*;
    import java.awt.print.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    import javax.swing.BorderFactory;
    import javax.swing.JLabel;
    import javax.swing.JTable;
    import javax.swing.border.Border;
    import javax.swing.table.TableCellRenderer;
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.table.DefaultTableCellRenderer;
    public class VeckoSchema extends JPanel
    private boolean DEBUG = false;
    JTabbedPane tabbedPane;
    Color rgdcolor2= new Color (0,153,255); //Definiera f?rgen f?r schema-,projekt- och l?nehuvudflikarna
    Color rgdcolor1= new Color (0,102,255);
    Color rgdcolor3= new Color (51,204,255); //Definiera f?rgen f?r schema-,projekt- och l?nehuvudflikarna
    Color rgdcolor= new Color (0,0,153);
    Color rgdcolor4= new Color (153,153,153);
    JList list;
    DefaultListModel listModel = new DefaultListModel();
    ImageIcon icon= new ImageIcon ("D:\\Dokument\\Skolarbete\\Examens projekt\\JAVA\\minTest\\Bakgrundsbild2.jpg");
    ImageIcon icon1= new ImageIcon ("D:\\Dokument\\Skolarbete\\Examens projekt\\JAVA\\minTest\\Save16.gif");
    ImageIcon icon2= new ImageIcon ("D:\\Dokument\\Skolarbete\\Examens projekt\\JAVA\\minTest\\printer2.gif");
    JButton spara;
    JButton Ok_knapp = new JButton();
    JPanel panel7;
    TitledBorder title;
    Border blackline;
    JTable table = new JTable(new MyTableModel());
    int x;int y;
    Object data1;
    //ColorRenderer renderer;
    Color mincellColor= Color.red;
    TableCellRenderer Renderer;
    public VeckoSchema() {
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception
    this.setBackground(rgdcolor2);
    this.setLayout(null);
    //Skapa tabellen
    //JTable table = new JTable(new MyTableModel());
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    JScrollPane scrollPane = new JScrollPane(table);
    scrollPane.setBounds(30, 40, 1000, 600);//(avst?nd fr?n v?nster sidan 49, avst?nd fr?n norr 39, bredd 144, h?jd 38));
    this.add(scrollPane);
    //TableCellRenderer weirdRenderer = new WeirdRenderer();
    table.setCellSelectionEnabled(true);
    table.requestFocus(true);
    table.getInputMap().put(KeyStroke.getKeyStroke(
    KeyEvent.VK_ENTER, 0),
    "check");
    table.getActionMap().put("check", new AbstractAction() {
    public void actionPerformed(ActionEvent e) {
    try {
    System.out.println("BINGO");
    x= table.getSelectedColumn() ;
    y= table.getSelectedRow() ;
    //System.out.println("markerad kolumn ?r" + table.getSelectedColumn()) ;
    //System.out.println("markerad Rad ?r" + table.getSelectedRow()) ;
    // table.setColumnSelectionAllowed(true);
    data1 = table.getModel().getValueAt(
    table.getSelectedRow(),
    table.getColumnModel().getColumn(
    table.getSelectedColumn()).getModelIndex());
    System.out.println("markerad text inneh?ller" + data1);
    x= table.getSelectedColumn() ;
    y= table.getSelectedRow() ;
    /* table.setDefaultRenderer(Object.class, new DefaultTableCellRenderer() {
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int row, int column)
    System.out.println("hejsan hoppsan markerad text inneh?ller" + data1);
    Component cell =super.getTableCellRendererComponent(table, value, isSelected,hasFocus, row, column);
    if (row == y && column == x ) {
    System.out.println("rad"+y);
    System.out.println("column"+x);*/
    //cell.setFont(new java.awt.Font("Dialog", 0, 20));
    /* cell.setForeground(Color.red);
    else
    cell.setForeground(null);
    return cell;
    // ColorRenderer centerRenderer = new ColorRenderer();
    // Use renderer on a specific column
    /* TableColumn column = table.getColumnModel().getColumn(
    table.getColumnModel().getColumn(
    table.getSelectedColumn()).getModelIndex()
    column.setCellRenderer( centerRenderer );
    table.setDefaultRenderer(String.class, centerRenderer);*/
    class table extends JTable {
    ColorRenderer multiRenderer=new ColorRenderer();
    table(MyTableModel tm)
    super(tm);
    public TableCellRenderer getCellRenderer(int row,int col) {
    if (row == y && col == x) return multiRenderer;
    else return super.getCellRenderer(row,col);
    catch(Exception x) {
    x.printStackTrace();
    class MyTableModel extends AbstractTableModel {
    String[] columnNames = {"",
    "M?NDAG",
    "TISDAG",
    "ONSDAG",
    "TORSDAG",
    "FREDAG",
    "L?RDAG",
    "S?NDAG"};
    Object[][] data = {
    {"Anna Svensson","", "","Eji Eze", "","","",""},
    {"","", "","", "Christopher ?kesson","Eji Eze","",""},
    {"","", "","", "","Sara Eggert","",""},
    {"Eji Eze","", "","", "","","",""},
    {"Stefan Wielsel","", "","", "","","",""},
    {"","", "","", "","","Anna Persson","Markus Nilsson"},
    {"","Markus Nilsson", "Malin Mejby","", "","","",""},
    {"","Stefan Wiesel", "","", "","","",""},
    {"","Anna Svensson", "","", "","","",""},
    public int getColumnCount() {
    return columnNames.length;
    public int getRowCount() {
    return data.length;
    public String getColumnName(int col) {
    return columnNames[col];
    public Object getValueAt(int row, int col) {
    return data[row][col];
    /* Denna metod g?r det m?jligt att ?ndrar i tabellen*/
    public boolean isCellEditable(int row, int col) {
    if (col < 8) {
    return false;
    } else {
    return true;
    /*Denna metod g?r s? ?ndringarna som g?rs i en viss cell inte f?rsvinnar d? man l?mnar cellen*/
    Object[][] value = {              {"Chiji Eze"},
    int row= 3;
    int col = 4;
    public void setValueAt(Object value, int row, int col) {
    /* if (DEBUG) {
    System.out.println("Setting value at " + row + "," + col
    + " to " + value
    + " (an instance of "
    + value.getClass() + ")");
    data[row][col] = value;
    fireTableCellUpdated(row, col);
    /* if (DEBUG) {
    System.out.println("New value of data:");
    printDebugData();
    /* private void printDebugData() {
    int numRows = getRowCount();
    int numCols = getColumnCount();
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + data[i][j]);
    System.out.println();
    System.out.println("--------------------------");*/
    /*class MyCellColor extends DefaultTableCellRenderer
    public MyCellColor()
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int row, int column)
    JLabel result = null;
    if(isSelected && value != null)
    result = new JLabel(value.toString());
    result.setOpaque(true);
    result.setForeground(Color.blue);
    System.out.println("Result "+result.getText());
    System.out.println("Color is "+result.getForeground());
    return result;
    /* public TableCellRenderer getCellRenderer (int row, int column)
    //seulement pour la premiere colonne
    if (column == 0)
    return Renderer;
    // sinon le Renderer par d?faut
    return super.getCellRenderer (row, column);
    class ColorRenderer extends JTextArea implements TableCellRenderer{ //DefaultTableCellRenderer
    Color testfarg;
    public ColorRenderer( ){
    testfarg= Color.red;
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
    System.out.println("hejsan hoppsan markerad text inneh?ller" + data1);
    //Component cell =super.getTableCellRendererComponent(table, value, isSelected,hasFocus, row, column);
    if(row==y && column == x)
    setForeground(testfarg);
    else
    setBackground(null);
    return this;

    You really need to study this tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    After you have read it, take a look at this example, and tweak it to suit your needs:
    import javax.swing.table.*;
    import javax.swing.*;
    public class Test {
      public static void main(String[] args) {
        JFrame frame = new JFrame();
        frame.getContentPane().add(new JScrollPane(new JTable(new MyTableModel())));
        frame.pack();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    class MyTableModel extends AbstractTableModel {
      private String columnNames[] = new String[] {
          "Name", "Checked"
      private Class columnClasses[] = new Class[] {
          String.class, Boolean.class
      private Object data[][] = new Object[][] {
          { "One", Boolean.TRUE },
          { "Two", Boolean.FALSE },
          { "Three", Boolean.FALSE },
          { "Four", Boolean.TRUE },
      public int getColumnCount() {
        return columnNames.length;
      public int getRowCount() {
        return data.length;
      public Object getValueAt(int rowIndex, int columnIndex) {
        return data[rowIndex][columnIndex];
      public Class getColumnClass(int columnIndex) {
        return columnClasses[columnIndex];
      public String getColumnName(int columnIndex) {
        return columnNames[columnIndex];
      public boolean isCellEditable(int rowIndex, int columnIndex) {
        if (columnIndex == 1)
          return true;
        else
          return false;
      public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
        data[rowIndex][columnIndex] = aValue;
    }

  • Help needed in JTables

    Hello,
    Can any one help me in a small question.
    I use JTable to display some values it is a two dimentional table.
    Now can any one tell me how to put an icon in to a particular cell of the table
    it may be and cell.
    Best Regards,
    Sreedhar

    You can use a custom TableCellRenderer to do this. There are good examples of doing this in the JTable lessons in the turorial on this site. To put icons in particular cells you need to define the conditions where a icon should be displayed and then code that logic into your renderer.
    After you have read the tutorial and started on your own renderer post specific questions.
    Cheers
    DB

  • Help refreshing regions

    I have what would seem to be a simple use case but I can not figure out what combination of ADF "stuff" will make it work. I have four independent task flows. Each task flow has a single view activity that shows the contents of a table. When someone selects a row from the main table, I want the other four task flows to refresh and only display information from their table that is related to the selected row. Surprisingly I can not find any way to do this.
    Now... before someone says "pass a parameter" or "use contextual events" I really need an example. All of the documentation I've found doesn't apply for one reason or another. This is close but I can't make it work with tables because I can't figure out what listener or whatever needs to be involved. http://technology.amis.nl/2008/08/adf-11g-how-events-in-one-region-cause-other-regions-to-refresh/
    Everything I see regarding passing parameters between task flows assumes that one task flow calls another. That's not the case here.
    As for contextual events I can find no examples of a row selection in a table firing a contextual event. Any help would be appreciated.
    Thanks.

    choose a different "Display Point" for the first region and the reports regions.
    i.e.
    Set the first region "Display Point" to "Page Template Body (2. items below region content)
    Set the report regions "Display Point" to "Page Template Body (3. items above region content)

  • Help required in JTable?

    I have a requirement from our client with following features in Table in java application. I have to find which features which they need are feasible to implement.
    I have searched in many places but mostly the features are not at all feasible to code. Anyway I am posting the, here to verify if my findings are correct.
    1. Vertical UI in the header.
    2. Horizontal scrollbar within JTable i.e. if there are 8 columns in a table means, 1st three columns must be fixed and rest 5 columns should be scrollable horizontally. (Like Freeze panes feature in MS Excel)
    3. Column wise sorting.
    4. Expanding a row in a table in a size equal to the size of highest length data in a row.
    Please guide me if the above features are feasible to implement in JTable. If so please provide some help on this.

    The item no 4 is
    Say there are some 5 columns in a row onw of which is a drop down. Each cell in the row shall have different text with different characters. The row height should be set to the length of highest text length in that row when an option Expand is selected from a dropdown in that row. This is the requirement.

  • Firewire part 2 - Need Help Refreshing My PMU

    Recap:
    At some point a few months back, my FCP HD lost contact with my Canopus Datavideo. Under ABOUT MY MAC in HARDWARE>FIREWIRE it only states FIRE WIRE BUS and its speed.
    I have reloaded Quicktime and tried to REFRESH my AV connectons but to no avail. It was suggested I should reset my PMU but have no idea where to find it (the diagram supplied did not match up with my computer - the switch being next to the battery). Anyone have a step by step way to find it and reset it and hopefully solve my problem....? I am falling behind importing video and need to figure this one out.
    (Picture of my computer below if that helps...)
    Thanks!
    G4, Dual 800   Mac OS X (10.3.9)  

    Mike,
    please keep your threads together.
    This has EVERYTHING to do with this other thread and you should have posted this picture with it.
    x

  • Please help in storing JTable in database

    hai Abrami,
    I saw in JDK\bin\demo\jfc\Tableexample. but it contans example only for populating the Table with the values from database which I finished alraedy. But I treid of storing the Table values in database using VArray. but it contradicts with the several operations such as retireving Single field from database Updating the database when value single populated table changes.
    So please help me in this.This isthe final part of project.

    Bathina,
    Did you try doing an Internet search? I did one for the terms "jtable" and "database". Here are my results:
    http://tinyurl.com/4ttl4
    And if you just want someone to do your work for you, then try HotDispatch or Rent-A-Coder (or similar -- there are lots of others like these two).
    Good Luck,
    Avi.

  • Please Help me in JTable Updating   - URGENT

    Hai all
    am corrently working on a project which am using swing of 1.4
    here in one screen when user enteres data in JTable and clicks submit button i must read the whole Table model of the table and i will insert it to DB.
    in this am gettting problem.
    that is
    when user enters data into jtable and user directly clicks submit i can take all the data iin the table but only on tablce colum value i cant take which is the user currencly entering or modifying the filed.
    if after entering data i need to click any other cell or i need to just click tab to come out of the cell then only i cant take the data from that cell when inserting .
    pls anybody help me how to come out of this problem.
    thanking you
    Rajesh

    Hi
    before you save the changes you have to call stopCellEditing method.

Maybe you are looking for

  • How do you set up a different ipad on same computer with different itunes library

    I am trying to update a clients ipad (who does not have access to internet at his residence) on my personal computer.  When I open up itunes with his apple ID, I continue to get my itunes library information.  I don't want to mix my information with

  • Inconsistent view object result set

    (1)In JSP front-end, I have the following code: <% ComUtil c = new ComUtil(); String sAppConfig = c.getAppConfigStr(); %> <jbo:ApplicationModule id="am" configname="<%=sAppConfig%>" releasemode="Stateless" /> // A datatag is put here to print out a c

  • Vcac6.x blueprint customization question/problem

    Hi Guys, I just started with Vcac6.x blueprint customization I have a problem with my new blueprint that i have created concerning the customization Blueprint exist out of the VM template ( created in Vcenter ) with customization spec (also created i

  • 16 Bit in CS6

    It seems that in previous versions of (CS) I could set the bit preference for startup script.  I recently upgraded to CS6 and now must set the bit depth each time I open an image.  This is an easy work-around yet I would prefer to work on images in 1

  • User Exit Validation for CAT2 using CATS0003

    Hi all, I am using the user exit CATS0003 to validate the receiver cost center, receiver fund, receiver order and the receiver functional area.That is if any one of this fields are initial it will give an error message. But when I try to change an ex