• 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

Empty frame

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all i'm having a problem i cant solve by myself..

this is my drawer:



and this is my main


when i start the main metod appears aan empty frame witouth drawing the rectangle.. what is the problem?? sorry for my bad english
 
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Benvenuto al Ranch

Are you aware of the @Override annotation, which tells you whether you have overridden a method? Always use @Override when you are trying to override a method. Put @Override before public void printComponent and try compiling again, and the compiler should complain bitterly. Reason: spellign error. Not print, but paint.
By the way: give that method protected access, not public.
 
andrea brugnerotto
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Benvenuto al Ranch

Are you aware of the @Override annotation, which tells you whether you have overridden a method? Always use @Override when you are trying to override a method. Put @Override before public void printComponent and try compiling again, and the compiler should complain bitterly. Reason: spellign error. Not print, but paint.
By the way: give that method protected access, not public.



Thank you man!!! i'm a nob ^^ really really thanks!
 
Campbell Ritchie
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome
 
Bartender
Posts: 5465
212
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Give your RettangoloComponent a color. like

Greetz,
Piet
 
reply
    Bookmark Topic Watch Topic
  • New Topic