Skip to main content

All Questions

Tagged with
0 votes
0 answers
44 views

I am trying to add image to jTable from mysql Database. but it Shows some text given in the following image

Trying science morning. but no success. I posted codes that can have problems please help me. This Is output. Instead of an Image, it shows this text. TheModel.java javaclass --->(I think the ...
luci_the_coder's user avatar
0 votes
1 answer
67 views

how can I get jtable to show multiple lines in a row

and i would like my data to show like this: MySql table but i only get this: java I used this query: GROUP_CONCAT(a.montant, a.type_avance,a.date_avance,a.remark SEPARATOR '\n') as Avance and it works ...
Yasmine El's user avatar
-2 votes
1 answer
104 views

How would I layout my JTable to separate SQL data?

I'm looking to layout my JTable to show each exercise separately. Currently it is storing everything in one table. The JTable in the image is how it is currently showing. I think I may need to make ...
mrjbcam's user avatar
0 votes
1 answer
121 views

First row(column names) are not showing up in java mysql

this is where the frame is located. I can't figure out if the problem is in the display itself or the code where I get the table data from mysql. public class Inventory implements ActionListener { ...
End my Suffering's user avatar
-2 votes
2 answers
44 views

Jtable data retrieval problem in swing java [duplicate]

I want to retrieve data in jtable from MySQL database everything is right but the data present at index 1 are not shown plz loo image 1 and 2. jtable img 1: MySQL table img2: public void ...
Madhurmoms's user avatar
0 votes
2 answers
176 views

How to fill jtable with the right data from another table?

I have a JTable with 6 columns, the rows for the first 3 columns comes from table1(subject_records_bsit_first_year) and the last 3 will come from table2(evaluation_permission). The two database table ...
user avatar
0 votes
0 answers
105 views

JTable doesn't show all the database data

In my Java project, I'm using the JFrame Form design panel to do a JTable for showing the data from a MySQL database. The problem is that the table doesn't show all the rows from the database. In fact,...
Adrián's user avatar
  • 19
0 votes
0 answers
40 views

Problem in Deleting Row from JTable And Mysql

I Need to delete selected row from Jtable which connected to Mysql database I successfully make another class to add book and it's work fine i make this class to delete book added in the table , but i ...
ALHAMADANI's user avatar
0 votes
0 answers
41 views

How to populate a Jtable in another Jframe created using netbeans GUI editor with specifc data from MYSQL Database? [duplicate]

I created a query to get the required data but have failed to get the JTable to populate. The table just appears empty. Essentially, I want to get an ID from one JFrame click a button, and open ...
Reis Bash's user avatar
-1 votes
2 answers
82 views

Scrollbar for JTable

so I have actually couple of issues where I could need some help. 1.) Actually I can display the SQL Result into the jList, that works so far. What I am actually missing are the names of the Columns. ...
P3ngu62's user avatar
  • 21
1 vote
2 answers
71 views

How to clear all data inserted in a jTable

I designed a jTable that will display data from a table in MySql DB. The table name is studentrolls with STRollID (int) as primary key and StudentID (Varchar), BachID (year) as foreign keys. So after ...
Kokotech's user avatar
0 votes
1 answer
138 views

Error in JTable java.lang.ArrayIndexOutOfBoundsException: 7 >= 7

I'm having a trouble with my JTable connected to Database. As soon as i add, delete or modify any data, the table changes correctly. However, after using the the Table's filter searcher, when i try to ...
Marcio's user avatar
  • 1
0 votes
1 answer
42 views

Why isn't JTable ModelListener working and how do you save JTabel cell edits to DB?

My goal is to be able to edit a JTable cell that, once edited and saved, saves the value into the database and loads the value onto the JTable. Currently, once I try to edit a JTable cell and press ...
Grant Hu's user avatar
0 votes
1 answer
140 views

Fill jtable from database and convert tinyint to checkbox in java

How i can fetch data from MySQL to JTable and add JTable column number 3 checkbox This is my code String sql = "select `id`,`CostCentersName`, case when `Status` = 1 then true else false end AS ...
cnmeysam's user avatar
0 votes
0 answers
128 views

Cannot display data from MySQL in Jtable

I am new to java and I try to learn by reading the examples I find in stackoverflow and on github. What I would create: a combox with months and years which will point to a DB, collect the data and ...
user avatar

15 30 50 per page
1
2 3 4 5
19