RSS Forums RSS

very basic java GUI Program...

Please support our Java advertiser: Programming Forums
Reply
Posts: 93
Reputation: localp is an unknown quantity at this point 
Solved Threads: 2
localp localp is offline Offline
Junior Poster in Training

very basic java GUI Program...

  #1  
Nov 9th, 2008
i am new to java, i am writing this program so where when the user inputs RGB values the resultant colour should be displayed on a frame. (note that you cann't use the color class in java)

1.) i have successfully completed coding for where the user inputs the RGB values and it works perfectly.

what i want to do is, how to display the colour that corresponds to this 3 RGB values ...

for example , if we input (223,70,98) as for RGB , the corresponding colour should be displayed... can your'l do me a sample code so that i could understand the scenario ..

help !!!!
Local P ...
AddThis Social Bookmark Button
Reply With Quote  
Posts: 3,465
Reputation: peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold 
Solved Threads: 412
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: very basic java GUI Program...

  #2  
Nov 9th, 2008
Any chance of you being student at University of Westminster in your second year doing 1st coursework?
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote  
Posts: 93
Reputation: localp is an unknown quantity at this point 
Solved Threads: 2
localp localp is offline Offline
Junior Poster in Training

Re: very basic java GUI Program...

  #3  
Nov 9th, 2008
Originally Posted by peter_budo View Post
Any chance of you being student at University of Westminster in your second year doing 1st coursework?




Your right !
Local P ...
Reply With Quote  
Posts: 3,465
Reputation: peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold 
Solved Threads: 412
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: very basic java GUI Program...

  #4  
Nov 9th, 2008
All what John wants is just you to re-create Color class, but call it Colour as not to clash with original class. The exercise aims for you to show your understanding the concepts of creating new classes through variety of constructors as described per assignment. With set of accessors and setters methods to manipulate values stored by this class.

Notes for teaching week 3,4 & 5 is exactly what you will need it. If you want to pop in the library Deitel's book Java How to Program (6th Ed) and chapter 3 is again useful material to look into. So apply John's notes of dice to your assignment and you will do just fine

PS: The program is not GUI, you may learn about GUIs in the Event-Driven Programming module in second semester;)
Last edited by peter_budo : Nov 9th, 2008 at 5:02 am. Reason: add PS
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote  
Posts: 93
Reputation: localp is an unknown quantity at this point 
Solved Threads: 2
localp localp is offline Offline
Junior Poster in Training

Re: very basic java GUI Program...

  #5  
Nov 9th, 2008
but is there a way that i could view the implementation of the class color . could some one please advice me on this
Local P ...
Reply With Quote  
Posts: 3,465
Reputation: peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold peter_budo is a splendid one to behold 
Solved Threads: 412
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: very basic java GUI Program...

  #6  
Nov 9th, 2008
Here is link to Color class in the API
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 711 | Replies: 5 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:14 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC