Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
Problem resolved. Just amazed that such task take so much effort to research and resolve.
I have an index comming from a micro-controller through the serial port.
Based on the value I would like to highlight the row corresponding to the index.
The user will therefore see a color jumping up and down the table depending on the incoming index values. Any ideas?
I have been able to send the data from the table to the ram of the microcontroller which subsequently stores
it into rom. I send the entire table . In the future if I change only on cell I would like to send this value out to the controller.
I am a novie at Java but realise it very important for GUI.
Still trying to highlight rows in table based on a row value. Created a stand alone close that does it but cannot get it integrated
with netbeans .At the end of the loop all of the cells are painted red.Help Required.
Thanks but I am trying to understand what I need to do with this code.
Should I abandon the custom cell renderer subclass? Where should this method go?
JTable table = new JTable() {
This is confusing me. What is the code doing. You are creating a table and calling a method at the same time?
Netbeans already created the table .
My problem is that at the end of the scan through the table I am only seeing the last row pinted red.
as the index get incremented from 1 to 16 it is not shoing me the row corresponding to the index.It is as if it can only display the contents
after it get out of the routine and returns control to the main program.
The sample code I used is somehow able to show me each row in red as the indexd goes from 0 to 16.