0

hello everyone,
help me in centering the frame which i developed using swing. Here is the code:

import javax.swing.*;
public class RSAInterface extends JFrame
{
	public RSAInterface()
	{
		setTitle("RSA by adil");
		setBounds(200,200,300,300);
		setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JPanel panel = new RSAPanel();
		this.add(panel);
	}
}
import javax.swing.*;
public class RSAInterfaceTest
{
	public static void main(String ar[])
	{
		JFrame f = new RSAInterface();
		f.setVisible(true);
	}
}
2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Hazem Nassr
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.