I have a java program that dispays the temperature in digit format ie 87.7F. I would like to make a thermometer using graphics to do this. I have only been using java for 2 weeks now and just wonding if someone could give me pointers on the best way to accomplish this.
guy40az
0
Junior Poster in Training
Recommended Answers
Jump to Postmake your class extend JFrame , then create a jpanel , that will be your own custom Contentpane , which you can add to the JFrame ,
then inside the contenpane , have two textfeilds , and a button in between them , 1st one takes in input , and …
Jump to PostFirst, let's assume you know some basic graphics stuff - how to create and display a window (if not you need to study a tutorial on that first).
Then look through this tutorial …
All 6 Replies
somjit{}
60
Junior Poster in Training
Featured Poster
mKorbel
274
Veteran Poster
somjit{}
60
Junior Poster in Training
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
somjit{}
commented:
+1 for the JProgressBar idea.
+3
<M/>
commented:
:)
+0
iqraw kaleem
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.