From - Sun Sep 01 05:23:02 2002 X-UIDL: 1030830133.23917.server2 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: <> Date: Sat, 31 Aug 2002 14:19:14 -0700 From: "L-Soft list server at DevelopMentor (1.8e)" Subject: File: "JAVA LOG0004" To: Steven Haryanto <[deleted]@[deleted]> ========================================================================= Date: Mon, 3 Apr 2000 11:15:09 -0700 Reply-To: Java Discussion Sender: Java Discussion From: Munir Hafez Subject: Class Loader Hello, Scenario: You are implementing an extension to the default class loaders defined by Java to be able to load new versions of a Java class file based on the date/time stamp on the file. Problem: You can easily check the date/time stamp of the file locally and decide whether to re-load the file or not, BUT if you extending a URLClassLoader and your files are coming from a remote web server, how can you determine that the file on the web server is newer than the version you have loaded into memory or on your local drive ??? Thanks. ========================================================================= Date: Mon, 3 Apr 2000 23:54:29 -0400 Reply-To: Java Discussion Sender: Java Discussion From: Stu Halloway Subject: Re: Class Loader In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi Munir, A simple approach would be to have a pair of version files (one each on client and server) that list class names and version numbers. Have your URLClassLoader use two URLs, one local and one remote. Then call getResource("http://remote/versions.xml"). Compare the versions to version numbers stored in your local copy of versions.xml. If versions match, then use the local URL. If they don't then get the bytes from the remote URL, save the class locally, load the class locally, and update the local versions.xml. I haven't done any JINI work--they may already have an architecture that solves this problem. Anybody know? Stuart Halloway DevelopMentor http://staff.develop.com/halloway > -----Original Message----- > From: Java Discussion [mailto:JAVA@DISCUSS.DEVELOP.COM]On Behalf Of > Munir Hafez > Sent: Monday, April 03, 2000 2:15 PM > To: JAVA@DISCUSS.DEVELOP.COM > Subject: [JAVA] Class Loader > > > Hello, > > Scenario: > You are implementing an extension to the default class loaders defined by > Java to be able to load new versions of a Java class file based on the > date/time stamp on the file. > > Problem: > You can easily check the date/time stamp of the file locally and decide > whether to re-load the file or not, BUT if you extending a URLClassLoader > and your files are coming from a remote web server, how can you determine > that the file on the web server is newer than the version you have loaded > into memory or on your local drive ??? > > Thanks. ========================================================================= Date: Thu, 6 Apr 2000 22:00:00 -0000 Reply-To: Java Discussion Sender: Java Discussion Comments: RFC822 error: Incorrect or incomplete address field found and ignored. From: Sudarson Roy Pratihar Subject: Problem in making a calendar MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01CD_01BFA013.74565160" This is a multi-part message in MIME format. ------=_NextPart_000_01CD_01BFA013.74565160 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I needed a calendar in java which has the following features: 1. The calendar should show the entire calendar of the year if only year = is specified only=20 in a JTextField corresponding to year 2. The calendar should show the calendar should show the calendar of the = month specified in corresponding JTextField specified = if only month is specified = =20 3. The calendar should show the calendar should show the calendar of = the month and year specified=20 4. The calendar should have some property of diary so that use can note = important events or appoinments against a date so that when = user clicks a date a dialog box with table appears. Can anybody have any solution or guide regarding this problem ? Please = help me. ------=_NextPart_000_01CD_01BFA013.74565160 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
 
I needed a calendar in = java which has=20 the following features:
1. The calendar should show the entire = calendar of=20 the year if only year is specified = only 
    in a=20 JTextField corresponding to year
2. The calendar should show the = calendar=20 should show the calendar of the month     =20             specified=20 in  corresponding JTextField specified if only month is=20             =    =20             =    =20        =20 specified          &nbs= p;            = ;  =20
3.  The calendar = should show the=20 calendar should show the calendar of the     =    =20             =    =20         month and year=20 specified 
4. The calendar should = have some=20 property of diary so that use can note important    =20         events or appoinments against a = date so=20 that when user clicks a date a dialog box with     table=20 appears.
 
 Can anybody have = any solution=20 or guide regarding this problem ? Please help me.
 
 
 
------=_NextPart_000_01CD_01BFA013.74565160-- ========================================================================= Date: Thu, 6 Apr 2000 22:00:48 -0000 Reply-To: Java Discussion Sender: Java Discussion Comments: RFC822 error: Incorrect or incomplete address field found and ignored. From: Sudarson Roy Pratihar Subject: Problem in setting an animated GIF image at JFrame's icon at titlebar MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01D8_01BFA013.90C1B560" This is a multi-part message in MIME format. ------=_NextPart_000_01D8_01BFA013.90C1B560 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable While trying to set an animated gif to a JFrame's iconimage using the = following code in MyFrames's constructor , I find the following problem: 1.. after myframe.setVisible(true) no screen is displayed.=20 2.. only java virtual machine runs. For information: os: windows 95 processor: pentium 2 builder IDE:Oracle JDeveloper 3.0 Partial code: /*file MyFrameTest.java */ public class MyFrameTest { MyFrameTest() { JFrame myframe=3Dnew MyFrame(); /*Intialization code * * * */ /*some code for adding action listener for window clasing*/ myframe.setVisible(true); =20 } public static void main(String args[]) { =20 MyFrameTest(); } } /*file MyFrame.java */ public class MyFrame extends Jframe=20 { /* some declaration*/ ImageIcon imageicon; =20 public MyFrame() { jbinit(); this.setIconImage(imageicon.getImage()); } =20 jbinit() { /* some code*/ imageicon =3D new = ImageIcon(MyFrame.class.getResource("animatedbutton.gif"); /* some other code*/ } } /* animatebutton.gif is an animated gif present in the current = directory*/ Can anybody help me ? or suggest something ------=_NextPart_000_01D8_01BFA013.90C1B560 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
 
While trying to set an animated gif to = a JFrame's=20 iconimage using the following code in MyFrames's constructor , I find = the=20 following problem:
  1. after myframe.setVisible(true) no = screen is=20 displayed.=20
  2. only java virtual machine = runs.
For information:
os: windows 95
processor: pentium 2
builder IDE:Oracle JDeveloper 3.0
 
Partial code:
/*file MyFrameTest.java
*/
public class MyFrameTest
{
       =20 MyFrameTest()
        = {
        = JFrame=20 myframe=3Dnew MyFrame();
       =20 /*Intialization code
 
       =20     *
          = *
       =20     *
       =20 */
        /*some=20 code for adding action listener for window clasing*/
       =20 myframe.setVisible(true);
 
}
        = public static=20 void main(String args[])
        = {   =20
        =    =20 MyFrameTest();
        = }
}
 
 
/*file MyFrame.java
*/
public class MyFrame extends Jframe =
{
/* some declaration*/
ImageIcon imageicon;
 
public MyFrame()
{
    jbinit();
    = this.setIconImage(imageicon.getImage());
  }
        =
jbinit()
{
/* some code*/
    imageicon =3D new=20 ImageIcon(MyFrame.class.getResource("animatedbutton.gif");
/* some other code*/
}
}
 
/* animatebutton.gif is an animated gif = present in=20 the current directory*/
 
 
Can anybody help me ? or = suggest=20 something
 
 
------=_NextPart_000_01D8_01BFA013.90C1B560-- ========================================================================= Date: Fri, 7 Apr 2000 15:31:48 -0700 Reply-To: Java Discussion Sender: Java Discussion From: Brian Maso Subject: Re: Class Loader Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sorry I didn't respond sooner... Jini does not have any dynamic class loading based on version like this. Products that do this include Sun's Java Embedded Server, and dyamic app servers such as Marimba's Castanet. Brian Maso DevelopMentor Java Curriculum Developer (http://www.develop.com) Blumenfeld & Maso, Inc. -----Original Message----- From: Stu Halloway To: JAVA@DISCUSS.DEVELOP.COM Date: Monday, April 03, 2000 8:54 PM Subject: Re: [JAVA] Class Loader >Hi Munir, > >A simple approach would be to have a pair of version files (one each on >client and server) that list class names and version numbers. Have your >URLClassLoader use two URLs, one local and one remote. Then call >getResource("http://remote/versions.xml"). Compare the versions to version >numbers stored in your local copy of versions.xml. If versions match, then >use the local URL. If they don't then get the bytes from the remote URL, >save the class locally, load the class locally, and update the local >versions.xml. > >I haven't done any JINI work--they may already have an architecture that >solves this problem. Anybody know? > >Stuart Halloway >DevelopMentor >http://staff.develop.com/halloway > >> -----Original Message----- >> From: Java Discussion [mailto:JAVA@DISCUSS.DEVELOP.COM]On Behalf Of >> Munir Hafez >> Sent: Monday, April 03, 2000 2:15 PM >> To: JAVA@DISCUSS.DEVELOP.COM >> Subject: [JAVA] Class Loader >> >> >> Hello, >> >> Scenario: >> You are implementing an extension to the default class loaders defined by >> Java to be able to load new versions of a Java class file based on the >> date/time stamp on the file. >> >> Problem: >> You can easily check the date/time stamp of the file locally and decide >> whether to re-load the file or not, BUT if you extending a URLClassLoader >> and your files are coming from a remote web server, how can you determine >> that the file on the web server is newer than the version you have loaded >> into memory or on your local drive ??? >> >> Thanks. >