Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: all pages buttons focused fixed #52

Merged
merged 2 commits into from
May 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion myClasses/Edit.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public Edit() {
fullNameButton.setForeground(Color.decode("#8ee0f0"));
Font fullnameButtonFont = new Font("Times New Roman", Font.BOLD, 19);
fullNameButton.setFont(fullnameButtonFont);
fullNameButton.setFocusable(false);
contentPane.add(fullNameButton);

usernameButton = new JButton("User Name");
Expand All @@ -86,6 +87,7 @@ public Edit() {
usernameButton.setForeground(Color.decode("#8ee0f0"));
Font usernameButtonFont = new Font("Times New Roman", Font.BOLD, 19);
usernameButton.setFont(usernameButtonFont);
usernameButton.setFocusable(false);
contentPane.add(usernameButton);

phoneButton = new JButton("Phone Number");
Expand All @@ -96,21 +98,25 @@ public Edit() {
phoneButton.setForeground(Color.decode("#8ee0f0"));
Font phoneButtonFont = new Font("Times New Roman", Font.BOLD, 19);
phoneButton.setFont(phoneButtonFont);
phoneButton.setFocusable(false);
contentPane.add(phoneButton);

exitButton = new JButton("Exit");
exitButton.setFont(new Font("Tahoma", Font.BOLD, 10));
exitButton.setBounds(809, 486, 70, 21);
exitButton.setFocusable(false);
contentPane.add(exitButton);

backButton = new JButton("Back");
backButton.setFont(new Font("Tahoma", Font.BOLD, 10));
backButton.setBounds(10, 486, 70, 21);
backButton.setFocusable(false);
contentPane.add(backButton);

logoutButton = new JButton("logout");
logoutButton.setBounds(809, 10, 70, 21);
logoutButton.setFont(new Font("Tahoma", Font.BOLD, 10));
logoutButton.setFocusable(false);
contentPane.add(logoutButton);

confirmButton1 = new JButton("Confirm");
Expand All @@ -121,6 +127,7 @@ public Edit() {
confirmButton1.setForeground(Color.decode("#8ee0f0"));
Font confirmButtonFont1 = new Font("Times New Roman", Font.BOLD, 15);
confirmButton1.setFont(confirmButtonFont1);
confirmButton1.setFocusable(false);
contentPane.add(confirmButton1);

confirmButton2 = new JButton("Confirm");
Expand All @@ -131,7 +138,7 @@ public Edit() {
confirmButton2.setForeground(Color.decode("#8ee0f0"));
Font confirmButtonFont2 = new Font("Times New Roman", Font.BOLD, 15);
confirmButton2.setFont(confirmButtonFont2);

confirmButton2.setFocusable(false);
contentPane.add(confirmButton2);

confirmButton3 = new JButton("Confirm");
Expand All @@ -142,6 +149,7 @@ public Edit() {
confirmButton3.setForeground(Color.decode("#8ee0f0"));
Font confirmButtonFont3 = new Font("Times New Roman", Font.BOLD, 15);
confirmButton3.setFont(confirmButtonFont3);
confirmButton3.setFocusable(false);
contentPane.add(confirmButton3);

full = new JLabel("Enter your full name :");
Expand Down
4 changes: 4 additions & 0 deletions myClasses/Profile.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,25 @@ public Profile() {
editButton.setBorder(BorderFactory.createEmptyBorder());
editButton.setBackground(new Color(0, 0, 0, 0));
editButton.setBounds(672, 387, 80, 30);
editButton.setFocusable(false);
contentPane.add(editButton);

exitButton = new JButton("Exit");
exitButton.setFont(new Font("Tahoma", Font.BOLD, 10));
exitButton.setBounds(809, 486, 70, 21);
exitButton.setFocusable(false);
contentPane.add(exitButton);

backButton = new JButton("Back");
backButton.setFont(new Font("Tahoma", Font.BOLD, 10));
backButton.setBounds(10, 486, 70, 21);
backButton.setFocusable(false);
contentPane.add(backButton);

logoutButton = new JButton("logout");
logoutButton.setBounds(809, 10, 70, 21);
logoutButton.setFont(new Font("Tahoma", Font.BOLD, 10));
logoutButton.setFocusable(false);
contentPane.add(logoutButton);

JPanel panel_1 = new JPanel();
Expand Down