| | |
very basic java GUI Program...
![]() |
•
•
Join Date: Apr 2008
Posts: 102
Reputation:
Solved Threads: 2
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 !!!!
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 ...
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, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
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;)
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 6: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, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
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, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- doing a program blinded (Java)
- Java GUI problem - "BeanBox" swing component implementation (Java)
- Regular GUI design help (Java)
- Java Tutorials (Java)
- Impementing First GUI into Current App (Java)
- Java Error (Java)
- Enter string to the next line (C++)
- Dasher in java (Java)
- High-Level Languages (Computer Science)
Other Threads in the Java Forum
- Previous Thread: inter JVM method calls
- Next Thread: help...want to cr8 mobile game "go"
| Thread Tools | Search this Thread |
account android api applet application array arrays automation bidirectional binary birt bluetooth class classes client code columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield jtree julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source oracle plazmic print problem program project property recursion ria scanner search server set sharepoint smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree unlimited webservices windows






