• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

how to highlight impt date in JList..?

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi..
I need to know how to highlight impt date in my JList.. It goes like this.. As i'm doin a Calendar for storing impt schedule, i need to focus on dates that have appointment saved in the TextFile.. but was unsure how to do so.. Can anyone pls help out..? Thanks alot.. Urgently..
Regards..
 
Freya Tan
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mr Gregg,
i have tried out the Custom Cell Renderer thing.. but it's seem weird to me..


In my " public void showData() { "


D:\Stephenie\School Work\Yr1 Semester 2\Java Project\AppointmentPage.java:200: getFont() in AppointmentPage cannot override getFont() in java.awt.Component; attempting to use incompatible return type
found : void
required: java.awt.Font
public void getFont() {
^


is this correct.. i can't compile becos of the error..? how cum..?
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's a working example. You should port some of this into your current application to suit your needs.
 
reply
    Bookmark Topic Watch Topic
  • New Topic