LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Java Applet Updating (https://www.linuxquestions.org/questions/programming-9/java-applet-updating-225376/)

logicdisaster 09-01-2004 04:00 PM

Java Applet Updating
 
I created a table which pulls a list of games from a mysql database, i have filters at the top that allow the user to pick a topic like 2d side scroller or rpg and i want the table to filter out everthing except what the filter indicates, Im not quite sure how to do this i know how to get the event and figure out which topic it is but im not sure how to send it and requery and update the table. Do i use repaint or something right now i have the whole applet in the init() method and it draws just fine and shows the table with the content and stuff. So how do i get the filters to work? I dont need help with the sql or anything just need to know how to requery the database redraw the table with the information i need

foo_bar_foo 09-01-2004 10:32 PM

Hi,
i remember fighting with that once i think the answer was

table.revalidate();
table.repaint();


All times are GMT -5. The time now is 07:19 AM.