AWT Changes From JDK1.1.8 to JDK1.3

I have develop some GUI components using JDK1.3 and it worked perfectly. But now we have to change it to work on JDK1.1.x , Previously worked components are not functioning properly with JDK1.1.x specialy the paint repaint method , So do u have any idea to overcome from this situation.

You just have to compile one more time with the old version 1.1.8 and it will show you where the errors are, and try to fix all the warnings.

Similar Messages

  • Problems After shifting swing application from jdk1.3 to 1.4

    hi,
    i have shifted my Swing application from jdk1.3 to 1.4, some component settings changed in j2se1.4. are listed below
    1). i have added JComboBox to JPanel using BoxLayout, in jdk1.3 it is normal where as in 1.4 comboBox height is increased to panel height.
    Sample code
    (in a Panel)
         setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
    add(getYearComboBox());
         add(getMonthNameComboBox());
         add(getDayOfMonthComboBox());
    2). in jdk1.3 the icon which is set to JFrame is visible in the JOptioPane.showConfirmationDialog() also, but in 1.4 the icon is not visible in conformation dialog box.
    Sample Code
    in a JFrame's constructor
    public OptionPaneTest()
    ImageIcon icon = new ImageIcon("icon.gif");
    setIconImage(icon.getImage());     
    setSize(250,100);
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
    setVisible(true);
    JOptionPane.showMessageDialog(this,"hai", "Hai",JOptionPane.WARNING_MESSAGE);
    3). the Labels added to the panel or frame are displaying in light blue color with jdk1.3 and the same label displaying in black with j2se1.3
    Sample Code
    in a JPanel
    setLayout(new BorderLayout(20, 20));
    add(new JLabel("Testing Label Color"), BorderLayout.CENTER);
    please send solution to any or all.
    thanks in advance,
    Pavan.DV

    Thanks for your sugession.
    You realized me by showing the fact that there are no many classes
    Keep suggesting like this.
    I don't even know how to see the API documentation Before you told me.
    Don't take any issue as simple thing and never give foolish suggessions like this.
    If you know the Answer then share it or else musukoni kurcho ra

  • Error in @Override while chaning from JDK1.6 to JDk1.5

    Hi,
    I am getting following error while migrating from JDK1.6 to JDK1.5.
    Multiple markers at this line
         - implements org.quartz.Job.execute
         - The method execute(JobExecutionContext) of type TransferFiles must override a superclass
         method
    I have a class which implements Job interface having one method execute(JobExecutionContext context) . I am overriding this method inside one of my class by using @Override annotataion.
    It is working absolutely fine in JDK1.6 but while migrating to JDK1.5 it is showing the above error.
    Kindly help me in this regard.
    Thanks,
    AK

    Thank you very much for your kind help. I would like to tell you that by changing my enviroment to JDK1.5 from JDK1.6 it is asking for change the project facet. After changing the Project Facet from 6.0 to 5.0 I am getting error at @Override annotation line.
    I am sharing my code here.
    @Override
         public void execute(JobExecutionContext arg0) throws JobExecutionException {
              System.out.println("Quartz Scheduler: " + new Date());
              errFileList.clear();
              ArrayList<String> inputFileList = new ArrayList<String>();
              try {
                   Authenticate.setUser();
                   inputFileList = getInputFileList(yesterdayDate());
                   int x = 0;
                   Iterator<String> inputIterator = inputFileList.iterator();
                   while (inputIterator.hasNext()) {
                        String inputFile = inputIterator.next();
                        StringTokenizer st = new StringTokenizer(inputFile, "&");
                        String output = null;
                        while (st.hasMoreTokens()) {
                             String view = (String) st.nextElement();
                             if (view.startsWith("view")) {
                                  StringTokenizer st1 = new StringTokenizer(view, "=");
                                  while (st1.hasMoreTokens()) {
                                       output = (String) st1.nextElement();
                        x++;
                        String outputFile = OUTPUT_FILES + output + XML;
                        getAuthentication(Authenticate.getUserId(), Authenticate
                                  .getPassword());
                        status = copyfile(inputFile, outputFile, x);
                        runTime();
                   runDate();
                   LOG.info("Error Files Are : " + getErrorFileList());
                   LOG.info("No of Error Files : " + errFileList.size());
                   if ((null != status) && (errFileList.size() > 0)) {
                        setSendMail(true);
                        EmailHandler
                                  .dispatchEmail(toMailList(), Email.ERROR_FILES,
                                            TransferFiles.getErrorFileList().toString(),
                                            Email.FROM);
                   // readLogfile(
                   // "C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/XmlFileTransformation/FileTransform.log"
              } catch (Exception e) {
                   System.out.println("Exception" + e);
                   LOG.error("Exception" + e);
    Here I have two suggestions coming by eclipse.
    1.create execute method in super type ToolConstants
    2.Remove @Override annotation.
    but I have the same method inside an interface named as Job. So after removing the @Override annotation
    I am getting the following runtime exception.
    javax.servlet.ServletException: Servlet execution threw an exception
    root cause
    java.lang.NoClassDefFoundError: javax/activation/DataSource
         fileTransform.FileTransServlet.doPost(FileTransServlet.java:52)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    Please help me.
    Thanks,
    Ak

  • HTTPS from JDK1.2.1 to JDK 1.4.1

    We are trying to connect application running on JDK1.2.1 to application in JDK 1.4.1. Both applications are in Oracle 9ias application server but with different JDK and different physical machines.
    We are getting following error while trying to access to application on JDK 1.4.1
    java.lang.ArrayStoreException
    at java.lang.System.arraycopy(System.java)
    at java.util.Vector.copyInto(Vector.java)
    at com.sun.net.ssl.internal.www.protocol.https.ChunkedInputStream.c(DashoA6275)
    at
    com.sun.net.ssl.internal.www.protocol.https.ChunkedInputStream.<init>(DashoA6275
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.b(DashoA6275)
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.a(DashoA6275)
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream(Da
    shoA6275)
    at Perc939CallServlet.callServlet(Perc939CallServlet.java:103)
    We are using Entrust certificate and we already put cacerts file from jdk1.4 to jdk1.2.1 in jdk/jre/lib/security.
    This application was working till we upgraded version from 1.3.1 to 1.4.1.
    Is this is problem of 1.4.1 and how do we resolve this?
    Small code that will help is as follows
    //Dynamic registration of SunJSSE provider
    System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty("ssl.SocketFactory.provider", "com.sun.net.ssl.internal.ssl.Provider");
    //Create a URL object from the sURL String representation.
    uRemoteURL = new URL(sURL);
    //Get a connection to the remote object referred to by the URL
    ucConn = uRemoteURL.openConnection();
    //Set the DoOutput flag to true to use the URL connection for output
    ucConn.setDoOutput(true);
    ucConn.setRequestProperty("Pragma", "no-cache");
    oosToWrite = new ObjectOutputStream(ucConn.getOutputStream());
    //Write sInputString to the OutputStream which will be read from the remote servlet
    oosToWrite.writeObject(sInputString);
    oosToWrite.flush();
    oosToWrite.close();
    ucConn.connect();
    System.out.println("Connection " + ucConn.toString());
    if(ucConn==null)
         System.out.println("Connection is Null");
    System.out.println("getInputStream " + ucConn.getInputStream());
    if(ucConn.getInputStream()==null)
         System.out.println("ucConn.getInputStream() is Null");
    // Read the string object from the InputStream and return
    oisToRead = new ObjectInputStream(ucConn.getInputStream());
    Object oReadObject = oisToRead.readObject();
    sOutputString = oReadObject.toString();
    oisToRead.close();
    return (sOutputString);

    Basically ArrayStoreException comes :
    Indicate that an attempt has been made to store the wrong type of object into an array of objects.
    But in jdk1.4.1 it is said that
    No usage of java.lang.ArrayStoreException
    it may be problem of jdk1.4.1 and try to upgrade to 1.4.2
    Regards,
    Anand

  • Migration of large application from JDK1.4 to 1.6

    Hi,
    I want to migrate some large application code base's from jdk1.4 to jdk1.6. Need some help regarding this. Please let me know the following as mentioned below :
    1. Is there any tool/s available that can be used for this migration (Because manually it is very difficult for a application with almost 15,000 java files and 15 * 10^6 KLOC within a limited time frame).
    2. Steps that should be followed in such cases.
    3, If any tool is not available for such activity what are the salient points that are needed to be considered while migrating.
    Thanks in advance
    AnjanN

    I want to migrate some large application code base's from jdk1.4 to jdk1.6. Need some help regarding this. Please let me know the following as mentioned below :
    1. Is there any tool/s available that can be used for this migration (Because manually it is very difficult for a application with almost 15,000 java files and 15 * 10^6 KLOC within a limited time frame).
    2. Steps that should be followed in such cases.
    3, If any tool is not available for such activity what are the salient points that are needed to be considered while migrating.
    What is it that you think needs to be 'migrated'?
    Most applications will run just fine using 1.6 - it is compatible with 1.4 already.
    You need to conduct your own tests using 1.6 to see if there are any problems/issues with your app.

  • Issue on payroll area which is changing from biweekly to monthly in Mid of

    Dear Experts,
    I have an issue on payroll area which is changing from biweekly to monthly in Mid of the Month.
    One employee was retired on 29th of March, so his payroll area was changed from biweekly to monthly on 29th. For retire we are running the payroll on 8th of every month. When we are running payroll for April he has received only 29th and 30th retire salary, by the time he is not yet retired also.
    In this case the main problem is monthly payroll time is early then biweekly. so the employee is getting retire salary then his regular pay.
    Can you guide me where we can control that monthly payroll area should not be triggered at this movement.
    Thanks
    Chandra

    You can do that but it is not that easy as it sounds if you have to do that over a period of say 10-20 years...lot of operational work!!
    Also say if you load the retiree action one month ahead say on 03/01/2011. And the employee is retiring on  03/29.
    Retire payroll is on 04/08
    Biweekly is on 04/15
    Now you decide to lock the employees after the 1st biweekly check of March...say which was process 14 days before 04/15 would be 04/01. The employee number is locked between 04/01 to 04/15. For 14 days you have locked these employees!!
    What happens if there is adjustment pay...you have to manually go and unlock the employee and lock him after the adjustment check.
    I will let you decide based on the comfort, SAP effort, Operational effort and system maintenance.

  • When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?

    When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?
    I need to be able to send it to a PC in order to print it.

    Hard to say what is happening without examining the file.
    If you like click on my blue name and email me both the .pages file and the the .pdf you have made from it.
    Peter
    ps It would help to say what version of Pages you are using and on what you are running it. iOS or Mac and what version.

  • TS3899 I changed from an Iphone to a Android.  I can't get my email from other Iphones

    I changed from an Iphone to a Android.  Now I can't recieve emails from other Iphones.

    Email should not be a problem, text messages can be but not email if it is set up correctly on your new phone.

  • I have changed from an iPhone to a Sony but when my wife send a message on her IPhone it still gets sent as a iMessage how do I change the settings

    I have changed from an iPhone to a Sony but when my wife send a message it still gets sent as an iMessage how do I change the settings

    Hello, Vespa Boy125. 
    Thank you for visiting Apple Support Communities. 
    Here are the steps that you will need to process on your line to remove your number from iMessage. 
    iOS: Deactivating iMessage
    http://support.apple.com/kb/ts5185
    Cheers,
    Jason H. 

  • 'CHANGE' event not triggering for BTE 2214 on park/change from FBV1/FBV2

    I have designed a workflow template for FI parking. If the parked document is rejected, i need to trigger FIPP 'CHANGE' event for sending workitem to approver when someone changes the parked document. In SWEL event trace, the 'CHANGE' event is not getting raised.
    So i implemented a BTE 000002214 and now i am able to raise 'CHANGE' event and capture it in workflow. But this is only working when i park a document using FV50 transaction and later change it.
    But when i park a document using FBV1 and then make changes from FBV2, the 'CHANGE' event is not being triggered in SWEL. Should i implement some other BTE like 2218 etc? Can you please help?

    Hi Gokul,
    You can try handling the SAVE event instead of the CHANGED event.
    T-code FBV2 will not allow you to save the document unless you make some changes.
    Try implementing BTE 2218 and revert.
    Thanks,
    Sreekanth

  • I changed from i iphone 5 back to a iphone 4.. now my itunes does not recognise that i have a iphone 4! how do i convert my last back up (on iphone 5) to my new iphone 4?

    i changed from i iphone 5 back to a iphone 4.. now my itunes does not recognise that i have a iphone 4! how do i convert my last back up (on iphone 5) to my new iphone 4?

    In your case you can only restore from a backup that has been created with the same iOS version. An iPhone 4 can only run 7.1.2, and, unless your iPhone 5 did not run the same version, you can't use a newer iOS backup of the 5 on the iPhone 4

  • Downloads changing from "Downloading" to "waiting to download". Why?

    Tonight while downloading a HD movie I was watching a couple episodes of a TV show I have on my ATV. Between episodes I would check my download progress and find that the status had changed from "Downloading" to "waiting to download". Can't you watch videos and download something else at the same time?
    I did update a photo library and perform a sync during one of the shows I watched. Does that indefinitely pause a download. The sync took less than one minute.
    I'm glad there are a few people here that know everything about the ATV. Very helpful. Thanks, KMA

    Have you included an href in the jnlp element ?
    are you trying to version the jnlp file too ?
    /dietz

  • Have a 1st generation Apple TV, which is not showing as a device in iTunes. Had no problems with Apple TV until I changed from a Windows PC to an iMac. I have changed my IP address, sub mask address and router address in the Apple TV, Can anyone help?

    I have a 1st generation apple TV, which was working perfectly until I changed from a Windows PC to a Imac. The Apple TV will not show in Itunes. I have changed the IP address, sub mask  and Router IP address. Since changing I have switched everything of and on again. Can anyone help?

    I have a new router and computer. I have just remembered that just before my old PC died on me, I transferred my iTunes library to a hard drive. I can't remember exactly just how I got my library back, but there are definately things in my library now that were in my library on my old PC! Hope this makes sense. What do you mean by same location? Do you mean in the same place in the house?
    Another difference I have just thought of was my old router was connected directly to the computer bu I have not been able to do this with Sky as my PC is not near a phone socket! Will this make a difference?

  • Status keeps changing from invisible to online: why the issue is ignored?

    There is a serious issue raised in the parallel thread, which is critical for many people: "Status keeps changing from invisible to online" (initiated on ‎16-11-2014 by b.agne, Mac section). In short, when starting using a device, the Skype status changing from "invisible" to "online" - sometimes just for a moment, though enough for others to notice you. These affects very much any type of devices. I am sure the issue has already led to multiple personal crisises and potentially financial losses due to buseness partnership issues (I came close to that myself, and now use anything but Skype for business). The question is: WHY the issue is completely ignored by Skype, Microsoft and expert comunity? Please post the solution if anybody knows how to fix the issue, or suggest how to make Microsoft to know that it should be fixed. Kind regard...

    Hi, I also have the same issue. I change the status to Invisible and a later on it is already as "Online", without having even touched/opened Skype. The only way that I see this may happen is that I have the app installed on the smartphone, but before it never had this issue, but from some month ago it started. Any correction or suggestion to work around this issue? Regards

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

Maybe you are looking for