Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2008
    Posts
    12
    Rep Power
    0

    Default inherited from the Component class

    hi all,

    i have attached a txt file with my code inside. It is a fairly basic program so I do not think the answer will be too complex, the code works fine it is the very last part discussed below??

    right at the end i need to call repaint() which is part of the Picture Plotter class, the code i have at the the mo to do this is plotdarryl.repaint(); which does not work, i have since read the instructions and realised that "it is Not part of PicturePlotter; but inherited from the Component class via Container and JComponent classes"

    so i need to change plotdarryl.repaint(); to something different, but not sure what, any ideas anyone????
    Attached Files Attached Files

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,558
    Rep Power
    25

    Default

    code1.java(39,30) : error J0019: Expected identifier
    I get the above error compiling your code.

    plotdarryl.repaint(); is outside of a method.
    Move it inside of some method's {}

Similar Threads

  1. How to extend Messages Component
    By Jothi in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 05-20-2008, 08:50 AM
  2. hiding inherited methods
    By java_fun2007 in forum New To Java
    Replies: 1
    Last Post: 01-05-2008, 02:16 PM
  3. Same component on all JTabbedPane
    By java_novice in forum AWT / Swing
    Replies: 4
    Last Post: 08-06-2007, 09:09 AM
  4. Help with custom component
    By Falcon1 in forum AWT / Swing
    Replies: 8
    Last Post: 07-21-2007, 12:39 PM
  5. Replies: 3
    Last Post: 06-07-2007, 05:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •