Results 21 to 22 of 22
Thread: GUI Final Project help
- 12-29-2008, 09:29 PM #21
Member
- Join Date
- Dec 2008
- Posts
- 15
- Rep Power
- 0
- 12-30-2008, 07:58 PM #22
Member
- Join Date
- Dec 2008
- Posts
- 15
- Rep Power
- 0
When I tried to separate each part into a different method, it always tells me "invalid method declaration; return type is required". I tried to follow in the same format as my notes and the java sun website. Here's my code so far:
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.BorderFactory;
import java.awt.*;
import java.awt.Color;
import java.awt.event.*;
import java.util.*;
import java.awt.Image;
import javax.swing.ImageIcon;
public class FinalISU implements ActionListener
{
JFrame frame;
JPanel panel;
JLabel title;
JPanel buttonpanel;
public GUI_frame()
{
frame= new JFrame("Cuminating Activity # 2");
frame.setSize(800,350);
frame.setLocation (150,150);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
panel = new JPanel (new BorderLayout());
}
}
I compared my notes and my source code but I can't seem to find anything wrong.
Similar Threads
-
[SOLVED] is final class members are also final ?
By haoberoi in forum New To JavaReplies: 4Last Post: 11-10-2008, 03:01 PM -
Final int
By Fireking in forum New To JavaReplies: 10Last Post: 09-05-2008, 07:12 AM -
help to complete final part of project
By dirtycash in forum New To JavaReplies: 6Last Post: 12-31-2007, 06:21 AM -
Poi 3.0-final
By levent in forum Java SoftwareReplies: 0Last Post: 05-22-2007, 07:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks