From: <wak...@ea...> - 2005-04-28 22:40:09
|
Wait... that won't work. Java doesn't do multiple inheritance. Damn. I guess this is why they moved this method around between the versions. Ok... I'll use setSize() instead of setPreferredSize(). setSize() comes from Component in 1.4 ---Brett. -----Original Message----- From: wak...@ea... Sent: Apr 28, 2005 3:17 PM To: rai...@li... Subject: RE: [Rails-devel] The Player Class Oh hell. Yeah, I want to be compatible with 1.4 because 1.5 really hasn't gotten much market penetration yet. However, I'm using 1.5 on all my machines. That explains it. I suppose we just have Options extend from both JFrame and JComponent then. ---Brett. -----Original Message----- From: Erik Vos <eri...@hc...> Sent: Apr 28, 2005 3:05 PM To: rai...@li... Subject: RE: [Rails-devel] The Player Class > These conversions to static methods broke a whole bunch of > things, but I > think I've cleaned them all up, so the current code in CVS ought to > build and run without errors. Unfortunately this still does not apply to Options. I may now have found why: this reference http://java.sun.com/j2se/1.5.0/docs/guide/swing/1.5/ explains with that Java 1.5 setPreferredSize() has been promoted from class JComponent to Component. Now Component is in the class hierarchy of JFrame (the base class of Options), but JComponent is not. So that is why setPreferredSize does not compile with my Java 1.4.2. So either this method can't be used, or we must change to Java 1.5 as the agreed platform (I thought it was 1.4). Erik. ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |