Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualDarego

Posted 04 May 2013 - 09:41 AM

thanks for the reply. looking at your link, i made some changes to my code to try set up the links although when i ran the code is made no changes at all and just gave me 2 normal buttons.. here is the code i used and a picture of it running

 

996cd9d8a6abaaf3a680f1b7af66225e.png

 

 

JButton btnForgottenUsername = new JButton("Forgotten Username?");
		btnForgottenUsername.setBounds(131, 62, 156, 23);
		btnForgottenUsername.setHorizontalAlignment(SwingConstants.LEFT);
		btnForgottenUsername.setBorderPainted(false);
		btnForgottenUsername.setOpaque(false);
		btnForgottenUsername.setBackground(Color.lightGray);
		contentPane.add(btnForgottenUsername);
		
		JButton btnForgottenPassword = new JButton("Forgotten Password?");
		btnForgottenPassword.setBounds(131, 108, 156, 23);
		btnForgottenPassword.setHorizontalAlignment(SwingConstants.LEFT);
		btnForgottenPassword.setBorderPainted(false);
		btnForgottenPassword.setOpaque(false);
		btnForgottenPassword.setBackground(Color.lightGray);
		contentPane.add(btnForgottenPassword);

#1Darego

Posted 04 May 2013 - 09:35 AM

thanks for the reply. looking at your link, i made some changes to my code to try set up the links although when i ran the code is made no changes at all and just gave me 2 normal buttons.. here is the code i used

 

JButton btnForgottenUsername = new JButton("Forgotten Username?");
		btnForgottenUsername.setBounds(131, 62, 156, 23);
		btnForgottenUsername.setHorizontalAlignment(SwingConstants.LEFT);
		btnForgottenUsername.setBorderPainted(false);
		btnForgottenUsername.setOpaque(false);
		btnForgottenUsername.setBackground(Color.lightGray);
		contentPane.add(btnForgottenUsername);
		
		JButton btnForgottenPassword = new JButton("Forgotten Password?");
		btnForgottenPassword.setBounds(131, 108, 156, 23);
		btnForgottenPassword.setHorizontalAlignment(SwingConstants.LEFT);
		btnForgottenPassword.setBorderPainted(false);
		btnForgottenPassword.setOpaque(false);
		btnForgottenPassword.setBackground(Color.lightGray);
		contentPane.add(btnForgottenPassword);

PARTNERS