• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

alert boxes

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a problem with my homewrok I read the solution ginev by Mr Daniel Searson but I am still not clear.If you could summarize how the code is wriitten I would be cery grateful.
Here it is
Write a simple class called Message with a single public method that brings up a modal dialog with a user specified string
message. The box should have a single button with the label "OK". When the button is pressed, the box is dismissed. This class should have a single static, public method with this signature:
public static void alert(String message, Frame parent)

Thanks
Michael
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems pretty clear to me. What have you come up with so far. Please code it for me won't cut it around here. What in particular do you not understand? What have you tried? Have you even started? We will help around here, but don't ask people to do your homework.
Here is a link to the sun tutorial that should help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic