Counts Mini True

Counts Mini True

MS2108 6600 COUNTS MINI TRUE RMS AC DC CURRENT DIGITAL
MS2108 6600 COUNTS MINI TRUE RMS AC DC CURRENT DIGITAL
Paypal   US $67.99
MS2108 6600 COUNTS MINI TRUE RMS AC DC CURRENT DIGITAL
MS2108 6600 COUNTS MINI TRUE RMS AC DC CURRENT DIGITAL
Paypal   US $58.49
MS2108 6600 COUNTS MINI TRUE RMS AC DC current clamp
MS2108 6600 COUNTS MINI TRUE RMS AC DC current clamp
Paypal   US $67.99

Help with figuring out whats wrong with this simple program?

I am following the book Java for Dummies, and am trying to do a little mini project of my own to see if I can get a window that pops up with a button and counts how many times that a user clicks it. I get an error message about the { on line 5, which I have no clue why that would happen when the braces are there.
Here is the code:

import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JButton;

class SimpleFrame extends JFrame, impliments ActionListener {

public SimpleFrame() {
setTitle("Click me please");
setLayout(new FlowLayout());
setDefaultCloseOperation(EXIT_ON_CLOSE);
b = new Button("Click me");
add (b);
add (text);
b.addActionListener(this);
setSize(300,100);
setVisible(true);
}
}
public class clikcounter implements ActionListener {
public void actionPerformed(ActionEvent e) {
numClicks++;
text.setText("Button Clicked " + numClicks + " times");

}
}

class SimpleFrame extends JFrame, impliments ActionListener {

Either get rid of the { at the end of that line, or add another } to the very end of your code. I don't remember my java that well, so I can't say which it is, but I think you need to eliminate the first one.


Wilton 2304-1050 101-Piece Cookie Cutter Set


Wilton 2304-1050 101-Piece Cookie Cutter Set


$11.15


Christmas, Halloween, Easter, Valentine's Day...cookie cutters for every season, and more! With a complete set of letters and numbers, designs for cowboys, stars, cars and animals, you'll be ready for any occasion. Durable plastic cutters come in a convenient storage container. Hand wash. (2-1/2 to 6-1/4)...

Wilton 307-826 Cupcakes 'n More 23-Count 4-Tier Metal Dessert Stand


Wilton 307-826 Cupcakes 'n More 23-Count 4-Tier Metal Dessert Stand


$22.89


Create dazzling centerpieces for birthday parties, holiday celebrations, and everyday occasions with this four-tier dessert stand. Constructed of non-toxic, silver-finished metal that won't chip or crack, the elegant unit's angled tiers and spiral-based cups provide the best view of decorated desserts, while its towering design ensures that guests will have no trouble making their way to the food ...

Wilton Ultimate 3-In-1 Cupcake Caddy and Carrier


Wilton Ultimate 3-In-1 Cupcake Caddy and Carrier


$7.00


WILTON-It is the most convenient way to take along cakes, cupcakes, muffins and more! The Ultimate 3-In-1 Cake Caddy features an exclusive reversible cupcake tray which holds 12 standard or 24 mini cupcakes. Or, remove the tray to carry up to a 9x13 inch decorated cake on the sturdy locking base. The see-through cover has higher sides to keep icing flowers and tall decorations protected. You w...

Tournament Poker: No Limit Texas Hold'em


Tournament Poker: No Limit Texas Hold'em


$1.00


Tournament Poker: No Limit Texas Hold'Em lets you practice your tournament skills and experience what the pros do. Whether you play at a friendly local poker night, a card room in Vegas or the World Series of Poker, this is the game you need!...

HW 300CT CLR LGT Set


HW 300CT CLR LGT Set


$10.72


Holiday Wonderland, 2 x 150 Lights, Clear String To String Light Set, Green Wire, 3" Spacing, 2.5V, Lead Wire Length 24", Replacement Bulb 3F/2R/1, 3 Sets Of Lights Can Be Connected Together, Comes With 3 Flasher Bulbs, 2 Extra Regular Bulbs & 1 Replacement Fuse, Replacement Bulb #1115-2-88, True Value #513-687....

Raindrip 117025B 25-Count 1 GPH In-Line Dripper


Raindrip 117025B 25-Count 1 GPH In-Line Dripper


$6.68


25 Pack, 1 GPH Mini In-Line Drippers, Self-Cleaning Turbulent Flow Drippers For Use With 1/4" Tubing Designed For Watering Plants In Rows, Ideal For Medium (Loam) Soil, Black/Black....

HW 100CT BLU LGT Set


HW 100CT BLU LGT Set


$9.12


Holiday Wonderland, 100 Count, Blue Mini Light Set, End Connector, Indoor/Outdoor Mini Box, 24" Lead Wire, 3" Spacing, Green Wire, Includes 2 Extra Bulbs & 1 Replacement Fuse, Uses Replacement Bulb: #1115-4-88, True Value #513-703....

Home Diagnostics True Track Smart System Blood Glucose Monitor


Home Diagnostics True Track Smart System Blood Glucose Monitor


$1.00


True Track Smart System Blood Glucose Meter Kit Main Features: * Tiny Blood Sample-Just 1 microliter. * Capillary-action requires only a tiny drop of blood for more comfortable testing. * Easy To Use-2 Simple Steps. * Fast Accurate Results - Just 10 Seconds. * Fast results for convenient testing. Contents: * True Track meter with battery * Owner's booklet * 10 True Track Smart System Blood Glucose...

Juice Rechargeable NiMH Batteries, Size AAA, 4-Count Packages (Pack of 2)


Juice Rechargeable NiMH Batteries, Size AAA, 4-Count Packages (Pack of 2)


$26.02


Juice TM Rechargeable nickel-metal hydride (NiMH) batteries have a higher energy density than alkaline, rechargeable alkaline and NiCad batteries, which results in higher capacity and longer service life. Each Juice TM battery delivers high-drain capacity with the ability to recharge (charge/discharge cycles) up to 1,000 times. Juice TM NiMH batteries are designed specifically to handle high-tech...

Tully's French Roast Extra Bold Coffee For Keurig K-Cup Brewing Systems 18 K-cups Count


Tully's French Roast Extra Bold Coffee For Keurig K-Cup Brewing Systems 18 K-cups Count


$7.98


These 18 individual servings work with the Keurig Gourmet Single Cup Brewing Systems for the ultimate quality coffee and tea in the ultimate single-cup brewing system. The revolutionary K-Cup is a patented design that is guaranteed to always deliver a perfectly brewed cup. The K-Cup protects coffee and tea from light, air, and moisture--providing you with the freshest coffee or tea you can get. Gr...
Forestry Equipment

Comments are closed.