The Artima Developer Community
Sponsored Link

Java Answers Forum
applets

1 reply on 1 page. Most recent reply: Sep 21, 2003 10:03 PM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
rob molaski

Posts: 1
Nickname: molaski
Registered: Sep, 2003

applets Posted: Sep 20, 2003 10:26 AM
Reply to this message Reply
Advertisement
I am trying to create a program that converts a temperature from celsius to fahrenheit via an applet program. The program specifies that after the button to convert is implemented a new text should appear at the bottom of the applet. How can i repaint the applet after the button is pressed and make a different message appear than the one that appeared before the button was implemented?


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: applets Posted: Sep 21, 2003 10:03 PM
Reply to this message Reply
In the
public void paint(Graphics g1)
{
}
method draw the different mesaage.

Call repaint after u finish calculating the temp

Flat View: This topic has 1 reply on 1 page
Topic: help me!!!!!!!!!!!!!!!!!! Previous Topic   Next Topic Topic: help needed in snmp in java....!!!!!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use