Solved

My Color Chooser

Posted on 2003-12-03
5
989 Views
Last Modified: 2010-05-18
I have been trying to teach myself java.  I have been using the Deitel & Deitel book Java How to Program, 5th Edition.  Does anyone know where I can find the solutions to the problems at the end of the chapters?  I wish I could look at the finished examples.  Anyway, I have been trying to do problem 14.12 and need to know how to do it.  Here is the question:

Declare a subclass of JPanel called MyColorChooser that provides three JSlider objects and three JTextField objects.  Each JSlider represents the values from 0-255 for the red, green and blue parts of a color.  Use the red, green and blue values as the arguments to the Color constructor to create a new Color object.  Display the current value of each JSlider, the JTextField should be changed accordingly.  Declare class MyColorChooser so it can be reused in other applications or applets.  Use your new GUI component as part of an applet that displays the current Color value by drawing a filled rectangle.
0
Comment
Question by:brassmon
  • 2
  • 2
5 Comments
 
LVL 15

Assisted Solution

by:Javatm
Javatm earned 150 total points
Comment Utility
Friend;

You might need to work for that on your own then. Anyways Im also using a Deitel & Deitel book
Java How to Program but I'm using the 3rd edition which is also good.

Here are some sites which can help you :

For Color Chooser :
http://java.sun.com/docs/books/tutorial/uiswing/components/colorchooser.html

For JSlider :
http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JSlider.html

For JTextField :
http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html

This old questions in EE will help you :

http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_11970879.html
http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20449365.html

Hope it helps . . .
Javatm

0
 
LVL 15

Expert Comment

by:Javatm
Comment Utility
If you find it hard to do the old questions on EE can help you
with that just follow the links, thank you.

Javatm
0
 
LVL 15

Accepted Solution

by:
jimmack earned 200 total points
Comment Utility
Considering the cost of the book, I think that this is probably a bit of a con, but it looks like the solutions are published in yet another book:

http://www.amazon.com/exec/obidos/tg/detail/-/013142579X/ref=pd_sim_books_2/104-9942625-3144764?v=glance&s=books
0
 
LVL 2

Assisted Solution

by:f_98
f_98 earned 150 total points
Comment Utility
0
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
;-)
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Receive file in Servlet 1 36
bunnyEars2 challenge 6 66
json example 39 110
unix in java example 9 37
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now