
Sir this is table code. i created successfully ,but i want to get table data.so could you please help me for this problem.Thank you sir import java.util.*; import java.awt.*;
import javax.swing.*; import javax.swing.event.*; import java.awt.event.*; import java.awt.print.*; public class table extends JFrame { //3 month table details JTable table=null; JScrollPane js=null; Container cp=null; JPanel p=null; JLabel months3=null,date=null,ghba1c=null,per=null; JButton jb1=null;
public table() { cp=getContentPane(); cp.setLayout(null); cp.setBackground(Color.pink);
//3months details months3=new JLabel("3 Months-Report"); date=new JLabel("Date"); ghba1c=new JLabel("GHbA1c"); per=new JLabel("%");
//3 months details String a[][]=new String[2][2]; final Object colheads[]={"Date","%"}; final Object rowdata[][]={{"",""},{"",""},{"",""},{"",""},{"",""},{"",""}}; table=new JTable(rowdata,colheads); p=new JPanel(null); months3.setBounds(40,10,300,40); date.setBounds(190,20,300,40); ghba1c.setBounds(400,20,300,40); per.setBounds(470,20,300,40); table.setBounds(100,50,460,80); jb1=new JButton("submit"); jb1.setBounds(790,400,100,40); int h=ScrollPaneConstants.HORIZONTALSCROLLBARAS_NEEDED; int v=ScrollPaneConstants.VERTICALSCROLLBARAS_NEEDED;
cp.add(per); cp.add(ghba1c); cp.add(date); cp.add(months3); cp.add(table); cp.add(jb1);
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent we)
{
dispose();
//System.exit(0);
}
});
}
public void actionPerformed(ActionEvent ae)
{
} public static void main(String args[]) { table o=new table(); o.setSize(900,900); o.show(); } }

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.