Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to highlight impt date in JList..?  RSS feed

 
Freya Tan
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • 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
  • 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..?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a working example. You should port some of this into your current application to suit your needs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!