0

my Java code was:

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;

public class compiler extends Frame implements ActionListener{
 TextArea A = new TextArea(32,140);
 Button S = new Button("SAVE");
 Button C = new Button("COMPILE");
 Button Cl = new Button("CLEAR");
 Button E = new Button("EXIT");
public static void main(String args[])
{
compiler f = new compiler();
f.setSize(900,900);
f.setVisible(true);
}
public compiler(){
setTitle("COMPILER");
Panel p1 = new Panel();
p1.setLayout(new FlowLayout(FlowLayout.LEFT));
p1.add(A);
Panel p2 = new Panel();
p2.setLayout(new FlowLayout(FlowLayout.LEFT));
p2.add(S);
p2.add©;
p2.add(Cl);
p2.add(E);
setLayout(new FlowLayout(FlowLayout.LEFT));
add(p1);
add(p2);
S.addActionListener(this);
C.addActionListener(this);
Cl.addActionListener(this);
E.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
compiler f = new compiler();
String args = e.getActionCommand();
if(e.getSource() instanceof Button)
{
if(args.equals("SAVE"))
{
}
if(args.equals("COMPILE"))
{
f.test();
}
if(args.equals("CLEAR"))
{
A.setText("");
A.requestFocus();
}
if(args.equals("EXIT"))
{
 System.exit(0);
}
}
}
public native void test();
}

end quote.

Jorhat Engineering College, Csc-11/05

Edited by mike_2000_17: Fixed formatting

-1

can anyone give me the address of finding the source code of the latex software

Votes + Comments
www.google.com
0

i have received what is there in my JAVA interface's text area as a string using JNI.

Now i need scan the lines starting with #s and ending with s#. so that i could convert the string between them to capital using strupr. suggestions will be appreciated.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.