Logo Search packages:      
Sourcecode: jfractionlab version File versions  Download package

jfractionlab::excerciseDialogs::ClickNumerator::ClickNumerator ( JFractionLab  owner,
int  lx,
int  ly,
int  sx,
int  sy 
) throws HeadlessException [inline]

Parameters:
owner 
lx 
ly 
sx 
sy 
Exceptions:
HeadlessException 

Definition at line 67 of file ClickNumerator.java.

                                                                                                         {
            super(lx, ly, sx, sy);
            setTitle(lang.Messages.getString("click_the_numerator"));
            btn_continue = new JButton(lang.Messages.getString("continue"));
            btn_end =  new JButton(lang.Messages.getString("end"));
            this.owner = owner;
            
            jmiHelp.addActionListener(this);
            jmb.add(jmHelp);
            setJMenuBar(jmb);
            
            double sizes[][] = {{   
                  // Spalten
                  TableLayout.FILL,
                  0.10,
                  TableLayout.FILL,
                  0.20,
                  12
            },{   
                  //Zeilen
                  30,
                  12,
                  30,
                  TableLayout.FILL,
                  TableLayout.FILL,
                  12,
                  TableLayout.FILL,
                  TableLayout.FILL,
                  30
            }};

            Container content = getContentPane();
            content.setLayout(new TableLayout(sizes));
            content.setBackground(Color.white);
            content.add(lb_numerator, "1,0");
            FractionBar bs = new FractionBar();
            content.add(bs, "1,1");
            content.add(lb_denominator, "1,2");
            content.add(clickablePizza, "0,3,2,7");
            btn_continue.addActionListener(this);
            content.add(btn_continue, "3,4,f,b");
            btn_end.addActionListener(this);
            content.add(btn_end, "3,6,f,t");
            points = owner.points_clickNumerator;
            pdsp.setText(String.valueOf(points));
            content.add(pdsp, "3,7,3,8");
            lb_info.setFont(JFractionLab.infofont);
            lb_info.setText(lang.Messages.getString("use_the_mouse"));
            content.add(lb_info, "0,8,2,8");

            makeProblem();
            String[] ar_howto = {"howto_click_numerator"};
            new UsabilityDialog(
                  "tippatstart",
                  ar_howto,
                  new ConfManager().tippIsSet("tippatstart")
            );//new UsabilityDialog
      }//Konstruktor


Generated by  Doxygen 1.6.0   Back to index