I'm working on a school project and I need some help. The below works, but when I click on the "Report" button I want my data to print to a new frame. I'm not sure how to do this. Do I use a JFrame?
if(arg=="Report")
{
try
{
DataInputStream readinput = new DataInputStream(new FileInputStream("poolvolumedata.txt"));
double inputlength;
double inputwidth;
double inputdepth;
double inputvolume;
//char tab;
try
{
while(true)
{
inputlength = readinput.readDouble();
readinput.readChar();
inputwidth = readinput.readDouble();
readinput.readChar();
inputdepth = readinput.readDouble();
readinput.readChar();
inputvolume = readinput.readDouble();
System.out.println(inputlength + "\t" + inputwidth + "\t" +
inputdepth + "\t" + inputvolume);