[ create a new paste ] login | about

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

C, pasted on Dec 4:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 = totalpart.start();
panel.setText(finish);       


Create a new paste based on this one


Comments: