Java Applet - AWT Container Conflicts

Hello,
I am currently programming a Java applet, and so far I have been fine aligning the GUI. I added everything to a panel, then added
the panel to the applet.
But, I have more then "page" that needs to be accessible. Example: a login screen where you type in your name and pass, once you login a new GUI is loaded and the old one disappears.
I tried creating a separate panel and adding components to it for a separate "page" but for some reason this affects my first panel, even though it's not yet visible, and I haven't added it to the applet, somehow it affects it and I am unable to get both to line up.
My question: How can I create totally separate containers that I can make visible/invisible whenever needed, without them affecting each other?
Any help would be greatly appreciated.

Blinksys wrote:
I was just using AWT because it seemed simpler. I'm more then happy to use swing though, Use Swing because it's better.
can you explain a bit more about how I could about using JDialog?Any of this is a bit much to explain. I can tell you that it is similar to using a JFrame in that you would probably create a JPanel the way with all the components desired, place it in the contentPane of a JDialog and then show the JDialog by calling setVisible(true), but this wouldn't be teaching you anything. I / we are much better at answering direct questions such as "why is this bug occurring". For a general question such as this, I recommend that you to to the Sun Java Swing tutorials and start studying.
Also, I suspect that you are trying to learn Java by creating a complex program. If so, I strongly advise you to stop and back up. Java and any other subject of similar complexity must be learned in a progressive step-wise fashion usually from a tutorial or book (or both). Otherwise you end up doing what is often called trial-and-error programming, which is a process doomed to failure.
Edited by: Encephalopathic on Jan 25, 2008 9:11 PM

Similar Messages

  • Java.awt.Container.add(Container.java:345) how can i handle this

    dear all,
    i want to design an outlook for a chat applet. but this seems to tough as i am getting a run time error
    my code is:
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    * the import that are required for this class
    public class outer extends Frame //implements ActionListener, Runnable
    private TextField txtusername,txtpassword,txtroomname;
    private Label lblusername,lblpassword,lblroomname,lbllistofrooms;
    Button okBtn,exitBut;
    Color backColor=null,btnBackClr=null,btnForeClr=null;
    String[] roomsavailable = {" one ", " two ", " three", " four"};
    private JList rooms = new JList(roomsavailable);
    /** the costructor*/
    public outer()
    { // super(st);
    backColor=new Color(200,200,255);
    btnBackClr=new Color(225,240,255);
    btnForeClr=new Color(205,205,205);
    setBackground(backColor);
    setLayout(null);
    lblusername = new Label("Username");
    lblusername.reshape(insets().left+5,insets().top+10,60,20);
    add(lblusername);
    txtusername=new TextField();
    txtusername.reshape(insets().left+75,insets().top+10,60,20);
    add(txtusername);
    lblpassword = new Label("Password");
    lblpassword.reshape(insets().left+5,insets().top+30,60,20);
    add(lblpassword);
    txtpassword=new TextField();
    txtpassword.reshape(insets().left+75,insets().top+30,60,20);
    add(txtpassword);
    lblroomname = new Label("Select Room");
    lblroomname.reshape(insets().left+5,insets().top+50,60,20);
    add(lblroomname);
    txtroomname=new TextField();
    txtroomname.reshape(insets().left+75,insets().top+50,60,20);
    add(txtroomname);
    okBtn=new Button("Login");
    okBtn.reshape(insets().left+25,insets().top+80,60,20);
    add(okBtn);
    // okBtn.addActionListener(this);
    exitBut=new Button("EXIT");
    exitBut.reshape(insets().left+50,insets().top+80,60,20);
    add(exitBut);
    // exitBut.addActionListener(this);
    public static void main(String[] args)
    // Create a JFrame
    JFrame frame = new JFrame("client side");
    // Create a outer class object
    outer outerobj = new outer();
    // Add the outer to the JFrame
    frame.getContentPane().add(outerobj, BorderLayout.WEST);
    // Set Jframe size
    frame.setSize(800, 400);
    //set resizable true
    frame.setResizable(true);
    // Set JFrame to visible
    frame.setVisible(true);
    // set the close operation so that the Application terminates when closed
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    when i compile it it compiles but gives run time error like this
    RUN TIME error:
    Exception in thread "main" java.lang.IllegalArgumentException: adding a window
    to a container
    at java.awt.Container.addImpl(Container.java:434)
    at java.awt.Container.add(Container.java:345)
    at outer.main(outer.java:75)
    Press any key to continue...
    i know erroe in this line
    frame.getContentPane().add(outerobj, BorderLayout.WEST);
    but how shall i add to get the proper layout by getting benifit of insets method
    reply soon
    please

    You can't add a frame to a frame.
    Try chaing the class definition from
    public class outer extends Frameto
    public class outer extends PanelPlease note to format your code (you'll get a faster response) use [ code]
    Object names should always start with a capital letter. outer --> Outer

  • How can i display multiple Pictures in a java.awt.Container best?

    hi,
    I just started with a new Project, it works just like a FileManager.
    On entering a directory all the files in it shall be displayed in a scrollable area. Displayed means here a Graphical representation of the file, in case of a picture a small preview version of it.
    I put together a javax.swing.JScrollPane with a java.awt.Container and viewport. The Container has a FlowLayout.
    Now for every image in a Directory I create a Component-class in witch I overwrote the public void paint(Graphics g) to display a scaled version of the image, this scaled version is created in the Constructor of my Component-class.
    this works fine for just a few images, but if i try to open a directory with a lot of pictures it takes a long time at the beginning and sometimes it just kills the application.
    so i changed in a way that only when a Component is in view of the visible rectangle of the scroll pane the scaled image will be created, and when the component gets out of view the image is set to null.
    now it is running without killing the application, but it takes way too long to scroll now, because the images are loaded all the time.
    so i figured i must be doing something wrong, so what is the best way to get small previews for up to a few hundred files and then display them in a scrollable area? (like in Windows Explorer if you activate the miniature preview)
    if anyone can give me some hints, that would be great
    thanks shirasuresh

    This might give you some ideas:
    import java.awt.*;
    import javax.swing.*;
    public abstract class LazyIcon implements Icon {
        private int width;
        private int height;
        private Image image;
        public LazyIcon(int width, int height) {
            this.width = width;
            this.height = height;
        protected abstract Image createImage();
        public int getIconHeight() {
            return width;
        public int getIconWidth() {
            return height;
        public void paintIcon(Component comp, Graphics g,int x, int y) {
            if (image == null)
                image = createImage();
            g.drawImage(image, x, y, comp);
    }You could also do this with a custom component class, but I like the JLabel + Icon combination.
    Any if you want to get fancy, you could load images in another thread, at low priority, so when the user is just sitting there, your code is preparing the panel for scrolling ;-)
    Message was edited by:
    BigDaddyLoveHandles

  • Java Applets with AWT

    Hi,
    I have the problem to display the applet with AWT. If I am running the same applet in the internal server it works fine.If I am running through the web its giving Class not found exception.That web server also is mapped into the same server.
    Here is the code.
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class NotHelloWorldApplet extends Applet
    public void init()
         try{
              setLayout(null);
              Label label1= new Label("Hello World!");
              label1.setSize(200,200);
              add(label1);
         }catch(Exception e){System.out.println(e);}
    <html><body>
    <applet
    code="NotHelloWorldApplet"
    codebase="."
    width=600 height=400
    >
    </applet>
    </body></html>
    can anyone help me please.
    Thanks

    Hello,
    Even I executed the program. Its works fine. I guess you must be having problem with the codebase. Just change the address in the codebase from current directory to the address where the class file is there and also change the permissions(set attributes to 755) of the class file. Hope this helps you.
    Regards,
    Sarada.

  • 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

  • JDK 1.4.2 java applet image printing on mac safari

    Hi there,
    I'm trying to implement printing inside java applet using javax.print package. I read an article somewhere about the package not working perfectly under mac, and a workaround is to use the old java.awt.print to get the print services, then use the DocPrintJob to print.
    The SimpleDoc I use for capturing the image that I need to print works fine, and the printServices are there. The problem I have is it's giving me an 'invalid flavor' exception when clicking 'Print' on popup PrintDialog.
    It seems that the mimetype is what's causing the problem, as the printer's supported mime type is "application/x-java-jvm-local-objectref". (note that, on PC the printing works fine, with Doc flavor mimetype as image/png and the image I need to print in png format). I tried switching the flavor to SERVICE_FORMATTED.RENDERABLE_IMAGE, printing an ImageDoc class which implements Doc and RenderableImage, but 'invalid flavor' exception still occurs.
    I don't know much about printers on Mac, so I'm not sure what I can do about it, is it something that can be controlled from the Applet or it's something that the user has to set in the system - the Applet can only warn the user and tell the user to do the configuration.
    Thanks in advance!

    SwingUtilities.updateComponentTreeUI() works by first updating the UI of the given component, and then updating the component's children (and their children). So first it will update the JToolBar's UI (which installs the appropriate borders on its buttons), and then it will update each button's UI (which subsequently installs its own default border onto the button, undoing JToolBar's border installation, thanks to the bug mentioned previously).
    Another possible work-around for this problem would be to write your own updateComponentTreeUI() method that updates the child components' UI's before updating the parent component's UI:public static void newUpdateComponentTreeUI(Component c)
         updateTreeUIs(c);
         c.invalidate();
         c.validate();
         c.repaint();
    private static void updateTreeUIs(Component c)
         Component[] children = null;
         if (c instanceof JMenu) children = ((JMenu)c).getMenuComponents();
         else if (c instanceof Container) children = ((Container)c).getComponents();
         // Children first...
         for (int i=0; children != null && i < children.length; i++)
              updateTreeUIs(children);
         // Parent last...
         if (c instanceof JComponent) ((JComponent)c).updateUI();
    }Not sure if this will present any other conflicts though.

  • Help with creating an animated java applet...

    Hello, everyone! I'm working on a homework assignment for my Intro to Java class, and I'm having a problem I've never run into before. My assignment is to create a animated Java applet which displays an image of an alien spaceship which travels in diagonal lines across the applet area. My main problem is that when I try to compile my code, I get three "cannot find symbol" errors about my variable "alien." I can't figure out why declaring it as a class variable hasn't solved my problem. The errors pop up for the repaint() method, as well as the pane.add and the paintIcon. Here's my code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.Timer;
    class DrawAlien extends JPanel
    public class Alien extends JApplet implements ActionListener
      ImageIcon alien;
      public void init()
        Container pane = getContentPane();
        alien = new ImageIcon(getClass().getResource("alien.gif"));
        pane.setBackground(Color.black);
        pane.add(alien);
        Timer timer = new Timer(30, this);
        timer.start();
      public void actionPerformed(ActionEvent e)
        alien.repaint();
    }I've only posted the section which I think is relevant to my problem, but I can post the rest if anyone thinks it's necessary.
    I'm aware that the code isn't ready yet in several other ways, but I don't think I can move on until I figure out what's up with the "alien" variable. I don't need anyone to write code for me or anything like that, I just lack perspective here. A couple hints in the right direction would be invaluable. Thanks!
    Edited by: springer on Nov 25, 2007 10:46 PM

    You can?t add ImageIcon into pane, you can do like below.
    alien = new ImageIcon(getClass().getResource("alien.gif"));
        pane.setBackground(Color.black);
        JLabel label = new JLabel(alien);
        pane.add(label);

  • Java applet coonectivity to ms access

    Hi friend i'm new to sun forums. Java applet troubling me a lot while i try to coonect it with ms access. the code of the program is as follows:-
    Ao.java
    import java.sql.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    <applet code="Ao" width=250 height=200>
    </applet>
    public class Ao extends Applet implements ActionListener,ItemListener
    String msg="";
    Button view,delete,create,edit,reapp,exit;
    TextField M_head;
    int x,i,ans=0,flag;
    public void init()
    setLayout(new FlowLayout(FlowLayout.CENTER,50,3));
    view = new Button("view");
    delete = new Button("delete");
    create = new Button("create");
    edit = new Button("edit");
    reapp = new Button("reapp");
    exit= new Button("exit");
    M_head = new TextField(15);
    add(view);
    add(delete);
    add(create);
    System.out.println("");
    add(edit);
    add(reapp);
    add(exit);
    System.out.println("");
    add(M_head);
    view.addActionListener(this);
    delete.addActionListener(this);
    create.addActionListener(this);
    edit.addActionListener(this);
    reapp.addActionListener(this);
    exit.addActionListener(this);
    M_head.addActionListener(this);
    public void actionPerformed(ActionEvent ae)
    String str=ae.getActionCommand();
    if(str.equals("view"))
    {msg ="1";}
    if(str.equals("delete"))
    {msg ="2";}
    if(str.equals("create"))
    {msg ="3";}
    if(str.equals("edit"))
    {msg ="4";}
    if(str.equals("reapp"))
    {msg ="5";}
    if(str.equals("exit"))
    {msg ="6";}
    if(msg=="3")
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String filename = "D:/budget/mbdTest1.mdb";
    String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mbd)};DBQ=";
    database+=filename.trim();
    String head = M_head.getText();
    String head1 = head.trim();
    Connection con = DriverManager.getConnection(database ,"","");
    Statement doo = con.createStatement();
    String vi ="create table "+head1+" (Reapporder integer, Amount integer)";
    doo.execute(vi);
    catch(Exception err)
    System.out.println("Error :"+err);
    public void itemStateChanged(ItemEvent ie)
    repaint();
    public void paint(Graphics g)
    g.drawString(msg,70,200); //No use
    g.drawString("ANSWER=",6,200); // No use
    I run it with a ao.txt file which contain the grant permission information:-
    Ao.txt
    grant {
    permission java.lang.RuntimePermission
    "accessClassInPackage.sun.jdbc.odbc";
    permission java.util.PropertyPermission
    "file.encoding", "read";
    My database is in the same directory as in my .java file with the name mbdTest1.mdb ( A system dsn)
    I run it with the following command:-
    appletviewer -J-Djava.security.policy=Ao.txt Ao.java
    applet run succesfully but when i enter some data in text box and click on create button it shows an Error java.sql.SQLException: data source name not found and no default driver specified.
    help needed and thanks in advance

    >
    I'm unable to understand the archieve="accessdriver.jar">It is archive, archive (only one 'e'). These things need to be correct for any hope of working!
    And while we are on the subject, the word is 'connect', not 'coonect'.
    But anyway, what I meant by accessdriver.jar, is simply the Jar that contains the sun.jdbc.odbc.JdbcOdbcDriver ..
    Oh, wait a second. I did not look at that classname closely, and did not realise it was a 'sun' class. It is more common to add a 3rd party DB driver class (AFAIU) than use a 'Sun proprietary API' class to access a DB.
    >
    As far as security file is concerned i will first try to run the applet so that it is able to create and query
    data from my ms access database after than i can modify it.>You seem very confused about accessing the DB. Noting that your original code uses a hard coded (file based) path to the DB, I can tell you you are wasting time attempting to access it that way. That will never work when the applet is on the web, since the File path will point to a place on the end user's PC file system that does not have a DB installed! The applet will need to be redesigned.
    I recommend you download and install a local server like tomcat, which can more accurately reflect a web environment. Then do all your applet testing via the local server.
    1st, before you bother with the applet, you should organise how to access the DB (at least tot the point of doing a simple query) in a web page. Before going any further. This will ensure that the DB is set-up correctly and accessible to a sand-boxed applet.
    Your comment about "..will first try to run the applet.. (before) ..modify it". If it is a security matter, it will need to be signed before you can even query the DB. If the applet can be sand-boxed (probably the case) then don't sign it at any time.

  • Java applet causes IE6.0 to crash

    Both 1.4 and 1.5 versions cause internet explorer to crash. This is only happening on 1 out of 5 machines and its driving me crazy.
    Here are the system stats
    Windows XP Pro(it happens on sp1 and sp2)
    AMD 2200+ processor on a PCCHips MB
    512 MB ram
    Asus FX5200 graphics card 128 mb ram(also happened on an ati radeon 9000)
    30 gb seagate barracuda 7200 rpm
    10x DVD
    3 1/4 floppy
    Dlink DWL 520 Air Card (PCI) 802.11b
    onboard ac97 sound
    If any one has any idea how I can stop this or what is causing it, please let me know. I have tried everything except replacing the Processor and motherboard. I even tried different brand of ddr memory.
    CrashnBurnin,
    Please help,
    Harry

    Here is a copy of the error report that ended up on the desktop.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_PRIV_INSTRUCTION (0xc0000096) at pc=0x044224b1, pid=1828, tid=664
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode, sharing)
    # Problematic frame:
    # j sun.awt.GlobalCursorManager._updateCursor(Z)V+87
    --------------- T H R E A D ---------------
    Current thread (0x0698cda0): JavaThread "AWT-EventQueue-2" [_thread_in_Java, id=664]
    siginfo: ExceptionCode=0xc0000096
    Registers:
    EAX=0xffffffff, EBX=0x000000b6, ECX=0x01c04fd8, EDX=0x00000000
    ESP=0x07def748, EBP=0x07def7a0, ESI=0x2ab5baa2, EDI=0x07def7bc
    EIP=0x044224b1, EFLAGS=0x00010212
    Top of Stack: (sp=0x07def748)
    0x07def748: 07def7bc 2ab5baa2 07def7a0 07def768
    0x07def758: 000000b6 000000e8 20dfb440 00000047
    0x07def768: 044224ab 6d7820c0 0000027d 216c1a28
    0x07def778: 21230950 00000001 00000000 07def77c
    0x07def788: 2ab5ba87 07def7bc 2b3fb0a0 00000000
    0x07def798: 2b3fae90 07def7b8 07def7e4 04422923
    0x07def7a8: 00000000 216c1a28 20dfb440 20dfb450
    0x07def7b8: 00000000 21230950 00000001 00000000
    Instructions: (pc=0x044224b1)
    0x044224a1: 68 c0 20 78 6d e8 00 00 00 00 60 e8 0a 7b 22 69
    0x044224b1: f4 90 90 00 00 00 00 00 00 00 00 00 00 00 00 80
    Stack: [0x07cf0000,0x07df0000), sp=0x07def748, free space=1021k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    j sun.awt.GlobalCursorManager._updateCursor(Z)V+87
    j sun.awt.GlobalCursorManager.updateCursorImmediately()V+27
    j sun.awt.windows.WComponentPeer.updateCursorImmediately()V+3
    j java.awt.Component.updateCursorImmediately()V+49
    j java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+68
    j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+12
    J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
    J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
    j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j java.awt.EventDispatchThread.run()V+9
    v ~StubRoutines::call_stub
    V [jvm.dll+0x818e8]
    V [jvm.dll+0xd4989]
    V [jvm.dll+0x817b9]
    V [jvm.dll+0x81516]
    V [jvm.dll+0x9c1d6]
    V [jvm.dll+0xfeeab]
    V [jvm.dll+0xfee79]
    C [msvcrt.dll+0x27fb8]
    C [kernel32.dll+0x1d33b]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0764a4c8 JavaThread "Thread-12" daemon [_thread_blocked, id=432]
    0x01ca47a0 JavaThread "Thread-11" daemon [_thread_blocked, id=808]
    0x06a1d358 JavaThread "Thread-10" daemon [_thread_blocked, id=1324]
    0x01c10c30 JavaThread "Thread-8" daemon [_thread_in_native, id=860]
    0x0696c848 JavaThread "Thread-6" daemon [_thread_blocked, id=564]
    =>0x0698cda0 JavaThread "AWT-EventQueue-2" [_thread_in_Java, id=664]
    0x069e8d28 JavaThread "TimerQueue" daemon [_thread_blocked, id=1428]
    0x01cc65b0 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=1816]
    0x01cef448 JavaThread "TimerQueue" daemon [_thread_blocked, id=1656]
    0x06963cd0 JavaThread "thread applet-loader.class" [_thread_blocked, id=1268]
    0x06944e08 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=1232]
    0x069552e0 JavaThread "AWT-Shutdown" [_thread_blocked, id=1184]
    0x01cffe48 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=1084]
    0x01cfc4e8 JavaThread "AWT-Windows" daemon [_thread_in_native, id=336]
    0x069447a8 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=344]
    0x0003c390 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=408]
    0x01c348d8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=296]
    0x01c33b28 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=404]
    0x0003e078 JavaThread "Finalizer" daemon [_thread_blocked, id=400]
    0x01c2ab98 JavaThread "Reference Handler" daemon [_thread_blocked, id=396]
    0x01c24008 JavaThread "main" [_thread_in_native, id=1832]
    Other Threads:
    0x01c06338 VMThread [id=392]
    0x01c11808 WatcherThread [id=112]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 4992K, used 3697K [0x20a60000, 0x20fc0000, 0x211c0000)
    eden space 4480K, 82% used [0x20a60000, 0x20dfc728, 0x20ec0000)
    from space 512K, 0% used [0x20ec0000, 0x20ec0000, 0x20f40000)
    to space 512K, 0% used [0x20f40000, 0x20f40000, 0x20fc0000)
    tenured generation total 65656K, used 39392K [0x211c0000, 0x251de000, 0x26a60000)
    the space 65656K, 59% used [0x211c0000, 0x23838178, 0x23838200, 0x251de000)
    compacting perm gen total 8192K, used 2491K [0x26a60000, 0x27260000, 0x2aa60000)
    the space 8192K, 30% used [0x26a60000, 0x26cced48, 0x26ccee00, 0x27260000)
    ro space 8192K, 62% used [0x2aa60000, 0x2af68018, 0x2af68200, 0x2b260000)
    rw space 12288K, 46% used [0x2b260000, 0x2b7ec620, 0x2b7ec800, 0x2be60000)
    Dynamic libraries:
    0x00400000 - 0x00419000      C:\Program Files\Internet Explorer\iexplore.exe
    0x77f50000 - 0x77ff7000      C:\WINDOWS\System32\ntdll.dll
    0x77e60000 - 0x77f46000      C:\WINDOWS\system32\kernel32.dll
    0x77c10000 - 0x77c63000      C:\WINDOWS\system32\msvcrt.dll
    0x77d40000 - 0x77dcd000      C:\WINDOWS\system32\USER32.dll
    0x7e090000 - 0x7e0d1000      C:\WINDOWS\system32\GDI32.dll
    0x77dd0000 - 0x77e5d000      C:\WINDOWS\system32\ADVAPI32.dll
    0x78000000 - 0x78087000      C:\WINDOWS\system32\RPCRT4.dll
    0x70a70000 - 0x70ad6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x71700000 - 0x71849000      C:\WINDOWS\System32\SHDOCVW.dll
    0x71950000 - 0x71a35000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.1643_x-ww_7c3a9bc6\comctl32.dll
    0x7cd00000 - 0x7d4fa000      C:\WINDOWS\system32\SHELL32.dll
    0x77340000 - 0x773cb000      C:\WINDOWS\system32\comctl32.dll
    0x4fec0000 - 0x4fff6000      C:\WINDOWS\system32\ole32.dll
    0x5ad70000 - 0x5ada4000      C:\WINDOWS\System32\uxtheme.dll
    0x71500000 - 0x715fc000      C:\WINDOWS\System32\BROWSEUI.dll
    0x72430000 - 0x72442000      C:\WINDOWS\System32\browselc.dll
    0x75f40000 - 0x75f5f000      C:\WINDOWS\system32\appHelp.dll
    0x7c890000 - 0x7c911000      C:\WINDOWS\System32\CLBCATQ.DLL
    0x77120000 - 0x771ab000      C:\WINDOWS\system32\OLEAUT32.dll
    0x77050000 - 0x77115000      C:\WINDOWS\System32\COMRes.dll
    0x77c00000 - 0x77c07000      C:\WINDOWS\system32\VERSION.dll
    0x76620000 - 0x7666e000      C:\WINDOWS\System32\cscui.dll
    0x76600000 - 0x7661c000      C:\WINDOWS\System32\CSCDLL.dll
    0x76670000 - 0x76757000      C:\WINDOWS\System32\SETUPAPI.dll
    0x1a400000 - 0x1a47d000      C:\WINDOWS\system32\urlmon.dll
    0x63000000 - 0x63096000      C:\WINDOWS\system32\WININET.dll
    0x762c0000 - 0x76348000      C:\WINDOWS\system32\CRYPT32.dll
    0x762a0000 - 0x762b0000      C:\WINDOWS\system32\MSASN1.dll
    0x76f90000 - 0x76fa0000      C:\WINDOWS\System32\Secur32.dll
    0x00d20000 - 0x00da8000      C:\WINDOWS\System32\shdoclc.dll
    0x74770000 - 0x747ff000      C:\WINDOWS\System32\mlang.dll
    0x71ad0000 - 0x71ad8000      C:\WINDOWS\System32\wsock32.dll
    0x71ab0000 - 0x71ac5000      C:\WINDOWS\System32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\System32\WS2HELP.dll
    0x71a50000 - 0x71a8b000      C:\WINDOWS\system32\mswsock.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    0x76ee0000 - 0x76f17000      C:\WINDOWS\System32\RASAPI32.DLL
    0x76e90000 - 0x76ea1000      C:\WINDOWS\System32\rasman.dll
    0x71c20000 - 0x71c6e000      C:\WINDOWS\System32\NETAPI32.dll
    0x76eb0000 - 0x76edb000      C:\WINDOWS\System32\TAPI32.dll
    0x76e80000 - 0x76e8d000      C:\WINDOWS\System32\rtutils.dll
    0x76b40000 - 0x76b6c000      C:\WINDOWS\System32\WINMM.dll
    0x75e90000 - 0x75f3d000      C:\WINDOWS\System32\SXS.DLL
    0x75a70000 - 0x75b15000      C:\WINDOWS\system32\USERENV.dll
    0x76f20000 - 0x76f45000      C:\WINDOWS\System32\DNSAPI.dll
    0x76fb0000 - 0x76fb7000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc5000      C:\WINDOWS\System32\rasadhlp.dll
    0x63580000 - 0x63834000      C:\WINDOWS\System32\mshtml.dll
    0x746f0000 - 0x74716000      C:\WINDOWS\System32\msimtf.dll
    0x74720000 - 0x74764000      C:\WINDOWS\System32\MSCTF.dll
    0x76390000 - 0x763ac000      C:\WINDOWS\System32\IMM32.DLL
    0x75c50000 - 0x75ce1000      C:\WINDOWS\System32\jscript.dll
    0x01f20000 - 0x01f5c000      C:\WINDOWS\System32\iepeers.dll
    0x73000000 - 0x73023000      C:\WINDOWS\System32\WINSPOOL.DRV
    0x746c0000 - 0x746e7000      C:\WINDOWS\System32\MSLS31.DLL
    0x73300000 - 0x73375000      C:\WINDOWS\System32\vbscript.dll
    0x10000000 - 0x101a7000      C:\WINDOWS\System32\macromed\flash\Flash.ocx
    0x763b0000 - 0x763f5000      C:\WINDOWS\system32\comdlg32.dll
    0x72d20000 - 0x72d29000      C:\WINDOWS\System32\wdmaud.drv
    0x72d10000 - 0x72d18000      C:\WINDOWS\System32\msacm32.drv
    0x77be0000 - 0x77bf4000      C:\WINDOWS\System32\MSACM32.dll
    0x77bd0000 - 0x77bd7000      C:\WINDOWS\System32\midimap.dll
    0x6bdd0000 - 0x6be03000      C:\WINDOWS\System32\dxtrans.dll
    0x76b20000 - 0x76b35000      C:\WINDOWS\System32\ATL.DLL
    0x65000000 - 0x65009000      C:\WINDOWS\System32\ddrawex.dll
    0x51000000 - 0x51049000      C:\WINDOWS\System32\DDRAW.dll
    0x73bc0000 - 0x73bc6000      C:\WINDOWS\System32\DCIMAN32.dll
    0x6be10000 - 0x6be65000      C:\WINDOWS\System32\dxtmsft.dll
    0x74cb0000 - 0x74d1f000      C:\WINDOWS\System32\mshtmled.dll
    0x66880000 - 0x6688a000      C:\WINDOWS\System32\imgutil.dll
    0x722b0000 - 0x722b5000      C:\WINDOWS\System32\sensapi.dll
    0x6d590000 - 0x6d5a1000      C:\Program Files\Java\jre1.5.0_02\bin\npjpi150_02.dll
    0x5edd0000 - 0x5edea000      C:\WINDOWS\System32\OLEPRO32.DLL
    0x6d400000 - 0x6d417000      C:\Program Files\Java\jre1.5.0_02\bin\jpiexp32.dll
    0x6d450000 - 0x6d468000      C:\Program Files\Java\jre1.5.0_02\bin\jpishare.dll
    0x6d640000 - 0x6d7c5000      C:\PROGRA~1\Java\JRE15~1.0_0\bin\client\jvm.dll
    0x6d280000 - 0x6d288000      C:\PROGRA~1\Java\JRE15~1.0_0\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\System32\PSAPI.DLL
    0x6d610000 - 0x6d61c000      C:\PROGRA~1\Java\JRE15~1.0_0\bin\verify.dll
    0x6d300000 - 0x6d31d000      C:\PROGRA~1\Java\JRE15~1.0_0\bin\java.dll
    0x6d630000 - 0x6d63f000      C:\PROGRA~1\Java\JRE15~1.0_0\bin\zip.dll
    0x6d000000 - 0x6d166000      C:\Program Files\Java\jre1.5.0_02\bin\awt.dll
    0x6d240000 - 0x6d27d000      C:\Program Files\Java\jre1.5.0_02\bin\fontmanager.dll
    0x6d1f0000 - 0x6d203000      C:\Program Files\Java\jre1.5.0_02\bin\deploy.dll
    0x6d5d0000 - 0x6d5ed000      C:\Program Files\Java\jre1.5.0_02\bin\RegUtils.dll
    0x07020000 - 0x072e6000      C:\WINDOWS\System32\msi.dll
    0x6d3e0000 - 0x6d3f4000      C:\Program Files\Java\jre1.5.0_02\bin\jpicom32.dll
    0x6d4c0000 - 0x6d4d3000      C:\Program Files\Java\jre1.5.0_02\bin\net.dll
    0x71d40000 - 0x71d5b000      C:\WINDOWS\System32\actxprxy.dll
    0x6cc60000 - 0x6cc6b000      C:\WINDOWS\System32\dispex.dll
    0x6d1c0000 - 0x6d1e3000      C:\Program Files\Java\jre1.5.0_02\bin\dcpr.dll
    0x6d4e0000 - 0x6d4e9000      C:\Program Files\Java\jre1.5.0_02\bin\nio.dll
    0x6d3c0000 - 0x6d3df000      C:\Program Files\Java\jre1.5.0_02\bin\jpeg.dll
    VM Arguments:
    jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~1.0_0\lib\deploy.jar;C:\PROGRA~1\Java\JRE15~1.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0_02 -Djavaplugin.nodotversion=150_02 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~1.0_0 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~1\Java\JRE15~1.0_0\classes -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~1.0_0\lib\deploy.jar;C:\PROGRA~1\Java\JRE15~1.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0_02 -Djavaplugin.nodotversion=150_02 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~1.0_0 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol vfprintf
    java_command: <unknown>
    Environment Variables:
    PATH=C:\PROGRA~1\Java\JRE15~1.0_0\bin;C:\Program Files\Internet Explorer;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;.
    USERNAME=Christofor
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 1, AuthenticAMD
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 1
    CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse
    Memory: 4k page, physical 523760k(313452k free), swap 1280972k(1076168k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_02-b09) for windows-x86, built on Mar 4 2005 01:53:53 by "java_re" with MS VC++ 6.0

  • Java applet IO Filepermissions

    From what I understand, all a local applet needs to write to a local file is granted permission. I have 2 files. Both are located in the directory "C:\Documents and Settings\Soots\Desktop":
    Stuff.txt - Blank document.
    TestWriter.java - Java applet containing one button that when clicked, writes some text to the file Stuff.txt
    C:\Program Files\Java\jre1.5.0_11\lib\security\java.policy:
    http://img.photobucket.com/albums/v490/Soots/PolicyTool.jpg
    http://img.photobucket.com/albums/v490/Soots/PolicyEntry.jpg
    C:\Documents and Settings\Soots\Desktop\TestWriter.java:
    //Java applet that Writes "TestingOutStream" to a text file called Stuff.txt
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    import java.io.*;
    public class TestWriter extends Applet implements ActionListener
         private Button myButton;
         public void init()
              myButton = new Button("Click Here to write to Stuff.txt");
              myButton.addActionListener(this);
              add(myButton);
         } //init()
         public void actionPerformed (ActionEvent e)
              if (e.getSource() == myButton)
                   try {
                        FileWriter outStream = new FileWriter("Stuff.txt"); //create stream and open File Stuff.txt
                        outStream.write("TestingOutStream"); //Write the text TestingOutStream
                        outStream.close(); //Close the output stream
                   } catch (IOException i) {
                        System.out.println("IOERROR: " + i.getMessage() + "\n");
                        i.printStackTrace();
              } //if
              else
              System.out.println("Somthing else was clicked");
         } //actionPerformed()
    } //FirstApplet classException:
    http://img.photobucket.com/albums/v490/Soots/JavaSecurityException.jpg
    The policy in the policy file should grant the TestWriter.java the ability to write to Stuff.txt but the exception says otherwise. One more thing, does anyone know how to turn on full trace using Windows XP jre1.5.0_1? I have no jpicpl32.exe that I can find.

    From what I understand, all a local applet needs to write to a local file is granted permission. I have 2 files. Both are located in the directory "C:\Documents and Settings\Soots\Desktop":
    Stuff.txt - Blank document.
    TestWriter.java - Java applet containing one button that when clicked, writes some text to the file Stuff.txt
    C:\Program Files\Java\jre1.5.0_11\lib\security\java.policy:
    http://img.photobucket.com/albums/v490/Soots/PolicyTool.jpg
    http://img.photobucket.com/albums/v490/Soots/PolicyEntry.jpg
    C:\Documents and Settings\Soots\Desktop\TestWriter.java:
    //Java applet that Writes "TestingOutStream" to a text file called Stuff.txt
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    import java.io.*;
    public class TestWriter extends Applet implements ActionListener
         private Button myButton;
         public void init()
              myButton = new Button("Click Here to write to Stuff.txt");
              myButton.addActionListener(this);
              add(myButton);
         } //init()
         public void actionPerformed (ActionEvent e)
              if (e.getSource() == myButton)
                   try {
                        FileWriter outStream = new FileWriter("Stuff.txt"); //create stream and open File Stuff.txt
                        outStream.write("TestingOutStream"); //Write the text TestingOutStream
                        outStream.close(); //Close the output stream
                   } catch (IOException i) {
                        System.out.println("IOERROR: " + i.getMessage() + "\n");
                        i.printStackTrace();
              } //if
              else
              System.out.println("Somthing else was clicked");
         } //actionPerformed()
    } //FirstApplet classException:
    http://img.photobucket.com/albums/v490/Soots/JavaSecurityException.jpg
    The policy in the policy file should grant the TestWriter.java the ability to write to Stuff.txt but the exception says otherwise. One more thing, does anyone know how to turn on full trace using Windows XP jre1.5.0_1? I have no jpicpl32.exe that I can find.

  • Java applet crashes

    Here is the scenario:
    I go to http://www.missionred.com/
    I play some of the games there
    After a few hundred clicks the java applet crashes
    This is using any browser, I've tested it in IE, FireFox and Opera
    I am using JDK 1.5.0_07
    it creates logs on my desktop
    here is how they all begin:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000002, pid=6648, tid=4900
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode)
    # Problematic frame:
    # C 0x00000002
    but with different numbers every time

    Here are the full logs:
    Number 1
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000002, pid=6648, tid=4900
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode)
    # Problematic frame:
    # C 0x00000002
    --------------- T H R E A D ---------------
    Current thread (0x0f3c2b20): JavaThread "AWT-EventQueue-1" [_thread_in_native, id=4900]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000002
    Registers:
    EAX=0x02b751c0, EBX=0x0b111ec8, ECX=0x02b75970, EDX=0x7c90eb94
    ESP=0x0fabf56c, EBP=0x0fabf58c, ESI=0x02b751c0, EDI=0x0f3c2b20
    EIP=0x00000002, EFLAGS=0x00010206
    Top of Stack: (sp=0x0fabf56c)
    0x0fabf56c: 5ee01531 02b751c0 00000001 00000000
    0x0fabf57c: 02b7487b 0461b910 100aa518 00000000
    0x0fabf58c: 0fabf5a0 6d4a2aba 0461b910 0b111ec8
    0x0fabf59c: 00000001 0fabf5e4 6d4a1bd3 100aa518
    0x0fabf5ac: 00000001 04b5826f 0f3c2be0 0fabf5ec
    0x0fabf5bc: 0f47afa0 00000000 00000001 0fabf5c8
    0x0fabf5cc: 00000000 0fabf5fc 0b112d10 00000000
    0x0fabf5dc: 0b111ec8 0fabf5f4 0fabf61c 04b52923
    Instructions: (pc=0x00000002)
    0xfffffff2:
    Stack: [0x0f9c0000,0x0fac0000), sp=0x0fabf56c, free space=1021k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C 0x00000002
    C [jsoundds.dll+0x2aba]
    C [jsoundds.dll+0x1bd3]
    j com.sun.media.sound.DirectAudioDevice.access$1600(JZ)V+2
    j com.sun.media.sound.DirectAudioDevice$DirectDL.flush()V+86
    j com.sun.media.sound.JavaSoundAudioClip.startImpl(Z)V+75
    j com.sun.media.sound.JavaSoundAudioClip.play()V+2
    j sun.applet.AppletAudioClip.play()V+11
    j a.f.a.a(Ljava/lang/String;)V+24
    j a.a.e.b.a(II)V+184
    j a.a.e.a.a(Ljava/awt/event/MouseEvent;)V+48
    j a.c.a.d(Ljava/awt/event/MouseEvent;)V+69
    j a.c.d.mousePressed(Ljava/awt/event/MouseEvent;)V+18
    j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+54
    J java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V
    J java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V
    J java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V
    J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
    J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
    J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
    j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j java.awt.EventDispatchThread.run()V+9
    v ~StubRoutines::call_stub
    V [jvm.dll+0x86401]
    V [jvm.dll+0xdb172]
    V [jvm.dll+0x862d2]
    V [jvm.dll+0x8602f]
    V [jvm.dll+0xa0bcb]
    V [jvm.dll+0x10bdad]
    V [jvm.dll+0x10bd7b]
    C [msvcrt.dll+0x2a3b0]
    C [kernel32.dll+0xb50b]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j com.sun.media.sound.DirectAudioDevice.nFlush(JZ)V+0
    j com.sun.media.sound.DirectAudioDevice.access$1600(JZ)V+2
    j com.sun.media.sound.DirectAudioDevice$DirectDL.flush()V+86
    j com.sun.media.sound.JavaSoundAudioClip.startImpl(Z)V+75
    j com.sun.media.sound.JavaSoundAudioClip.play()V+2
    j sun.applet.AppletAudioClip.play()V+11
    j a.f.a.a(Ljava/lang/String;)V+24
    j a.a.e.b.a(II)V+184
    j a.a.e.a.a(Ljava/awt/event/MouseEvent;)V+48
    j a.c.a.d(Ljava/awt/event/MouseEvent;)V+69
    j a.c.d.mousePressed(Ljava/awt/event/MouseEvent;)V+18
    j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+54
    J java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V
    J java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V
    J java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V
    J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
    J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
    J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
    j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j java.awt.EventDispatchThread.run()V+9
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0f3d2dc8 JavaThread "Direct Clip" daemon [_thread_blocked, id=7248]
    0x0f431780 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=6448]
    0x0f3ca830 JavaThread "Thread-4" [_thread_blocked, id=2212]
    =>0x0f3c2b20 JavaThread "AWT-EventQueue-1" [_thread_in_native, id=4900]
    0x0f3cb9f8 JavaThread "Thread-2" [_thread_blocked, id=6140]
    0x0f3ba4c0 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=5560]
    0x0f3b1a80 JavaThread "AWT-Windows" daemon [_thread_in_native, id=4920]
    0x0f3b1648 JavaThread "AWT-Shutdown" [_thread_blocked, id=4596]
    0x0f3abed0 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2384]
    0x04b1dbb0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5128]
    0x04b1c780 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4276]
    0x04b1bb00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4544]
    0x04b12510 JavaThread "Finalizer" daemon [_thread_blocked, id=6532]
    0x04b11a58 JavaThread "Reference Handler" daemon [_thread_blocked, id=5144]
    0x0054ec88 JavaThread "main" [_thread_in_native, id=6652]
    Other Threads:
    0x04b0d8b8 VMThread [id=4780]
    0x04b1ed90 WatcherThread [id=5288]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 768K, used 442K [0x06bd0000, 0x06ca0000, 0x070b0000)
    eden space 704K, 62% used [0x06bd0000, 0x06c3e5a0, 0x06c80000)
    from space 64K, 1% used [0x06c90000, 0x06c90338, 0x06ca0000)
    to space 64K, 0% used [0x06c80000, 0x06c80000, 0x06c90000)
    tenured generation total 8904K, used 5563K [0x070b0000, 0x07962000, 0x0abd0000)
    the space 8904K, 62% used [0x070b0000, 0x0761ed68, 0x0761ee00, 0x07962000)
    compacting perm gen total 8192K, used 5519K [0x0abd0000, 0x0b3d0000, 0x0ebd0000)
    the space 8192K, 67% used [0x0abd0000, 0x0b133f28, 0x0b134000, 0x0b3d0000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00429000      C:\Program Files\Opera\Opera.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77d40000 - 0x77dd0000      C:\WINDOWS\system32\user32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x629c0000 - 0x629c9000      C:\WINDOWS\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x59800000 - 0x59817000      C:\Program Files\TuneUp Utilities 2006\WinStylerThemeHelper.dll
    0x77120000 - 0x771ac000      C:\WINDOWS\system32\oleaut32.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x679e0000 - 0x67ff4000      C:\Program Files\Opera\Opera.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\winmm.dll
    0x763b0000 - 0x763f9000      C:\WINDOWS\system32\comdlg32.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x773d0000 - 0x774d2000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.dll
    0x7c9c0000 - 0x7d1d5000      C:\WINDOWS\system32\SHELL32.dll
    0x77c00000 - 0x77c08000      C:\WINDOWS\system32\version.dll
    0x71ad0000 - 0x71ad9000      C:\WINDOWS\system32\wsock32.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x5ad70000 - 0x5ada8000      C:\WINDOWS\system32\uxtheme.dll
    0x10000000 - 0x10006000      C:\DOCUME~1\Igor\LOCALS~1\Temp\IadHide5.dll
    0x74720000 - 0x7476b000      C:\WINDOWS\system32\MSCTF.dll
    0x00af0000 - 0x00af7000      C:\Program Files\Logitech\MouseWare\System\LgWndHk.dll
    0x755c0000 - 0x755ee000      C:\WINDOWS\system32\msctfime.ime
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x76fd0000 - 0x7704f000      C:\WINDOWS\system32\CLBCATQ.DLL
    0x77050000 - 0x77115000      C:\WINDOWS\system32\COMRes.dll
    0x76380000 - 0x76385000      C:\WINDOWS\system32\Msimg32.dll
    0x77920000 - 0x77a13000      C:\WINDOWS\system32\SETUPAPI.dll
    0x5ee00000 - 0x5ee1f000      C:\Program Files\AV Vcs 4.0 DIAMOND\Vcs4Hook.dll
    0x33300000 - 0x33310000      C:\Program Files\AV Vcs 4.0 DIAMOND\Vcs4Conf.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PsApi.dll
    0x02cd0000 - 0x02cdb000      C:\Program Files\Common Files\Logitech\Scrolling\LgMsgHk.dll
    0x76080000 - 0x760e5000      C:\WINDOWS\system32\MSVCP60.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76d60000 - 0x76d79000      C:\WINDOWS\system32\iphlpapi.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x77b40000 - 0x77b62000      C:\WINDOWS\system32\appHelp.dll
    0x77a20000 - 0x77a74000      C:\WINDOWS\System32\cscui.dll
    0x76600000 - 0x7661d000      C:\WINDOWS\System32\CSCDLL.dll
    0x75f80000 - 0x7607d000      C:\WINDOWS\System32\browseui.dll
    0x76990000 - 0x769b5000      C:\WINDOWS\system32\ntshrui.dll
    0x76b20000 - 0x76b31000      C:\WINDOWS\system32\ATL.DLL
    0x5b860000 - 0x5b8b4000      C:\WINDOWS\system32\NETAPI32.dll
    0x769c0000 - 0x76a73000      C:\WINDOWS\system32\USERENV.dll
    0x77760000 - 0x778cf000      C:\WINDOWS\System32\shdocvw.dll
    0x77a80000 - 0x77b14000      C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000      C:\WINDOWS\system32\MSASN1.dll
    0x754d0000 - 0x75550000      C:\WINDOWS\system32\CRYPTUI.dll
    0x76c30000 - 0x76c5e000      C:\WINDOWS\system32\WINTRUST.dll
    0x76c90000 - 0x76cb8000      C:\WINDOWS\system32\IMAGEHLP.dll
    0x771b0000 - 0x77256000      C:\WINDOWS\system32\WININET.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x6d6c0000 - 0x6d857000      C:\Program Files\Java\jre1.5.0_07\bin\client\jvm.dll
    0x6d280000 - 0x6d288000      C:\Program Files\Java\jre1.5.0_07\bin\hpi.dll
    0x6d690000 - 0x6d69c000      C:\Program Files\Java\jre1.5.0_07\bin\verify.dll
    0x6d300000 - 0x6d31d000      C:\Program Files\Java\jre1.5.0_07\bin\java.dll
    0x6d6b0000 - 0x6d6bf000      C:\Program Files\Java\jre1.5.0_07\bin\zip.dll
    0x6d000000 - 0x6d167000      C:\Program Files\Java\jre1.5.0_07\bin\awt.dll
    0x73000000 - 0x73026000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x73760000 - 0x737a9000      C:\WINDOWS\system32\ddraw.dll
    0x73bc0000 - 0x73bc6000      C:\WINDOWS\system32\DCIMAN32.dll
    0x73940000 - 0x73a10000      C:\WINDOWS\system32\D3DIM700.DLL
    0x6d240000 - 0x6d27f000      C:\Program Files\Java\jre1.5.0_07\bin\fontmanager.dll
    0x74e30000 - 0x74e9c000      C:\WINDOWS\system32\RICHED20.DLL
    0x6d4c0000 - 0x6d4d3000      C:\Program Files\Java\jre1.5.0_07\bin\net.dll
    0x6d4e0000 - 0x6d4e9000      C:\Program Files\Java\jre1.5.0_07\bin\nio.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x6d470000 - 0x6d495000      C:\Program Files\Java\jre1.5.0_07\bin\jsound.dll
    0x6d4a0000 - 0x6d4a7000      C:\Program Files\Java\jre1.5.0_07\bin\jsoundds.dll
    0x73f10000 - 0x73f6c000      C:\WINDOWS\system32\DSOUND.dll
    0x72d20000 - 0x72d29000      C:\WINDOWS\system32\wdmaud.drv
    0x72d10000 - 0x72d18000      C:\WINDOWS\system32\msacm32.drv
    0x77be0000 - 0x77bf5000      C:\WINDOWS\system32\MSACM32.dll
    0x77bd0000 - 0x77bd7000      C:\WINDOWS\system32\midimap.dll
    0x73ee0000 - 0x73ee4000      C:\WINDOWS\system32\KsUser.dll
    VM Arguments:
    jvm_args: abort exit -Xbootclasspath/p:C:\Program Files\Opera\Classes\Opera.jar;C:\Program Files\Opera\Plugins;C:\Program Files\Opera\Program\Plugins;;C:\Program Files\Opera\Program\Plugins\npdrmv2.zip;C:\Program Files\Opera\Program\Plugins\npds.zip;C:\Program Files\Java\jre1.5.0_07\lib\jaws.jar;C:\Program Files\Java\jre1.5.0_07\lib\plugin.jar -Djava.security.policy=C:\Program Files\Opera\Classes\Opera.policy -Dbrowser.opera.classpath=C:\Program Files\Opera\Classes\Opera.jar
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    CLASSPATH=C:\Program Files\Java\jre1.5.0_04\lib\ext\QTJava.zip
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.5.0\bin;C:\Program Files\cvsnt;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\SSH Secure Shell
    USERNAME=Igor
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 10 Stepping 0, AuthenticAMD
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse
    Memory: 4k page, physical 392688k(23312k free), swap 1043536k(593212k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_07-b03) for windows-x86, built on May 3 2006 01:04:38 by "java_re" with MS VC++ 6.0
    Number 2
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000002, pid=4156, tid=6180
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode)
    # Problematic frame:
    # C 0x00000002
    --------------- T H R E A D ---------------
    Current thread (0x0ead6748): JavaThread "AWT-EventQueue-1" [_thread_in_native, id=6180]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000002
    Registers:
    EAX=0x1072f2f8, EBX=0x0a7e21e8, ECX=0x02b74c80, EDX=0x7c90eb94
    ESP=0x0f3ef788, EBP=0x0f3ef7a8, ESI=0x1072f2f8, EDI=0x0ead6748
    EIP=0x00000002, EFLAGS=0x00010202
    Top of Stack: (sp=0x0f3ef788)
    0x0f3ef788: 5ee01531 1072f2f8 00000001 00000000
    0x0f3ef798: 02b74273 103315a8 0ec3ff70 00000000
    0x0f3ef7a8: 0f3ef7bc 6d4a2aba 103315a8 0a7e21e8
    0x0f3ef7b8: 00000001 0f3ef800 6d4a1bd3 0ec3ff70
    0x0f3ef7c8: 00000001 0422826f 0ead6808 0f3ef808
    0x0f3ef7d8: 0ea48e10 00000000 00000001 0f3ef7e4
    0x0f3ef7e8: 00000000 0f3ef818 0a7e3030 00000000
    0x0f3ef7f8: 0a7e21e8 0f3ef810 0f3ef838 04222923
    Instructions: (pc=0x00000002)
    0xfffffff2:
    Stack: [0x0f2f0000,0x0f3f0000), sp=0x0f3ef788, free space=1021k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C 0x00000002
    C [jsoundds.dll+0x2aba]
    C [jsoundds.dll+0x1bd3]
    j com.sun.media.sound.DirectAudioDevice.access$1600(JZ)V+2
    j com.sun.media.sound.DirectAudioDevice$DirectDL.flush()V+86
    j com.sun.media.sound.JavaSoundAudioClip.startImpl(Z)V+75
    j com.sun.media.sound.JavaSoundAudioClip.play()V+2
    j sun.applet.AppletAudioClip.play()V+11
    j a.f.a.a(Ljava/lang/String;)V+24
    j a.a.e.b.a(II)V+184
    j a.a.e.a.a(Ljava/awt/event/MouseEvent;)V+48
    j a.c.a.d(Ljava/awt/event/MouseEvent;)V+69
    j a.c.d.mousePressed(Ljava/awt/event/MouseEvent;)V+18
    j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+54
    j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
    j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
    j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+477
    j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
    j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
    j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
    j java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233
    j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
    j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j java.awt.EventDispatchThread.run()V+9
    v ~StubRoutines::call_stub
    V [jvm.dll+0x86401]
    V [jvm.dll+0xdb172]
    V [jvm.dll+0x862d2]
    V [jvm.dll+0x8602f]
    V [jvm.dll+0xa0bcb]
    V [jvm.dll+0x10bdad]
    V [jvm.dll+0x10bd7b]
    C [msvcrt.dll+0x2a3b0]
    C [kernel32.dll+0xb50b]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j com.sun.media.sound.DirectAudioDevice.nFlush(JZ)V+0
    j com.sun.media.sound.DirectAudioDevice.access$1600(JZ)V+2
    j com.sun.media.sound.DirectAudioDevice$DirectDL.flush()V+86
    j com.sun.media.sound.JavaSoundAudioClip.startImpl(Z)V+75
    j com.sun.media.sound.JavaSoundAudioClip.play()V+2
    j sun.applet.AppletAudioClip.play()V+11
    j a.f.a.a(Ljava/lang/String;)V+24
    j a.a.e.b.a(II)V+184
    j a.a.e.a.a(Ljava/awt/event/MouseEvent;)V+48
    j a.c.a.d(Ljava/awt/event/MouseEvent;)V+69
    j a.c.d.mousePressed(Ljava/awt/event/MouseEvent;)V+18
    j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+54
    j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
    j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
    j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+477
    j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
    j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
    j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
    j java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233
    j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
    j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j java.awt.EventDispatchThread.run()V+9
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0eaaadb0 JavaThread "Direct Clip" daemon [_thread_blocked, id=6996]
    0x041b1d58 JavaThread "Direct Clip" daemon [_thread_blocked, id=6856]
    0x0eae7c38 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=6632]
    0x0ead69e0 JavaThread "Thread-4" [_thread_blocked, id=6248]
    =>0x0ead6748 JavaThread "AWT-EventQueue-1" [_thread_in_native, id=6180]
    0x0eaa4008 JavaThread "Thread-2" [_thread_blocked, id=6172]
    0x0ea893d0 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=6148]
    0x0ea80990 JavaThread "AWT-Windows" daemon [_thread_in_native, id=4104]
    0x0ea80558 JavaThread "AWT-Shutdown" [_thread_blocked, id=324]
    0x0ea7ade0 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1624]
    0x041ecbf8 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3928]
    0x041eb7c8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=6028]
    0x041eab48 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3088]
    0x041e1f98 JavaThread "Finalizer" daemon [_thread_blocked, id=2888]
    0x041e0b00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2300]
    0x0054cc00 JavaThread "main" [_thread_in_native, id=1356]
    Other Threads:
    0x041dc960 VMThread [id=5156]
    0x041eddd8 WatcherThread [id=6116]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 832K, used 299K [0x062a0000, 0x06380000, 0x06780000)
    eden space 768K, 38% used [0x062a0000, 0x062ea218, 0x06360000)
    from space 64K, 4% used [0x06360000, 0x06360a70, 0x06370000)
    to space 64K, 0% used [0x06370000, 0x06370000, 0x06380000)
    tenured generation total 9784K, used 6061K [0x06780000, 0x0710e000, 0x0a2a0000)
    the space 9784K, 61% used [0x06780000, 0x06d6b588, 0x06d6b600, 0x0710e000)
    compacting perm gen total 8192K, used 5518K [0x0a2a0000, 0x0aaa0000, 0x0e2a0000)
    the space 8192K, 67% used [0x0a2a0000, 0x0a803838, 0x0a803a00, 0x0aaa0000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00429000      C:\Program Files\Opera\Opera.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77d40000 - 0x77dd0000      C:\WINDOWS\system32\user32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x629c0000 - 0x629c9000      C:\WINDOWS\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x59800000 - 0x59817000      C:\Program Files\TuneUp Utilities 2006\WinStylerThemeHelper.dll
    0x77120000 - 0x771ac000      C:\WINDOWS\system32\oleaut32.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x679e0000 - 0x67ff4000      C:\Program Files\Opera\Opera.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\winmm.dll
    0x763b0000 - 0x763f9000      C:\WINDOWS\system32\comdlg32.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x773d0000 - 0x774d2000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.dll
    0x7c9c0000 - 0x7d1d5000      C:\WINDOWS\system32\SHELL32.dll
    0x77c00000 - 0x77c08000      C:\WINDOWS\system32\version.dll
    0x71ad0000 - 0x71ad9000      C:\WINDOWS\system32\wsock32.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x5ad70000 - 0x5ada8000      C:\WINDOWS\system32\uxtheme.dll
    0x10000000 - 0x10006000      C:\DOCUME~1\Igor\LOCALS~1\Temp\IadHide5.dll
    0x74720000 - 0x7476b000      C:\WINDOWS\system32\MSCTF.dll
    0x00af0000 - 0x00af7000      C:\Program Files\Logitech\MouseWare\System\LgWndHk.dll
    0x755c0000 - 0x755ee000      C:\WINDOWS\system32\msctfime.ime
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x76fd0000 - 0x7704f000      C:\WINDOWS\system32\CLBCATQ.DLL
    0x77050000 - 0x77115000      C:\WINDOWS\system32\COMRes.dll
    0x76380000 - 0x76385000      C:\WINDOWS\system32\Msimg32.dll
    0x77920000 - 0x77a13000      C:\WINDOWS\system32\SETUPAPI.dll
    0x5ee00000 - 0x5ee1f000      C:\Program Files\AV Vcs 4.0 DIAMOND\Vcs4Hook.dll
    0x33300000 - 0x33310000      C:\Program Files\AV Vcs 4.0 DIAMOND\Vcs4Conf.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PsApi.dll
    0x02cd0000 - 0x02cdb000      C:\Program Files\Common Files\Logitech\Scrolling\LgMsgHk.dll
    0x76080000 - 0x760e5000      C:\WINDOWS\system32\MSVCP60.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76d60000 - 0x76d79000      C:\WINDOWS\system32\iphlpapi.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x6d6c0000 - 0x6d857000      C:\Program Files\Java\jre1.5.0_07\bin\client\jvm.dll
    0x6d280000 - 0x6d288000      C:\Program Files\Java\jre1.5.0_07\bin\hpi.dll
    0x6d690000 - 0x6d69c000      C:\Program Files\Java\jre1.5.0_07\bin\verify.dll
    0x6d300000 - 0x6d31d000      C:\Program Files\Java\jre1.5.0_07\bin\java.dll
    0x6d6b0000 - 0x6d6bf000      C:\Program Files\Java\jre1.5.0_07\bin\zip.dll
    0x6d000000 - 0x6d167000      C:\Program Files\Java\jre1.5.0_07\bin\awt.dll
    0x73000000 - 0x73026000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x73760000 - 0x737a9000      C:\WINDOWS\system32\ddraw.dll
    0x73bc0000 - 0x73bc6000      C:\WINDOWS\system32\DCIMAN32.dll
    0x73940000 - 0x73a10000      C:\WINDOWS\system32\D3DIM700.DLL
    0x6d240000 - 0x6d27f000      C:\Program Files\Java\jre1.5.0_07\bin\fontmanager.dll
    0x74e30000 - 0x74e9c000      C:\WINDOWS\system32\RICHED20.DLL
    0x6d4c0000 - 0x6d4d3000      C:\Program Files\Java\jre1.5.0_07\bin\net.dll
    0x6d4e0000 - 0x6d4e9000      C:\Program Files\Java\jre1.5.0_07\bin\nio.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x6d470000 - 0x6d495000      C:\Program Files\Java\jre1.5.0_07\bin\jsound.dll
    0x6d4a0000 - 0x6d4a7000      C:\Program Files\Java\jre1.5.0_07\bin\jsoundds.dll
    0x73f10000 - 0x73f6c000      C:\WINDOWS\system32\DSOUND.dll
    0x72d20000 - 0x72d29000      C:\WINDOWS\system32\wdmaud.drv
    0x76c30000 - 0x76c5e000      C:\WINDOWS\system32\WINTRUST.dll
    0x77a80000 - 0x77b14000      C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000      C:\WINDOWS\system32\MSASN1.dll
    0x76c90000 - 0x76cb8000      C:\WINDOWS\system32\IMAGEHLP.dll
    0x72d10000 - 0x72d18000      C:\WINDOWS\system32\msacm32.drv
    0x77be0000 - 0x77bf5000      C:\WINDOWS\system32\MSACM32.dll
    0x77bd0000 - 0x77bd7000      C:\WINDOWS\system32\midimap.dll
    0x73ee0000 - 0x73ee4000      C:\WINDOWS\system32\KsUser.dll
    VM Arguments:
    jvm_args: abort exit -Xbootclasspath/p:C:\Program Files\Opera\Classes\Opera.jar;C:\Program Files\Opera\Plugins;C:\Program Files\Opera\Program\Plugins;;C:\Program Files\Opera\Program\Plugins\npdrmv2.zip;C:\Program Files\Opera\Program\Plugins\npds.zip;C:\Program Files\Java\jre1.5.0_07\lib\jaws.jar;C:\Program Files\Java\jre1.5.0_07\lib\plugin.jar -Djava.security.policy=C:\Program Files\Opera\Classes\Opera.policy -Dbrowser.opera.classpath=C:\Program Files\Opera\Classes\Opera.jar
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    CLASSPATH=C:\Program Files\Java\jre1.5.0_04\lib\ext\QTJava.zip
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.5.0\bin;C:\Program Files\cvsnt;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\SSH Secure Shell
    USERNAME=Igor
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 10 Stepping 0, AuthenticAMD
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse
    Memory: 4k page, physical 392688k(28360k free), swap 1043536k(597608k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_07-b03) for windows-x86, built on May 3 2006 01:04:38 by "java_re" with MS VC++ 6.0
    Number 3
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000001, pid=16764, tid=19728
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode)
    # Problematic frame:
    # C 0x00000001
    --------------- T H R E A D ---------------
    Current thread (0x100ace50): JavaThread "Direct Clip" daemon [_thread_in_native, id=19728]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000001
    Registers:
    EAX=0x00000000, EBX=0x12db0954, ECX=0x7c802600, EDX=0x12db0a90
    ESP=0x15d1f8a0, EBP=0x000000e0, ESI=0x10acf560, EDI=0x15373c14
    EIP=0x00000001, EFLAGS=0x00010202
    Top of Stack: (sp=0x15d1f8a0)
    0x15d1f8a0: 3350139d 10acf560 40000001 10acf560
    0x15d1f8b0: 12db0954 33509140 5ee0af0b 04611fc0
    0x15d1f8c0: 10acf560 01a62128 10acf560 000000e0
    0x15d1f8d0: 15373c14 00000000 00000002 5ee0d1ca
    0x15d1f8e0: 000000e0 5ee0d6ab 00000070 00000070
    0x15d1f8f0: 10acf560 10acf498 5ee013ea 10acf560
    0x15d1f900: 15373c14 000000e0 00000000 1010fff0
    0x15d1f910: 15d1f940 00000000 15d1f970 15d1f978
    Instructions: (pc=0x00000001)
    0xfffffff1:
    Stack: [0x15c20000,0x15d20000), sp=0x15d1f8a0, free space=1022k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C 0x00000001
    [error occurred during error reporting, step 120, id 0xc0000005]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    J com.sun.media.sound.DirectAudioDevice.nIsStillDraining(JZ)Z
    J com.sun.media.sound.DirectAudioDevice$DirectDL.drain()V
    j com.sun.media.sound.DirectAudioDevice$DirectClip.run()V+261
    j java.lang.Thread.run()V+11
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    =>0x100ace50 JavaThread "Direct Clip" daemon [_thread_in_native, id=19728]
    0x10109620 JavaThread "Direct Clip" daemon [_thread_in_native, id=21624]
    0x101ca710 JavaThread "Direct Clip" daemon [_thread_blocked, id=22164]
    0x10109498 JavaThread "Direct Clip" daemon [_thread_blocked, id=21884]
    0x10093310 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=22892]
    0x10010138 JavaThread "Thread-28" [_thread_blocked, id=20452]
    0x10119e10 JavaThread "Thread-10" [_thread_blocked, id=21684]
    0x1006c410 JavaThread "Thread-8" [_thread_in_native, id=21000]
    0x149c8440 JavaThread "Thread-7" [_thread_blocked, id=21392]
    0x10116f58 JavaThread "Thread-6" [_thread_blocked, id=21680]
    0x100f7dd0 JavaThread "Thread-5" [_thread_blocked, id=21628]
    0x057efa70 JavaThread "Thread-4" [_thread_blocked, id=20956]
    0x10064bb0 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=19848]
    0x10062f80 JavaThread "Thread-2" [_thread_blocked, id=21276]
    0x10059c60 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=18708]
    0x10051220 JavaThread "AWT-Windows" daemon [_thread_in_native, id=18700]
    0x10050de8 JavaThread "AWT-Shutdown" [_thread_blocked, id=18672]
    0x1004b670 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=18676]
    0x057ed480 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=18648]
    0x057ec048 JavaThread "CompilerThread0" daemon [_thread_blocked, id=18544]
    0x057eb3c8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=18624]
    0x057e1e48 JavaThread "Finalizer" daemon [_thread_blocked, id=18616]
    0x057e13a8 JavaThread "Reference Handler" daemon [_thread_blocked, id=18612]
    0x0054de28 JavaThread "main" [_thread_in_native, id=16812]
    Other Threads:
    0x057a2150 VMThread [id=18600]
    0x057ee668 WatcherThread [id=18652]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 1088K, used 322K [0x07820000, 0x07940000, 0x07d00000)
    eden space 1024K, 28% used [0x07820000, 0x07869090, 0x07920000)
    from space 64K, 48% used [0x07920000, 0x07927b18, 0x07930000)
    to space 64K, 0% used [0x07930000, 0x07930000, 0x07940000)
    tenured generation total 13000K, used 10737K [0x07d00000, 0x089b2000, 0x0b820000)
    the space 13000K, 82% used [0x07d00000, 0x0877c780, 0x0877c800, 0x089b2000)
    compacting perm gen total 8192K, used 7130K [0x0b820000, 0x0c020000, 0x0f820000)
    the space 8192K, 87% used [0x0b820000, 0x0bf16aa0, 0x0bf16c00, 0x0c020000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00429000      C:\Program Files\Opera\Opera.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77d40000 - 0x77dd0000      C:\WINDOWS\system32\user32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x629c0000 - 0x629c9000      C:\WINDOWS\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x59800000 - 0x59817000      C:\Program Files\TuneUp Utilities 2006\WinStylerTh

  • How to use C-Structure in java applets

    hi alls,
    I want to use a struct model (struct in C++) in java applets. i know class is used in java applications. but, how can i convert in java applets?
    class renk
    int r;
    int gr;
    int b;
    import java.awt.Graphics;
    import java.awt.Color;
    import java.awt.Event;
    import java.applet.Applet;
    public class benek extends Applet
    final int n=10;
    int x[] = new int[n];
    int y[] = new int[n];
    int count = 0;
    renk clr[] = new renk[n];
    public void init()
    setBackground(Color.black);
    public boolean mouseDown(Event yordam, int xyer, int yyer)
    if (count<n)
    System.out.println("...");
    ekle(xyer,yyer);
    else System.out.println("Kapasite Doldu...");
    return true;
    void ekle(int xyer, int yyer)
    int r1 = (int)Math.floor(Math.random()*256);
    int gr1 = (int)Math.floor(Math.random()*256);
    int b1 = (int)Math.floor(Math.random()*256);
    clr[count].r = r1;
    clr[count].gr = gr1;
    clr[count].b = b1;
    x[count]=xyer;
    y[count]=yyer;
    count++;
    repaint();
    public void paint(Graphics g)
    it gives error message... how can � use struct model in java applets???
    if you help me i will be greatfull....

    � use import but it doesn't work.
    i add: import renk; or import class renk;
    how will � add import I assumed based on your initial post that the renk and benek classes were in the same file. Apparently you're saying they are not. So for another thing, make your renk class "public class renk", and add the "public" keyword to the 3 members of that class. Then if your code still doesn't see the "renk" class, it would just be that you don't have the directory that contains the compiled "renk.class" in your classpath.

  • Preventing "Paste" into java applets

    First of all, I am sorry that I was not able to search these forums. I searched but the "Sun Search" did not seem to allow a specific forum search and threw more than a page of non-forum hits.
    I would like to know whether it is possible to prevent paste (as in copy and paste) into the text field of a java applet as run on a browser as part of an online application.
    I know that there are javascript applications for preventing "right click" the use of the control keys and also (the best or most annoying in my experience) flushing the system clipboard.
    However, all these measures can be circumvented and I thin that the Opera browser in is good at circumventing them.
    When it comes to a java applet however, without interferting with the system, I would have thought it would be possible to control
    1) Connections to the system clipboard
    2) Which keys can be used to enter into a text field.
    So I would have though that preventing paste into a java text field would be possible.
    But today I was asked "Do you understand computers"? And made a fool of when I suggested that such a thing may be possible, by a Java programmer. I am surprised.
    Is it possible to prevent paste (ctrl v, or using the mouse) into a java text field?
    Tim

    cleaner way to do it (cleaner meaning not so many inner classes!) is to just add a key adapter to whatever text component you want (textfields, textareas, anything that takes KeyListener)
    example..
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class NoPaste extends KeyAdapter {
         public void keyPressed(KeyEvent e) {
              if (e.isControlDown() && e.getKeyCode() == KeyEvent.VK_V) {
                   e.consume();
    public class Test extends JFrame {
         public Test() {
              super("Test");
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              addKeyListener(new NoPaste());
              JTextField jf = new JTextField(20);
              Container c = getContentPane();
              c.setLayout(new FlowLayout(FlowLayout.CENTER));
              c.add(new JLabel("Paste: "));
              c.add(new JTextField(20));
              c.add(new JLabel("No Paste: "));
              c.add(jf);
              jf.addKeyListener(new NoPaste());
              pack();
              show();
         public static void main(String[] args) {
              new Test();
    }by calling addKeyListener(new NoPaste()); with each component you want, you can disable the ctrl+v key function. the negative side is that a context menu (or any other 3rd party component) could still call paste(), but then again they could call setText anyway, so its not much difference. not to mention Swing does not feature context menus by default..

  • Help!!! Need Java Applet to work in IE

    I found some applets (text scrollers) from the sun site that i wanted to use. downloaded them, but they do not work in IE that does not have JVM. in IE that does have JVM it says 'Java 1.1 Required' where the applet should be. is there a simple way to get sun java applets to work with IE and the MS Virtual Machine? I can't require my site visitors to have to download extra toys/plugins...

    If you are looking for a purely AWT scrolling applet. Here is one I wrote several years ago. Please note that there are some deprecated methods in it (mainly the thread start and stop methods). It will still compile though. If you want it, take it.
    Source:import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.net.*;
    public class ScrollApplet extends Applet implements Runnable
       /*=*********************
       * private data members *
       private Thread myThread = null;
       private boolean hasTextDisplayed;
       private int appletWidth, appletHeight;
       private int yPosition;
       private int xPosition;
       private Image textImage;
       private int imageWidth;
       private Graphics textGraphics;
       private Cursor oldCursor;
       private Cursor newCursor = new Cursor(Cursor.HAND_CURSOR);
       //parameters
       private int delay;
       private String displayText;
       private Color bgColor, fgColor;
       private int fontSize, fontStyle;
       private Font fontType;
       private String urlValue;
       /*=***************
       * applet methods *
       public void init()
          //assign values to private data members
          hasTextDisplayed = false;
          appletHeight = yPosition = getSize().height;
          appletWidth = xPosition = getSize().width;
          //set up the environment
          extractParameters();
          //determine the yPosition to place the image
          calculateYPosition();
          //set up the text image
          FontMetrics fm = getFontMetrics(fontType);
          imageWidth = fm.stringWidth(displayText);
          textImage = createImage(imageWidth, appletHeight);
          textGraphics = textImage.getGraphics();
          textGraphics.setColor(bgColor);
          textGraphics.fillRect(0,0,imageWidth,appletHeight);
          textGraphics.setColor(fgColor);
          textGraphics.setFont(fontType);
          textGraphics.drawString(displayText, 0, yPosition);
          oldCursor = this.getCursor();
          addMouseListener(new MouseAdapter() {
             public void mouseExited(MouseEvent e)
                if (urlValue != null) {
                   Component thisApplet = e.getComponent();
                   thisApplet.setCursor(oldCursor);
                showStatus(" ");
                myThread.resume();
             public void mouseEntered(MouseEvent e)
                myThread.suspend();
                if (urlValue != null) {
                   Component thisApplet = e.getComponent();
                   thisApplet.setCursor(newCursor);
                   showStatus(urlValue);
                else
                   showStatus("paused");
             public void mouseClicked(MouseEvent e)
                if (urlValue != null)
                   try {
                      URL u = new URL(urlValue);
                      getAppletContext().showDocument(u, "_self");
                   } catch(MalformedURLException ex) {
                   showStatus("MalformedURLException: " +ex);
       }//end init method
       public void start()
          myThread = new Thread(this);
          myThread.start();
       }//end start method
       public void update(Graphics g)
       //overwrote this method to avoid repainting of background before all text displays
          if (hasTextDisplayed == true)
             //repaint the background
             g.setColor(bgColor);
             g.fillRect(xPosition+imageWidth, 0, appletWidth - (xPosition + imageWidth),
                          appletHeight);
             g.setColor(fgColor);
          paint(g);
       }//end update method
       public void paint(Graphics g)
          setBackground(bgColor);
          g.drawImage(textImage,xPosition,0,this);
       }//end paint method
       public void stop()
       { myThread = null; }
       /*=*******************************************************************************
       * applet method getParameterInfo():                                              *
       * Returns information about the parameters that are understood by this applet.   *
       * An applet should override this method to return an array of Strings describing *
       * these parameters.  Each element of the array should be a set of three Strings  *
       * containing the name, the type, and a description.                              *
       public String[][] getParameterInfo()
          String parameterInfo[][] = {
             {"DELAYPARAM", "int", "The interval to pause in milliseconds"},
             {"TEXTPARAM", "string", "The text that will be displayed"},
             {"BGPARAM", "Color", "The bg color for the applet, in html format #FFFFFF"},
             {"FGPARAM", "Color", "The fg color for the text, in html format #FFFFFF"},
             {"FONTSIZEPARAM", "int", "The font size of the text"},
             {"FONTTYPEPARAM", "string", "The name of the font to use"},
             {"FONTSTYLEPARAM", "string", "bold, italic, or bold+italic"},
             {"URLPARAM", "string", "hyperlink"}
          return parameterInfo;
       }//end getParameterInfo method
       /*=*****************************************************************************
       * applet method getAppletInfo():                                               *
       * Returns information about this applet. An applet should override this method *
       * to return a String containing information about the author, version, and     *
       * copyright of the applet.                                                     *
       public String getAppletInfo()
          String infoAboutMe;
          infoAboutMe = new String(
             "Author:  Your Name Here/n" +
             "Description:  My first text scroller\n" +
             "Version: 1.0"
          return infoAboutMe;
       }//end getAppletInfo method
       /*=***************
       * thread methods *
       public void run()
          Thread current = Thread.currentThread();
          //loop until thread is stopped
          while (myThread == current)
             repaint();
             try {
                current.sleep(delay);
                xPosition--;
             } catch (InterruptedException e) {}
             if (xPosition <= (appletWidth - imageWidth))
                hasTextDisplayed = true;
             else
                hasTextDisplayed = false;
             if (xPosition == (0 - imageWidth))
                xPosition = appletWidth;
       }//end required run method
       /*=**********************************************************************
       * extractParameters():  Sets all parameter values, if any were provided *
       public void extractParameters()
          String delayValue = getParameter("DELAYPARAM");
          String textValue = getParameter("TEXTPARAM");
          String bgColorValue = getParameter("BGPARAM");
          String fgColorValue = getParameter("FGPARAM");
          String fontSizeValue = getParameter("FONTSIZEPARAM");
          String fontTypeValue = getParameter("FONTTYPEPARAM");
          String fontStyleValue = getParameter("FONTSTYLEPARAM");
          String urlParam = getParameter("URLPARAM");
          //set delay to one tenth of a second if missing parameter
          delay = ((delayValue == null) ? 100 : Integer.parseInt(delayValue));
          urlValue = (urlParam == null ? null : urlParam);
          displayText = ((textValue == null) ?
                new String("NO TEXT WAS PROVIDED!") :
                textValue);
          bgColor = determineColor(bgColorValue);
          fgColor = determineColor(fgColorValue);
          fontStyle = determineFontStyle(fontStyleValue);
          fontSize = ((fontSizeValue == null) ? 12 : Integer.parseInt(fontSizeValue));
          fontType = new Font(fontTypeValue, fontStyle, fontSize);
       }//end extractParameters method
       /*=*************************************************
       * determineColor():  returns the appropriate color *
       public Color determineColor(String value)
          return parseHTMLHex(value);
       }//end determineColor method
       /*=*****************************************************************************
       * parseHTMLHex(): parses an HTML hex (eg #FFFFFF) and returns the Color object *
       public static Color parseHTMLHex(String htmlHex) {
          Color color = new Color(220,220,220);  //default grey
          if (htmlHex != null) {
             String red = htmlHex.substring(1,3);
             String green = htmlHex.substring(3,5);
             String blue = htmlHex.substring(5);
             color = new Color(Integer.parseInt(red,16),
                           Integer.parseInt(green,16),
                           Integer.parseInt(blue,16));
          }//end if
          return color;
       }//end parseHTMLHex method
       /*=******************************************
       * determineFontStyle():  returns font sytle *
       public int determineFontStyle(String value)
          int returnVal;
          if (value == null)
             returnVal = Font.PLAIN;
          else if (value.equalsIgnoreCase("plain"))
             returnVal = Font.PLAIN;
          else if (value.equalsIgnoreCase("bold"))
             returnVal = Font.BOLD;
          else if (value.equalsIgnoreCase("italic"))
             returnVal = Font.ITALIC;
          else if (value.equalsIgnoreCase("bold+italic"))
             returnVal = Font.BOLD + Font.ITALIC;
          else
             returnVal = Font.PLAIN;
          return returnVal;
       }//end determineFontStyle method
       /*=**********************************************************
       * calculateYPosition(): want text to be in middle of applet *
       public void calculateYPosition()
          //wasYPositionCalculated = true;
          //make calculations to center font in applet window
          int appletMidHeight = appletHeight / 2;         //the middle of the applet
          FontMetrics fm = getFontMetrics(fontType);    //font metrics for current font
          int fontMidHeight = fm.getAscent() / 2;         //the middle of the font
          int currentFontSizeValue;                       //temp value for font size
          //if the font size if too big, fix it
          if ((currentFontSizeValue = fm.getAscent()) > appletHeight)
             //cycle through font sizes until find one that fits
             while (currentFontSizeValue > appletHeight)
                fontType = new Font(getParameter("FONTTYPEPARAM"), fontStyle, --fontSize);
                fm = getFontMetrics(fontType);
                currentFontSizeValue = fm.getAscent();
             //set the new values for the new font
             setFont(fontType);
             fm = getFontMetrics(fontType);
             fontMidHeight = fm.getAscent() / 2;
          yPosition = appletMidHeight + fontMidHeight - 3;
       }//end calculateYPosition()
    }//end applethtml:<HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>Test scroller applet</title>
    </head>
    <BODY>
    <h1>Scroller Applet</h1>
    <!--CODEBASE = "."-->
    <APPLET
      CODE     = "ScrollApplet.class"
      NAME     = "TestApplet"
      WIDTH    = 400
      HEIGHT   = 30
      HSPACE   = 0
      VSPACE   = 0
      ALIGN    = middle
    >
    <PARAM NAME="DELAYPARAM" VALUE="10">
    <PARAM NAME="TEXTPARAM" VALUE="Simple Old Scrolling Applet?">
    <PARAM NAME="BGPARAM" VALUE="#000000">
    <PARAM NAME="FGPARAM" VALUE="#CCCCCC">
    <PARAM NAME="FONTSIZEPARAM" VALUE="24">
    <PARAM NAME="FONTTYPEPARAM" VALUE="TimesRoman">
    <PARAM NAME="FONTSTYLEPARAM" VALUE="italic">
    <PARAM NAME="URLPARAM" VALUE="http://quote.yahoo.com/quotes?SYMBOLS=DISH">
    </applet>
    </body>
    </html>tajenkins

  • Please, help me with file access in Java Applet.

    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class ImageVi extends Applet {
         URL PicPath1;
         Image Img1;
         public void init()
              try
                   PicPath1 = new URL("http://nurchi.far.ru/pic/s08.jpg");
              } catch (MalformedURLException Excep1) {}
         public void paint(Graphics g) {
              Img1=getImage(PicPath1);
              g.drawImage(Img1, 10, 10, this);
    The error message is:
    Exception occurred during event dispatching:
    java.security.AccessControlException: access denied (java.net.SocketPermission nurchi.far.ru resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:195)
    at java.security.AccessController.checkPermission(AccessController.java, Compiled Code)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java, Compiled Code)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1019)
    at sun.awt.image.URLImageSource.<init>(URLImageSource.java:48)
    at sun.applet.AppletImageRef.reconstitute(AppletImageRef.java:40)
    at sun.misc.Ref.get(Ref.java:53)
    at sun.applet.AppletViewer.getCachedImage(AppletViewer.java:275)
    at sun.applet.AppletViewer.getImage(AppletViewer.java:270)
    at java.applet.Applet.getImage(Applet.java:190)
    at ImageVi.paint(ImageVi.java:24)
    at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:116)
    at java.awt.Component.dispatchEventImpl(Component.java:2452)
    at java.awt.Container.dispatchEventImpl(Container.java:1059)
    at java.awt.Component.dispatchEvent(Component.java:2312)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:301)
    at java.awt.EventDispatchThread.pumpOneEventForComponent(EventDispatchThread.java:120)
    at java.awt.EventDispatchThread.pumpEventsForComponent(EventDispatchThread.java:95)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:90)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

    Applets are not allowed to connect to other server
    than the one they were loaded from. This is probably
    the reason here.You mean that I can use the applet after uploading on my web-site and using "getDocumentBase()" only?
    OK.
    The applet works perfectly if I use that function, but I have another question.
    If I want to use something like:
    Img1=getImage(getDocumentBase(), "s01.jpg");
    it works perfectly.
    If I do the fillowing:
    Img1=getImage(getDocumentBase(), "pic/s01.jpg");
    it also works.
    But is it possible to go a level up?
    Like:
    Img1=getImage(getDocumentBase(), "../pic/s01.jpg");
    That is if an applet is in one folder and the pictures are in another, but to get to them I have to go a level up and then enter another folder.
    Please help.
    Thanks.

Maybe you are looking for

  • Insert document expiration date in a Word template

    Hello all, I have a problem I hope anyone can help me with. I need to include a column in Document Library with the Document expiration date and after that, include that expiration date into the Word templates I have in that library. In order to do t

  • How to get back my pics from lost iphone4s

    hello, i lost my iphone4s , i am worried how i can get my pics and videos back, i think i didn't update the pics on icloud (photo stream), but i am not sure, can i still get back my photos. i haven't bought new iphone yet ,  do i need to buy new ipho

  • ITunes file transfer Problem - to new Windows 7 PC from old Windows XP PC

    I have just followed the instructions regarding transfer of my iTunes music from my old PC to my new one, using an external hard drive. When I run iTunes, my library is totally empty! I have checked the box in the iTunes Advanced Preferences window t

  • Help connecting OS X to Windows 2003 Server SBS

    We currently are using a Windows 2003 SBS Server that has no problem accepting connections from the numerous windows machines we are running. The Macs however are a different story. We have attempted to connect with the SMB using both the server name

  • Error in uploading data

    Hi Experts, While im using BAPI_CUSTOMER_CREATEFROMDATA1 for XD01. It is throwing error account group is not defined. In BAPI_CUSTOMER_CREATEFROMDATA1, structures used for import r export r tables, i didnt find any account group field. But there s fi