User Profile
Collapse
-
LOL ah man, solved. changed indexOf() > 0 to >=0 -
-
did you define the array?
example Object[] cars = new cars[6];
and not just Object[] cars;Leave a comment:
-
Whole class just in case
Code:import javax.swing.*; import javax.swing.border.*; import java.awt.*; import javax.swing.table.*; import java.awt.event.*; import java.util.*; import java.text.*; import java.io.*; public class Sampol extends JFrame { private JPanel pMain, pMenu, pCont, pAddRecords, pSearch; private JTable table; private JButton
Leave a comment:
-
JTabel, Model, and Searching Records
For some reason the searching isn't comparing strings right, according to my debugging they should be, something else must be wrong?
The actual search method when user clicks search
Code://SEARCH RECORDS private void doSearch() { int rows = 0; String search = tSearch.getText(); int index = cbSearch.getSelectedIndex(); String iSearch = ""; for(int i=0;i<tData.length;i++)
No activity results to display
Show More
Leave a comment: