Re: How to make Image size as the label has?



Should be more or less the same. Extend the JDesktopPane and override
the paintComponent in that one.

Bart

.



Relevant Pages

  • Re: Interposer classes
    ... > and BeforeApplyUpdate events. ... When you extend a class you do not "override an event", ... method as well that fires the BeforeApplyUpdate event. ...
    (borland.public.delphi.language.objectpascal)
  • Re: Sorting JFileChooser
    ... Extend BasicDirectoryModel to CustomSortBasicDirectoryModel and ... override getModel() to return CustomSortBasicFileModel. ... a different Comparator or redefine the natural sort order of the elts ...
    (comp.lang.java.gui)
  • Re: Override paint() problem
    ... > If it is only visual functionality, a subclassed JMenu with an overridden ... > override the getPreferredSizemethod as well. ... I think overriding paintComponent() will do the job...the only thing I'm ...
    (comp.lang.java.gui)
  • Re: operator overloading
    ... If you do not have trust in the author, then extend the library class and override the method with your own implementation. ... If these are static utility methods they will not be overridable. ... The usual and best reaction to an untrustworthy API is not to extend it, trying to make a silk purse out of a sow's ear, but to abandon it in favor of one that works. ...
    (comp.lang.java.programmer)
  • Re: [JButton] change the icon periodicaly
    ... > I tried Threads in paintComponent but that doesn't work ... You should not need to override anything to get this to work. ... Rogan Dawes ... Please respond to "nntp AT dawes DOT za DOT net" ...
    (comp.lang.java.gui)