Costo de Llamada

package Capitulo_A11;
 
import java.awt.*;
 
import javax.swing.*;
 
import java.awt.event.*;
import java.text.DecimalFormat;
 
@SuppressWarnings("serial")
public class _3_Ejercicio_11_1_ extends JFrame implements ActionListener {
 
private JTextField horasT, minutosT, segundosT, costoT;
private JLabel horasL, minutosL, segundosL, costoL;
private double costo;
private JButton boton;
private DecimalFormat formato;
 
 
public static void main (String[] args) {
_3_Ejercicio_11_1_ marco = new _3_Ejercicio_11_1_();
marco.setSize(200,170);
marco.GUI();
marco.setVisible(true);
 
}
 
public void GUI() {
setDefaultCloseOperation(EXIT_ON_CLOSE);
Container ventana = getContentPane();
ventana.setLayout(null);
 
horasL = new JLabel("Horas: ");
horasL.setBounds(10, 20, 100, 20);
ventana.add(horasL);
 
horasT = new JTextField("0");
horasT.setBounds(80, 20, 100, 20);
ventana.add(horasT);
 
minutosL = new JLabel("Minutos: ");
minutosL.setBounds(10, 40, 100, 20);
ventana.add(minutosL);
 
minutosT = new JTextField("0");
minutosT.setBounds(80, 40, 100, 20);
ventana.add(minutosT);
 
segundosL = new JLabel("Segundos: ");
segundosL.setBounds(10, 60, 100, 20);
ventana.add(segundosL);
 
segundosT = new JTextField("0");
segundosT.setBounds(80, 60, 100, 20);
ventana.add(segundosT);
 
costoL = new JLabel("Costo: ");
costoL.setBounds(10, 80, 100, 20);
ventana.add(costoL);
 
costoT = new JTextField("0");
costoT.setBounds(80, 80, 100, 20);
ventana.add(costoT);
 
boton = new JButton("Ejecutar");
boton.setBounds(50, 110, 100, 20);
ventana.add(boton);
boton.addActionListener(this);
 
 
}
 
@Override
public void actionPerformed(ActionEvent args) {
 
String horasS, minutosS, segundosS;
horasS = horasT.getText();
minutosS = minutosT.getText();
segundosS = segundosT.getText();
 
int horas, minutos, segundos;
horas = Integer.parseInt(horasS);
minutos = Integer.parseInt(minutosS);
segundos = Integer.parseInt(segundosS);
 
segundos = (horas*3600) + (minutos * 60) + segundos;
 
double centavos = 10;
costo = Math.round((centavos/60)*segundos);
costo = costo / 100;
formato = new DecimalFormat("$##.##");
costoT.setText(formato.format(costo));
 
 
}
}