Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

am I allow to use java.awt.Color?

 
fei lin
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
since the spec say only swing.
Can I use java.awt.Color to select color and color code fonts in the assignment?

Thanks
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
since the spec say only swing.


where ?? can you provide me the link.
 
Simon Hogg
Greenhorn
Posts: 7
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the parts of AWT that are required for Swing, such as the event listeners in java.awt.event, so java.awt.Color should be fine.

Simon
 
Hrishikesh Thatte
Greenhorn
Posts: 3
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I second Simon.
 
Alex Belisle Turcot
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by fei lin:
since the spec say only swing.
Can I use java.awt.Color to select color and color code fonts in the assignment?

Thanks


Same as previous ranchers... The constraint with the assignment is that you can only use the SWING Components. For other features (listeners...), I believe it is generally accepted on this forum that you can use classes outside of SWING as long as SWING doesn't offer the same improved classes (Button --> JButton).

I used java.awt.Color myself to display error messages in red, status messages in green, apply borders around components...

So, go ahead and do your magic

Alex
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic