Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7761965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:16:12+00:00 2026-06-01T14:16:12+00:00

How to fix the label for Gateway, which is the only one not showing.

  • 0

How to fix the label for Gateway, which is the only one not showing. All the rest are showing.

  public TextLabelMirror() {

    // DHCP
    String[] petStrings = { "Static", "Auto" };
    JPanel namePanel = new JPanel(new BorderLayout());
    JLabel nameLabel = new JLabel("DHCP Mode: ");
    nameLabel.setDisplayedMnemonic(KeyEvent.VK_N);
    final JComboBox nameTextField = new JComboBox(petStrings);    
    nameLabel.setLabelFor(nameTextField);
    namePanel.add(nameLabel, BorderLayout.WEST);
    namePanel.add(nameTextField, BorderLayout.CENTER);

    // IP - Address 
    JPanel namePanel0 = new JPanel(new BorderLayout());
    JLabel nameLabel0 = new JLabel("IP: ");
    nameLabel0.setDisplayedMnemonic(KeyEvent.VK_N);
    final JTextField nameTextField0 = new JTextField(20);           
    nameLabel0.setLabelFor(nameTextField0);
    namePanel0.add(nameLabel0, BorderLayout.WEST);
    namePanel0.add(nameTextField0, BorderLayout.CENTER);


    // NetMask
    JPanel namePanel1 = new JPanel(new BorderLayout());
    JLabel nameLabel1 = new JLabel("Netmask: ");
    nameLabel1.setDisplayedMnemonic(KeyEvent.VK_N);
    final JTextField nameTextField1 = new JTextField(20);       
    nameLabel1.setLabelFor(nameTextField1);
    namePanel1.add(nameLabel1, BorderLayout.WEST);
    namePanel1.add(nameTextField1, BorderLayout.CENTER);

    // Gateway
    JPanel namePanel2 = new JPanel(new BorderLayout());
    JLabel nameLabel2 = new JLabel("Gateway: ");
    nameLabel2.setDisplayedMnemonic(KeyEvent.VK_N);
    final JTextField nameTextField2 = new JTextField(20);       
    nameLabel2.setLabelFor(nameTextField2);
    namePanel2.add(nameLabel2, BorderLayout.WEST);
    namePanel2.add(nameTextField2, BorderLayout.WEST);

    // Save now
    JPanel namePanel3 = new JPanel(new BorderLayout());
    final JButton nameTextField3 = new JButton("Save");       
    namePanel3.add(nameTextField3, BorderLayout.CENTER); 
    ....

  }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:16:14+00:00Added an answer on June 1, 2026 at 2:16 pm

    You seem to have added them both to WEST. I am assuming you meant to add nameTextField2 to CENTER or something.

    namePanel2.add(nameLabel2, BorderLayout.WEST);
    namePanel2.add(nameTextField2, BorderLayout.WEST);
    

    like so:

    namePanel2.add(nameLabel2, BorderLayout.WEST);
    namePanel2.add(nameTextField2, BorderLayout.CENTER);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to Build a string or fix the label in the GUI
How do I fix a broken debugger, one that just won't start, in EclipseME
How do I fix that error once and for all? I just want to
Just trying to fix this overlapped labeling: My code: values=c(164241,179670) labels=c(Private, Public) colors=c(#cccccc, #aaaaaa)
Greetings I am a jquery newbie and trying to fix an issue which uses
I have the following html: A div, which contains a label and a drop
I have the next code and i don't get why it's not working. <asp:Label
I am feeding the label to my LinkButton directly from a string I receive
I have a checkbox which can make a post password protected- <p><strong><label for=password>Password protect?</label></strong>
here is code which creats animated text using imagemagick.. $label=$_POST[label]; $cmd = -background transparent

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.