This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package FahrenheitTask; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.text.DecimalFormat; | |
public class CelsiusFahrenheitConverter extends JFrame implements ActionListener { | |
private final JTextField jTextField; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package JUnittasks; | |
import javax.swing.*; | |
import java.awt.*; | |
public class Align extends JFrame { | |
private final JCheckBox snapToGrid, showGrid; | |
private final JLabel labelX, labelY; | |
private final JTextField fieldX, fieldY; | |
private final JButton ok, cancel, help; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package JUnittasks; | |
import javax.swing.*; | |
import java.awt.*; | |
public class Calculator extends JFrame { | |
private final JTextField jTextField; | |
private final JButton zero, one, two, three, four, five, six, seven, eight, nine; | |
private final JButton add, sub, mul, div, dot, equal; | |
private ButtonGroup buttonGroup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package JUnittasks; | |
import javax.swing.*; | |
import java.awt.*; | |
public class ColorSelect extends JFrame { | |
private final JComboBox<String> colorBox; | |
private static final String[] colorNames = | |
{"RED", "BLUE", "YELLOW"}; | |
private final JCheckBox background; |