[ create a new paste ] login | about

Link: http://codepad.org/tMypTgij    [ raw code | fork ]

C, pasted on Dec 4:
public void total ( String output)
{
   choice = output
}
public String start()
{
return choice;
}


Then in the other class that calls it
    class name is total part                      JPanel name is part1
private totalpart part1 = new totalpart();
private String finish;
private JTextfield panel = new JTextField(9);

public void init()
{
finish = part1.start();
panel.setText(finish);       


Part1 is the Panel where the answer is supposed to be


Create a new paste based on this one


Comments: