Is correct? Application (JFrame) to Applet (JApplet)

I need to convert a java application (JFrame) into an applet (JApplet), and I have seen a few "big steps":
1�: make the class extends to JApplet instead of a JFrame
2�: To replace the construction method by init ()
3�: To comment the main method
Is correct?, because I have some doubts that later I�ll explain
Thanks

I think in the init method (in a JApplet) I cannot call the super method. but my problem is how to change this? if in others files (in Files.java) I have calls to super metod, because thus it constructs a dialog box, asking for a file.
In file Files.java I have a class called "Abort" (extends to JDialog) in whitch:
/* class Files.java */
class Abort extends JDialog
          boolean abort = true;
          JTextArea mensage = null;
          JButton acept = new JButton("Acept");
          JButton cancel = new JButton("Cancel");
          Abort(String nanemFile)
               super(MainClassFile.mainWindow, " Attention!", true);
/* clas Files.java */Please help

Similar Messages

  • Launching application from an applet

    Can someone please tell me what are the ways I can launch an application from an applet? Can you provide some examples, etc.
    Thanks,
    Syed

    If you want to run an application, all you have to do is call it's main() method.
    public class AppApplet extends JApplet {
        public void init() {
            JButton button = new JButton("Start App");
            this.getContentPane().add(button);
            button.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    String[] args = ...;
                    AppClass.main(args);
    public class AppClass {
        public static void main(String[] args) {
            //Do whatever
    }

  • Creation of an applet JApplet in a desktop JDesktopPane

    how its posible to load from a jar file an applet which come from package my.package.myclass of the jar file.
    next i want to put it in a JInternalFrame and put this desktop frame in a JDesktopPane.
    indeed i can move the applet around with other applets in a little window!
    here's the code of the desktop_panel.javapackage kevin_shell;
    import kevin_shell.Kdemos.*;
    import java.awt.*;
    import java.awt.event.*;
    import java2d.MemoryMonitor;
    //import java2d.demos.Lines.*;
    import javax.swing.*;
    import javax.swing.border.BevelBorder;
    import javax.swing.border.Border;
    import com.l2fprod.gui.plaf.skin.Skin;
    import com.l2fprod.gui.plaf.skin.SkinLookAndFeel;
    public class desktop_panel extends JPanel {
    JInternalFrame win_info = new JInternalFrame();
    public void killme(KDemo demo) {
    demo = null;
    public void view_image(String file) {
    thread_load_cube load = new thread_load_cube(file);
    load.start();
    JPanel jPanel2 = new JPanel();
    JDesktopPane pan_workspace = new JDesktopPane();
    public void paint(Graphics p) {
    p.setColor(Color.blue);
    p.fillRect(0, 0, 1000, 1000);
    p.setColor(Color.red);
    p.drawString("kevin OS", 10, 10);
    super.paint(p);
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel jPanel3 = new JPanel();
    JButton jButton1 = new JButton();
    JInternalFrame win_memory = new JInternalFrame();
    JInternalFrame win_terminal = new JInternalFrame();
    MemoryMonitor win_mem = new MemoryMonitor();
    KClock win_perf = new KClock();
    JPanel jPanel4 = new JPanel();
    JLabel jLabel1 = new JLabel();
    JButton jButton2 = new JButton();
    JLabel jLabel6 = new JLabel();
    JLabel jLabel4 = new JLabel();
    JButton but_collect = new JButton();
    JButton but_refresh = new JButton();
    JTextField nb_free = new JTextField();
    Border border1;
    Border border2;
    JLabel jLabel2 = new JLabel();
    JTextField ed_jdk_path = new JTextField();
    JTextField nb_total = new JTextField();
    JLabel jLabel3 = new JLabel();
    JLabel jLabel5 = new JLabel();
    bean_clock bean_clock1 = new bean_clock();
    JPanel jPanel5 = new JPanel();
    JPanel jPanel1 = new JPanel();
    JTabbedPane tabber = new JTabbedPane();
    BorderLayout borderLayout2 = new BorderLayout();
    JList list1 = new JList();
    JList list_system = new JList();
    JList list3 = new JList();
    JButton jButton3 = new JButton();
    JButton jButton4 = new JButton();
    JButton jButton5 = new JButton();
    JButton jButton6 = new JButton();
    test_applet Itest_applet = new test_applet();
    JButton jButton7 = new JButton();
    public desktop_panel() {
    try {
    jbInit();
    System.out.println("initializing desk");
    bean_clock1.setLocation(0, 0);
    bean_clock1.setSize(win_info.getPreferredSize());
    //bean_clock1.start();
    pan_workspace.add(win_info);
    win_info.show();
    win_info.setLocation(0, 0);
    win_info.setSize(win_info.getPreferredSize());
    //Class bruno=java.lang.ClassLoader.getSystemClassLoader().loadClass("demo_cube");
    //Object b=bruno.newInstance();
    pan_workspace.add(win_memory);
    win_memory.show();
    win_memory.setSize(win_memory.getPreferredSize());
    pan_workspace.add(win_terminal);
    win_terminal.show();
    win_terminal.setSize(win_terminal.getPreferredSize());
    pan_workspace.add(win_mem);
    win_mem.setVisible(true);
    win_mem.setSize(win_mem.getPreferredSize());
    pan_workspace.add(win_perf);
    win_perf.setVisible(true);
    win_perf.setSize(100, 100);
    win_perf.setLocation(400, 400);
    win_perf.startClock();
    //list_system.add("welcome to kevin os");
    //tabber.add(list_system);
    tabber.add(list1);
    tabber.add(list3);
    win_terminal.getContentPane().add(tabber, BorderLayout.CENTER);
    win_terminal.setSize(300, 300);
    win_terminal.setResizable(true);
    win_terminal.setLocation(400, 400);
    System.out.println("ok");
    } catch (Exception e) {
    e.printStackTrace();
    class thread_load_cube extends Thread {
    String file;
    thread_load_cube() {
    file = "pics/babe1.jpg";
    thread_load_cube(String f) {
    file = f;
    //win_cube
    public void run() {
    try {
    System.out.println("cube loading");
    Class demo = java.lang.ClassLoader.getSystemClassLoader().
    loadClass("kevin_shell.Kdemos.demo_cube");
    KDemo win_cube = (KDemo) demo.newInstance();
    //list_system.add("win cube (loading....)");
    java.net.URL stoneURL = main_win.class.getResource(file);
    java.net.URL skyURL = main_win.class.getResource(
    "pics/babe2.jpg");
    //win_cube=new demo_cube();
    win_cube.set_parameters(stoneURL, skyURL);
    //pan_workspace.add(win_cube);
    win_cube.show();
    win_cube.setLocation(300, 300);
    win_cube.setSize(300, 300);
    win_cube.setResizable(true);
    win_cube.setTitle("java 3d cube");
    win_cube.setIconifiable(true);
    win_cube.init();
    win_cube.setClosable(true);
    System.out.println("ok");
    } catch (ClassNotFoundException e) {
    e.printStackTrace();
    System.out.println("problem with class");
    } catch (IllegalAccessException e) {
    e.printStackTrace();
    System.out.println("acces problem");
    } catch (InstantiationException e) {
    e.printStackTrace();
    System.out.println("instance");
    class thread_load_j3d extends Thread {
    public void run() {
    //list_system.add("j3d test loading...");
    //kev
    try {
    Class demo = java.lang.ClassLoader.getSystemClassLoader().
    loadClass("kevin_shell.Kdemos.demo_j3d");
    KDemo win = (KDemo) demo.newInstance();
    //pan_workspace.add(win);
    win.show();
    win.setLocation(300, 300);
    win.setSize(300, 300);
    win.setResizable(true);
    win.setTitle("j3d test");
    win.setIconifiable(true);
    win.init();
    win.setClosable(true);
    System.out.println("ok");
    } catch (ClassNotFoundException e) {
    e.printStackTrace();
    System.out.println("problem with class");
    } catch (IllegalAccessException e) {
    e.printStackTrace();
    System.out.println("acces problem");
    } catch (InstantiationException e) {
    e.printStackTrace();
    System.out.println("instance");
    private void jbInit() throws Exception {
    border1 = BorderFactory.createMatteBorder(4, 4, 4, 4,
    new Color(91, 91, 91));
    border2 = BorderFactory.createBevelBorder(BevelBorder.RAISED,
    Color.white, Color.white,
    new Color(153, 153, 204),
    new Color(153, 153, 204));
    jButton2.setBackground(Color.white);
    jButton2.setBorder(BorderFactory.createLineBorder(Color.black));
    jButton2.setPreferredSize(new Dimension(70, 70));
    //jButton2.setIcon(new ImageIcon(desktop_panel.class.getResource("icons/on_kevin.gif")));
    jButton2.setMargin(new Insets(0, 0, 0, 0));
    jButton2.setBounds(new Rectangle(9, 6, 52, 54));
    jLabel1.setFont(new java.awt.Font("Dialog", 1, 70));
    jLabel1.setForeground(SystemColor.desktop);
    jLabel1.setText("kevin os 1.0");
    jLabel1.setBounds(new Rectangle(66, 6, 255, 22));
    this.setLayout(borderLayout1);
    this.setBackground(UIManager.getColor("EditorPane.selectionBackground"));
    jPanel2.setLayout(null);
    jPanel2.setBackground(UIManager.getColor(
    "InternalFrame.activeTitleBackground"));
    jPanel2.setMaximumSize(new Dimension(100, 100));
    jPanel2.setMinimumSize(new Dimension(100, 100));
    jPanel2.setPreferredSize(new Dimension(100, 100));
    jPanel3.setBackground(new Color(255, 231, 0));
    jPanel3.setPreferredSize(new Dimension(60, 10));
    jButton1.setBackground(Color.white);
    jButton1.setBorder(BorderFactory.createLineBorder(Color.black));
    jButton1.setPreferredSize(new Dimension(50, 50));
    //jButton1.setIcon(new ImageIcon(desktop_panel.class.getResource("icons/info.gif")));
    jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    jButton1_mouseClicked(e);
    pan_workspace.setBackground(UIManager.getColor(
    "List.selectionBackground"));
    pan_workspace.setOpaque(false);
    pan_workspace.setAlignmentX((float) 0.0);
    pan_workspace.setAlignmentY((float) 0.0);
    pan_workspace.setLayout(null);
    win_memory.setToolTipText("");
    win_memory.getContentPane().setBackground(SystemColor.controlDkShadow);
    win_memory.setTitle("memory");
    win_memory.setBorder(border2);
    win_memory.setIconifiable(true);
    win_memory.setNormalBounds(new Rectangle(10, 10, 381, 254));
    win_memory.setPreferredSize(new Dimension(381, 254));
    win_memory.setMinimumSize(new Dimension(381, 254));
    win_info.setFrameIcon(null);
    win_info.setPreferredSize(new Dimension(269, 230));
    win_info.setMinimumSize(new Dimension(269, 230));
    win_info.setBorder(border2);
    win_info.getContentPane().setBackground(UIManager.getColor(
    "CheckBoxMenuItem.selectionBackground"));
    win_info.setMaximumSize(new Dimension(100, 100));
    win_info.setResizable(true);
    win_info.setIconifiable(true);
    win_info.setTitle("kevin OS info");
    but_collect.setBackground(Color.orange);
    but_collect.setText("garbage collector");
    but_collect.setBounds(new Rectangle(13, 114, 162, 31));
    but_collect.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    but_collect_mouseClicked(e);
    but_refresh.setText("refresh");
    but_refresh.setBounds(new Rectangle(11, 150, 162, 32));
    but_refresh.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    but_refresh_mouseClicked(e);
    nb_free.setBackground(Color.white);
    nb_free.setDisabledTextColor(Color.white);
    nb_free.setEditable(false);
    nb_free.setBounds(new Rectangle(107, 40, 108, 22));
    jPanel4.setBackground(UIManager.getColor(
    "InternalFrame.activeTitleBackground"));
    jLabel2.setBackground(Color.pink);
    jLabel2.setFont(new java.awt.Font("Dialog", 1, 50));
    jLabel2.setForeground(Color.red);
    jLabel2.setText("-OS-");
    jLabel2.setBounds(new Rectangle(98, 12, 139, 52));
    ed_jdk_path.setBackground(Color.white);
    ed_jdk_path.setDisabledTextColor(Color.white);
    ed_jdk_path.setEditable(false);
    ed_jdk_path.setBounds(new Rectangle(104, 14, 190, 22));
    nb_total.setBackground(Color.white);
    nb_total.setDisabledTextColor(Color.white);
    nb_total.setEditable(false);
    nb_total.setBounds(new Rectangle(228, 40, 108, 22));
    jLabel3.setToolTipText("");
    jLabel3.setText("free");
    jLabel3.setBounds(new Rectangle(106, 70, 112, 16));
    jLabel5.setBounds(new Rectangle(228, 70, 112, 16));
    jLabel5.setText("total");
    jLabel5.setToolTipText("");
    win_terminal.setTitle("terminal");
    jPanel5.setLayout(borderLayout2);
    jButton3.setPreferredSize(new Dimension(50, 27));
    jButton3.setText("cube");
    jButton3.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton3_actionPerformed(e);
    jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    jButton3_mouseClicked(e);
    jButton4.setText("test");
    jButton4.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    jButton4_mouseClicked(e);
    jButton5.setText("skin cool");
    jButton5.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    jButton5_mouseClicked(e);
    jButton6.setText("skin xp");
    jButton6.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    jButton6_mouseClicked(e);
    jButton7.setText("test applet");
    jButton7.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton7_actionPerformed(e);
    win_memory.getContentPane().add(jPanel4, BorderLayout.CENTER);
    jPanel4.setLayout(null);
    jPanel4.setMinimumSize(new Dimension(100, 100));
    jPanel4.setPreferredSize(new Dimension(100, 100));
    jLabel6.setText("java memory");
    jLabel6.setBounds(new Rectangle(16, 40, 78, 18));
    jLabel4.setText("jdk path");
    jLabel4.setBounds(new Rectangle(18, 16, 76, 18));
    this.add(jPanel3, BorderLayout.WEST);
    jPanel3.add(jButton7);
    jPanel3.add(jButton1, null);
    jPanel3.add(jButton3, null);
    jPanel3.add(jButton4, null);
    jPanel3.add(jButton5, null);
    jPanel3.add(jButton6, null);
    this.add(pan_workspace, java.awt.BorderLayout.CENTER);
    jPanel4.add(jLabel4, null);
    jPanel4.add(jLabel6, null);
    jPanel4.add(but_collect, null);
    jPanel4.add(ed_jdk_path, null);
    jPanel4.add(nb_free, null);
    jPanel4.add(nb_total, null);
    jPanel4.add(but_refresh, null);
    jPanel4.add(jLabel3, null);
    jPanel4.add(jLabel5, null);
    win_info.getContentPane().add(jPanel2, BorderLayout.CENTER);
    jPanel2.add(jButton2, null);
    jPanel2.add(jLabel1, null);
    jPanel2.add(jLabel2, null);
    tabber.add(list1, "list1");
    tabber.add(list_system, "list_system");
    tabber.add(list3, "list3");
    void but_refresh_mouseClicked(MouseEvent e) {
    nb_free.setText(String.valueOf(java.lang.Runtime.getRuntime().
    freeMemory()));
    nb_total.setText(String.valueOf(java.lang.Runtime.getRuntime().
    totalMemory()));
    void jButton1_mouseClicked(MouseEvent e) {
    win_info.show();
    win_info.setLocation(0, 0);
    //win_info.setSize(100,100);
    void but_collect_mouseClicked(MouseEvent e) {
    java.lang.Runtime.getRuntime().gc();
    but_refresh_mouseClicked(e);
    //list_system.add("collecting memory");
    void jButton3_mouseClicked(MouseEvent e) {
    //win_cube.begin_anim();
    void jButton4_mouseClicked(MouseEvent e) {
    thread_load_j3d load = new thread_load_j3d();
    load.start();
    void jButton6_mouseClicked(MouseEvent e) {
    try {
    Skin skin = null;
    //windows xp
    skin = SkinLookAndFeel.loadThemePack("skins/BeOS-theme.jar");
    // set the skin
    SkinLookAndFeel.setSkin(skin);
    // ask Swing to use Skin Look And Feel
    UIManager.setLookAndFeel(
    "com.l2fprod.gui.plaf.skin.SkinLookAndFeel");
    SwingUtilities.updateComponentTreeUI(this);
    this.validate();
    this.updateUI();
    } catch (Exception er) {
    System.out.println("Failed loading L&F: ");
    er.printStackTrace();
    void jButton5_mouseClicked(MouseEvent e) {
    try {
    Skin skin = null;
    skin = SkinLookAndFeel.loadThemePack("skins/themepack.zip");
    // set the skin
    SkinLookAndFeel.setSkin(skin);
    // ask Swing to use Skin Look And Feel
    UIManager.setLookAndFeel(
    "com.l2fprod.gui.plaf.skin.SkinLookAndFeel");
    } catch (Exception er) {
    er.printStackTrace();
    void jButton3_actionPerformed(ActionEvent e) {
    thread_load_cube load = new thread_load_cube();
    load.start();
    public void jButton7_actionPerformed(ActionEvent e) {
    JApplet applet=null;
    frame_applet frame=null;
    try{
    //ExtClassLoader ecl = new ExtClassLoader("/home/kevinet/CODE/JAVA/jlguiapplet2.3.1-selfsigned/lib/jlguiapplet2.3.jar");
    //Class demo = ecl.loadClass("javazoom.jlgui.player.amp.PlayerApplet");
    Class demo = java.lang.ClassLoader.getSystemClassLoader().loadClass("kevin_shell.Kdemos.test_applet");
    applet = (JApplet) demo.newInstance();
    frame=new frame_applet(applet);
    } catch (ClassNotFoundException cnfe) {
    cnfe.printStackTrace();
    System.out.println("problem with class");
    catch (IllegalAccessException iae) {
    iae.printStackTrace();
    System.out.println("acces problem");
    catch (InstantiationException ie) {
    ie.printStackTrace();
    System.out.println("instance");
    System.out.println("hello");
    pan_workspace.add(frame);
    applet.init();
    //applet.setLocation(0,0);
    applet.start();
    frame.setVisible(true);
    frame.show();
    frame.setLocation(300, 300);
    frame.setSize(300, 300);
    frame.setResizable(true);
    frame.setTitle("test applet");
    frame.setIconifiable(true);
    frame.setClosable(true);
    }

    What about calling getLocation on the applet itself?
    Otherwise, if you are using Swing, you can try (where "this" is the applet object):
    javax.swing.SwingUtilities.getWindowAncestor(this).getLocation();
    or
    javax.swing.SwingUtilities.convertPointToScreen(this.getLocation(), this);
    The latter should work, at least.

  • Any idea on how to change this application to an applet!!!!

    Hi i was just wondering if it is possible to change this simple application into a applet. It is for my coursework. I have done what they have asked me to but i want to go one step further.
    This applet is like a television, it has the same functions as a tv
    package television;
    /*class to model a Television*/
    class Television {
        final int BBC1 = 1, BBC2 = 2, ITV = 3, CH4 = 4, CH5 = 5;
        /*declare constants*/
        int currentChannel;
        boolean powerOn;
        int[] channelSelect = new int[6];
        /* declare variables*/
        void tvOn() {
            if (powerOn) {
                System.out.println("The television is already on");
            } else {
                powerOn = true;
                System.out.println("The TV's power is" + powerOn);
                System.out.println("Current channel is BBC 1");
                currentChannel = BBC1;
        void tvOff() {
            if (!powerOn) {
                System.out.println("The television is already off");
            } else {
                powerOn = false;
                System.out.println("The Tv's power is" + powerOn);
        void channelSelect(int selectedChannel)
            if (selectedChannel == currentChannel) {
                System.out.println(selectedChannel + "Already selected");
            } else if (selectedChannel < BBC1) {
                System.out.println("No channel found");
            } else if (selectedChannel > CH5) {
                System.out.println("No channel found");
            } else {
                currentChannel = selectedChannel;
                System.out.println("Current channel is" + currentChannel);
                switch (currentChannel) {
                case 1:
                    System.out.println(" BBC 1 " + channelSelect[BBC1]);
                    break;
                case 2:
                    System.out.println(" BBC 2 " + channelSelect[BBC2]);
                    break;
                case 3:
                    System.out.println(" ITV " + channelSelect[ITV]);
                    break;
                case 4:
                    System.out.println(" CHANNEL 4 " + channelSelect[CH4]);
                    break;
                case 5:
                    System.out.println(" CH5 " + channelSelect[CH5]);
                    break;
    This is to run television
    /*class to instantiate a program for a TV set*/
    package television;
    import java.io.*;
    class TVSet implements Serializable {
        public static void main(String[] args) {
            Television myTV = new Television();
            /*create an instance of class Television*/
            myTV.powerOn = false;
            myTV.currentChannel = 1;
            /*initialise variables*/
            System.out.println("Turning the TV on");
            myTV.tvOn();
            myTV.channelSelect(3);
            myTV.channelSelect(2);
            myTV.channelSelect(4);
            myTV.channelSelect(5);
            myTV.channelSelect(1);
            System.out.println("Turning the TV off");
            myTV.tvOff();
        }This is what i have already done for my applet. It displays "The current channel is" and then it displays the channel 1, 2 , 3 etc in a sequence.
    package television;
    import java.awt.Font;
    import java.awt.Graphics;
    public class ChannelTheridge extends java.applet.Applet implements Runnable {
        Font f = new Font("Courier", Font.BOLD, 24);
        String stringName = "The current channel is:";
        Thread runner;
        int channelSelect;
        public void start() {
            if (runner == null) {
                runner = new Thread(this);
                runner.start();
        public void stop() {
            runner = null;
        public void run() {
            while (true) {
                channelSelect++;
                repaint();
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {}
        public void paint(Graphics g) {
            g.setFont(f);
            g.drawString(stringName + channelSelect, 10, 50);
    Is it also possible to display the channel name as well as it's number?

    Well first of all, you will need to create a Television object in the main applet class.
    Also, instead of having System.out.println, have a currentMessage variable that u set the messages to, that way, you can always do
    g.drawString(teleObject.currentMessage)in that way you can display the name of the channel.

  • Will files with hidden file extensions in Mac OS X still open automatically in the correct application on a windows PC?

    I recently submitted some job applications that had word and PDF attachments. However, when I saved the files I unwittingly had the 'hide extension' box selected. Will these files still open automatically in the correct application on a PC? (ie are the file extensions just 'hidden' at my end or are they completely removed by selecting this option so as to cause problems when opening them on a PC?)
    Thanks in advance.

    Thanks, so having the 'hide extension' box checked when saving a new file for the first time won't save the file without an extension? (because I understand that Mac OS doesn't rely on the file extension but has other ways of knowing what the file is and what to open it with)
    The reason I'm paranoid now is because one of the fields where I was uploading a file had a message to Mac users saying something like 'Mac users, be sure to save your file with an extension'. Surely this just happnes by default??

  • Error in Clock-In/Out Corrections Application

    Hi All,
      when i try to access the Clock-In/Out Corrections Application i am getting the below error.
    Can anyone help me to fix the above issue??
    Regards,
    Mahesh

    Yes, your just trying with some digits which will not exist. As I mentioned in my previous reply you put the cursor in that field and press F4 key, it will show all existed pernr details.
    Other wise just click on round button in that field. See below screen shots.
    Click on Continue
    Select employee number and double click or click on continue.
    Assign your user ID as I mentioned in previous post in IT 0105 and subtype 0001.

  • -- A file association problem exists, which prevents the file you're trying to download from being associated with the correct application by the operating system using window 7  IE 11

    A file association problem exists, which prevents the file you're trying to download from being associated with the correct application by the operating system
    USING WINDOW 7  IE 11  HOW CAN I FIX???

    Try downloading the offline installers:
    Adobe Reader
    Flash Player for Internet Exporer - ActiveX
    Flash Player for Firefox - NPAPI

  • Error:This page contains content of "application/x-java-applet" type. You do not have the plug-in required to view this content.

    Hi....i m using Mac OS x 10.5.8 with safari Version 5.0.2 (5533.18.5). I just updated the Java version to Java 6 and now m getting below error:
    This page contains content of “application/x-java-applet” type. You do not have the plug-in required to view this content.
    Please help me out on this....

    I am also having a problem with this. My website is hosted through "www.onlinepictureproof.com" and now that my laptop is back from repair with OS X 10.6.8 I am unable to upload my photos to my work website. It says "a plug-in is needed to display this content. Install plug-in" and then a window pops up that says "no suitable plug-ins were found".  Below that is "unknown plug-in (application/x-java-applet)" with a link to "manual install" which takes me to "http://www.oracle.com/technetwork/java/index-jsp-141438.html#download" which just leaves me lost. I've tried downloading the "JRE" but I have zero idea what that means or if Im downloading the proper thing. Once I click on the "download JRE" it brings me to a download page where there are WAY too many items for me to choose from to download, when I have no idea what I need or why I need it. please help, this is driving me insane. I actually preferred my constantly crashing laptop to the state its in now, "like brand new" back from apple repair...I have already updated everything that is promted through "Software Updates".
    "OnlinePictureProof.com" only directs me to apple support.
    Thank you for any help you can offer!
    Sheila

  • Can't find Unknown Plugin (application/x-java-applet;version=1.6.0)

    Trying to use OracleBI Discoverer for running custom reports on Oracle E-Business Suite database.
    Additional plugins are required to display all the media on this page.
    Click here to download plugin.
    Completing the Plugin Finder Service
    No suitable plugins were found.
    Unknown Plugin (application/x-java-applet;version=1.6.0)

    I found a (better) workaround. However, you'll have to edit the pluginreg.dat file, which on Mac OSX is found under:
    ~/Library/Application\ Support/Firefox/Profiles/<hash>.default/
    (where ~ is your home directory path)
    [http://www.emanuelis.eu/2010/06/17/how-to-manage-firefox-plugins-in-pluginreg-dat-file/]

  • Launching applications from an applet

    How do you launch applications from an applet? For example,launch a notepad exceutable when you click on a button (an awt component)?

    Hi,
    you can launch an application from the applet using the Java RunTime environment.
    Runtime.getRuntime().exec(applicationName);
    But to do this the applet needs permissions.It should be a trusted applet.

  • Runing Applications in JAVA Applets

    Hello all, I would like to run an application written in some other language inside a JAVA Applet, for example, if I want to run an application like "electronic work bench" or "piant" inside a JAVA Applet to view it on the internet, so many users can use the application online, so...... can anyone help me???????

    If your current application includes a GUI, let's say a JFrame that you are showing everything in, then it is a simple matter to create a JApplet that does everything your JFrame is doing. You can then make a jar of your program and include it in a webpage using any of the methods outlined in applet tutorials.

  • From Jframe to applet

    Hi everyone.I need to convert graphics from JFrame to Japplet. I am using a class which contains the main method the main method runs the constructor of my class and the constructor creates a new object which is a class that extends to Jframe.I need to make this program to run in an Internet Explorer.Any ideas Please help me guys It is impossible to change the whole program. Thanx in advance.

    Your JFrame extended class functionality should be put into the JApplet's
    functionality. Probably mostly in the init method.
    You could launch JFrames from within an Applet. But I'm not sure why
    you wouldn't just migrate everything your JFrame does.

  • JFrames in Applets?

    hi im trying to put Jframes in an applet.
    this is the part i dont get.
    public class Scores extends Applet
    but i need to extend JFrames aswell which it wont allow me to do.
    any help or suggestions would be most Appreciated

    1) You're probably better of extendind JApplet, rather than the basic AWT Applet object.
    2) JFrames represent independant windows on the client machine. Applet windows are not independant, they are controlled by the browser so your main window can't be both (though an applet can open JFrame windows, if the browser doesn't block them).
    3) If you want to put child windows in your applet window, that's fine, but they aren't going to JFrame based. You should be able to set up a JDeskPane, for example, inside your applet window and put JInternalFrame windows in that. If the child windows are fixed then use JPanel objects.

  • Finding and retrieving an XML file from an application and an applet

    I have a problem.
    I have data stored in an XML file. I want to be able to call that file and store it into a document object from an application standing alone on a computer as weel as from an applet that would be running over the web.
    I don't know how to do this.
    When I use a relative path name for the application it attaches the path of the folder that contains java.exe. I could do something with the class path but this wouldn't help the end user of the application on a different computer. For similar reasons I don't want to hard code because I don't know where the final applet will be stored.
    I have a table that holds, sorts and filters the data so I want the table to collect the data, I don't want to dictate the path from the applet or the application, I want a method that is consistant with both scenarios.
    Can anyone offer some advice?

    I've just finished trying it out, here is what I did:
    String xmlDocName="filename.xml";
    java.net.URL fileURL=this.getClass().getResource(xmlDocName);
    private final String fileName = fileURL.toString().substring(6);
    The substring removes the "file:/" from the URL.
    This works fine in the IDE, I have even stored the xml file in a lower folder e.g. package_folder/xml_folder/filename.xml and replaced the xmlDocName with "xml_folder/filename.xml" and it worked fine.
    I haven't tried it in an applet because I'm running IE and as you are well aware there are problems with swing and IE applets. But you answer deserves the Duke Dollars, thank you very much.

  • How to open JSP session from a java application or an applet?

    Hi,
    My problem is a bit challenging (at least for me) and its not about JSP but it is about a web application..
    I couldnt find a better place to post this question I am sorry if this is not the right place to post it..
    I need to enable users log into my website by checking username and password and reading and checking the data from a usb device located in client computer.
    I can read from the device thorough JNI using the third party DLL file for the device... I have no problem with that..
    Since I need to make native calls I am planning to develop a java application so I let the users open the application using web start.. Once my application is running on client side after reading the device and getting login password information (assuming login information correct), How can I open a web session for the that spesific user and a web browser and let the user browse the web site on his/her own session?
    I would appreciate any guidance..
    Thanks..

    add the values in the header using...
    response.addHeader("userNmae","XXXX");use it in all ur pages like say..
    if(!request.getHeader("userName")!=null && request.getParameter("userName").equlas(""))
    String username=request.getParameter("userName");
    }

Maybe you are looking for

  • How Do I sync my iPhone 4 Phone Contact List to my iPhone 4s?

    I just recieved my new iPhone 4s and I was able to sync most of the stuff from my iPhone 4 to it. However when it came to my contact list we're having an issue. I have a MacBook Pro i5 Dual Core processor running OS Lion but can't seem to know how to

  • Apple Mobile Device Helper has stopped working - stuck in loop

    I keep getting a message/check box (AppleMobileDeviceHelper has stopped working)whenever I load iTunes under Vista. If I don't click and respond, my task bar gets cluttered up with these messages - I don't know what to do short of uninstalling everyt

  • Opening html in textedit

    I'm trying to edit html files in text edit. Every time I open one it warns me that this file I wrote is an application I downloaded from the internet ("index.shtml" is a web application downloaded from the Internet. Are you sure you want to open it?"

  • TEXT  2 AUDIO

    I am studying for a promotional exam, and have several documents I will like to convert them from text to voice and save them in audio formats so that I can take them and sync the audio files on my iPhone and listen to them on the go, what will be th

  • BI with CCA, PCA & CO-PA

    Hi Guys, Can anyone explain me the difference between CCA, PCA & CO-PA with BI. Say if I have CO-PA in my client will I be going for CCA & PCA or all three modules are different. I gone thru few forums and sites, but these CCA , PCA & CO-PA are confu