This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!