• 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

two applets

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Class comlexMenu is an applet that has an associated frame that can be displayed or hidden fashion to The frame contains a menu bar containing two menus called Colours and Font respectively.
The Colours menu allows the user to select the frame�s background colour from the following: white, light grey and yellow. The default colour is white. The following text os displayed, in black, in the middle of a label object: �A frame demonstration�.
The Font menu allows the user to select from the following font sizes and updates the text in the label object accordingly: 10, 12, 14, 16, 18 points. The default size is 12 points. An additional item called Message, allows the user to change the message displayed in the label. When selected it causes a modal dialog box, similar to that in class SimpleDialog, to appear. The dialog box contains a text field, width 30 columns, which displays the message �Enter your new message�, and a button marked �OK�. The user then enters a new message and presses the OK button whereupon the dialog box disappers and the new message appears in the frame�s label. Submit PDL designs for class ComplexMenu�s methods together with a Java implementation suitably indented and commented.
You are to implement an applet, called FileName with the user interface shown in the diagram. The user inputs a file name by clicking on the appropriate buttons. As each character is input it is displayed in the upper text field.
In addition to these buttons, a menu called Options must be included in the interface.
This menu should contain two items: Test and Reset. On selecting the Test menu option an appropriate message should appear in the lower text field indicating whether or not the current file name is valid. After this, button presses should not be accepted until the user selects the Reset menu option to clear both text fields ready for a new file name to be entered. At other times Reset should simply clear any current filename in the top text field.

please can anyone help!

[ UD: added CODE tags for better readability ]
[ December 14, 2005: Message edited by: Ulf Dittmer ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Keith-

Welcome to JavaRanch (or rather, welcome to the world of posting on JavaRanch )

What exactly is the problem you're facing? Does the code not do what you expect it to? Then you should post a short explanation what you were expecting and why, and how what's really happening differs from that.
 
reply
    Bookmark Topic Watch Topic
  • New Topic