Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

[Java] what the hell am I doing wrong with this graphical interfaze?

  1. Oct 29, 2012 #1
    I have a package with all the classes needed to perform the functional recquirements (calculations, etc.). It's working perfectly. The "main" class is "FinalesCopaMundo"

    I have another package with all the classes needed to perform the GUI. The "main" class is "InterfazFinalesCopaMundo".

    I have:

    Code (Text):
    package uniandes.cupi2.finalesCopaMundo.interfaz;
    import javax.swing.*;

    import java.awt.*;
    import uniandes.cupi2.finalesCopaMundo.mundo.*;


    public class InterfazFinalesMundiales extends JFrame{

        //Atributos
       
        private PanelEquipoA panelEquipoA;
        private PanelEquipoB panelEquipoB;
        private PanelImagen panelImagen;
        private PanelInformacion panelInformacion;
        private PanelOpciones panelOpciones;
       
        private FinalesCopaMundo finalesCopaMundo; //this line is not throwing an error
       
       
        //Constructor
       
        public InterfazFinalesMundiales(){
           
        finalesCopaMundo=new FinalesCopaMundo(); //this line is throwing an error


    I don't know why this is, any tips?
     
  2. jcsd
  3. Oct 29, 2012 #2
    Re: what the hell am I doing wrong with this graphical interfaze?

    OK, for some reason adding a "throws Exception" was the solution, but I don't know why, any idea?
     
  4. Oct 29, 2012 #3

    gabbagabbahey

    User Avatar
    Homework Helper
    Gold Member

    Re: what the hell am I doing wrong with this graphical interfaze?

    Can you pst your FinalesCopaMundo class? (I assume that is where you added the throws Exception statement?)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: [Java] what the hell am I doing wrong with this graphical interfaze?
Loading...