Tomas1122's Profile User Rating: -----

Reputation: 0 Apprentice
Active Posts:
19 (0.03 per day)
03-October 12
Profile Views:
Last Active:
User is offline Oct 08 2012 07:38 PM

Previous Fields

Dream Kudos:
Icon   Tomas1122 has not set their status

Posts I've Made

  1. In Topic: Japplet

    Posted 4 Oct 2012

    View Postpbl, on 04 October 2012 - 08:09 PM, said:

    Because your Names.class is not located in the same directory as your .html

    Still showing error. Im using netbeans html to do this if that makes a diff.
  2. In Topic: Japplet

    Posted 4 Oct 2012

    View Postpbl, on 04 October 2012 - 08:00 PM, said:

    Which error ? We are supposed to guess it ?

    sorry. says ClassNotFoundException
  3. In Topic: Japplet

    Posted 4 Oct 2012

    Thanks a lot pbl and cfoley. :). 1 more question. If i want to view the table made in java on webpage on my computer console and i put this code in html file...

     <applet code ="Names.class" width="500" height ="500">

    why am i getting errors still. i know i have the html page set up right.
  4. In Topic: Random and Jtable

    Posted 4 Oct 2012

  5. In Topic: Random and Jtable

    Posted 4 Oct 2012

    import java.util.Random;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
     * @author Shashi Suthar
    public class Names extends JApplet implements ActionListener {
            JButton[] button;
            JLabel[] label;
            int[] nbClick;
            // Applet init method that will init the JComponent
            // will be called automatically when running an Applet
            // will be "manually" called by main() when running as an application
            public void init() {
                    // create the buttons and the labels that display how many
                    // time the buttons were clicked
                    button = new JButton[2];
                    label = new JLabel[button.length];
                    nbClick = new int[button.length];
                    // as a gridLayout of number of buttons X 2 for their corresponding labels
                    setLayout(new GridLayout(button.length,2));
                    for(int i = 0; i < button.length; i++) {
                            // create button
                            button[i] = new JButton("Button #" + (i+1));
                            // and its corresponding label
                            label[i] = new JLabel("     Nb click: 0");
        public void actionPerformed(ActionEvent e) {
            throw new UnsupportedOperationException("Not supported yet.");
    public class Names extends JFrame {

    What am i doing wrong to make it work as applet? . I get errors on this line "public class Names extends JFrame {"

My Information

Member Title:
New D.I.C Head
Age Unknown
Birthday Unknown

Contact Information



Tomas1122 hasn't added any friends yet.


Tomas1122 has no profile comments yet. Why not say hello?