Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22
  1. #21
    Unknown is offline Member
    Join Date
    Dec 2008
    Posts
    15
    Rep Power
    0

    Default

    alright, thanks for answering that, I'll try to split my program up now.

  2. #22
    Unknown is offline Member
    Join Date
    Dec 2008
    Posts
    15
    Rep Power
    0

    Default

    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.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Final int
    By Fireking in forum New To Java
    Replies: 12
    Last Post: 06-22-2013, 05:44 PM
  2. [SOLVED] is final class members are also final ?
    By haoberoi in forum New To Java
    Replies: 4
    Last Post: 11-10-2008, 03:01 PM
  3. help to complete final part of project
    By dirtycash in forum New To Java
    Replies: 6
    Last Post: 12-31-2007, 06:21 AM
  4. Poi 3.0-final
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-22-2007, 07:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •