i have two Jtabbedpane, one were there is my Jtable and my Jbutton ( Open File chooser, Save ), what i want is, when i click on " Open File chooser ", a file will choose in our laptop to import the file .The file is in text file , that same data and charecters will enter into DB Table it has 7 columns.After that Save button will click means, the message pop up will generate (" IMPORT DATA SUCCESSFULLY") . I tried to mingle on 1 tab tabpane and jtable and my button, it does'nt work.
If anyone know means , please respond with sample code as soon as possible.
sorry for the inconvenience.
I did'nt get any error.
I created JTABBEDPANE seperately. And i done to IMPORT THE FILE IN DATABASE.Previous post i posted all.
My question is how to add JTabbedpane and i attached the image(1a.png) that form will display on 1 tab.Another tab is empty.
Can anyone help , to this project.
If Anyone Knows , can you please help me how to read the text file to JTable by using JFilechooser ?
Even the text file contains the specific charecters line length
eg: idUsernamePasswordEmailAgeGender ( ID = 2 Chars, Username = 10 chars ( if username not having 10 chars means, it include space for that, password = 5 chars, email = 5 chars, Age = 2 chars, Gender = 1 chars)