JTable jj=new JTable(); //1
tabobj2=datadisplay.table; //2
ImageIcon icon = new ImageIcon("C:\\Users\\Public\\Pictures\\Sample Pictures\\hello.jpg"); //3
jEditorPane1.setText("Name:Sandeep Singh\n Id:A2345\n Locationelhi\n Designation: Manager\n"); //4
jEditorPane1.insertComponent(tabobj2); //5
int h=jTextPane1.getText().length(); //6
jTextPane1.setCaretPosition(h); //7
insertComponent(datadisplay.table); //8
int h=jTextPane1.getText().length(); //9
jTextPane1.setCaretPosition(h); //10
jTextPane1.insertComponent(datadisplay.table); //11
int n=jEditorPane1.getLocation().x; //12
jTextPane1.setLocation(n, n); //13
jTextPane1.insertcomponent(tabobj2); //14
jTextPane1.add(tabobj2,-1); //15
This is the code: I am nog able to shift caret to some other position 'h' so that i can add another component at end of file, or suggest me some solution to add multiple jTables to jTextPane and some string above and below the tables.
Looking forward to here solution from you.
Thanks in Advance