package Trial;
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.border.MatteBorder;
public class Dashboard {
JFrame frame;
public Dashboard() {
frame = new JFrame("Hancie e-Learning Studio");
frame.setSize(650, 450);
frame.setLocationRelativeTo(null);
frame.getContentPane().setLayout(null);
JTextField t1 = new JTextField();
t1.setBounds(10, 10, 200, 35);
t1.setBorder(new MatteBorder(0, 0, 2, 0, Color.red));
t1.setBackground(new Color(255, 255, 255));
frame.add(t1);
frame.setVisible(true);
}
public static void main(String[] args) {
new Dashboard();
}
}
Output