• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Display problem in JTable of an Applet

 
Ranch Hand
Posts: 473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using an JApplet for displaying two JLists and two JTables in the central panel.

Applet is doing some computing and then displays files in the table above say table1. When this table is clicked on the row, appropriate file is selected and its word contents are displayed in second table which is below.

Image is here

This second table row gets sort of "bend", which straightens on selecting but some other row gets "bend" and so on till the table soon gets ugly.

I am using a class BadarTableModel which extends AbstractTableModel. Both the tables use it.

Maybe changing row values to String from Object will affect its behaviour?

Thanks,

Maki Jav
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All the lines in that picture look perfectly straight to me (and I doubt that JTable is capable of drawing non-straight lines). Can you be more specific about what the problem is?
 
Maki Jav
Ranch Hand
Posts: 473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Please see that image again. i have put the different image. Sorry for that

I made the table editable and copied those two rows that were troubling me and got these.

<html>a target, when t<body bgcolor=yellow text=red><b>here</b> is matching (similar</body></html>

<html>present a message "t<body bgcolor=yellow text=red><b>here</b> is no matching"</body></html>

Seems like there is a problem in my logic that is causing this problem. What I am doing is
highlighting the words found.

Thanks,

Maki Jav
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic