kelso
Regular Member
- Nov 30, 2009
- 479
- 276
A friend needs some java help and as he is not a member of BHW and does not know anything about it so I reckoned I?d try to help him by sourcing some advice from here.
So the task in hand is (so I?ve been told) pretty simple:
There?s a mySql database with 2 columns: cars and pictures.
In netbeans we have a class connector with which we are making a connection to the database.
He?s made a simple GUI (JFrame) with 2 buttons.
He wants 1 of the buttons to fetch car1 with picture1 and the other to fetch all cars with their appropriate pictures.
So the question is: what code should he add to those buttons so that they would fetch and display that data?
So the task in hand is (so I?ve been told) pretty simple:
There?s a mySql database with 2 columns: cars and pictures.
In netbeans we have a class connector with which we are making a connection to the database.
He?s made a simple GUI (JFrame) with 2 buttons.
He wants 1 of the buttons to fetch car1 with picture1 and the other to fetch all cars with their appropriate pictures.
So the question is: what code should he add to those buttons so that they would fetch and display that data?