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

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

commented: www.google.com -2

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.