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

  • Home
  • SEARCH
  • 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 7808801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:14:18+00:00 2026-06-02T03:14:18+00:00

I am trying to set background image width 100, height 100 and making the

  • 0

I am trying to set background image width 100, height 100 and making the border to null.
So that i can design the input field looking similar to following, but border is not applying and round corner does not exit + there is no background image apply way around.

http://image.shutterstock.com/display_pic_with_logo/85630/85630,1234358857,2/stock-vector-website-design-set-on-a-black-consist-of-menu-bar-buttons-checkbox-input-text-fields-drop-24795286.jpg

// Current
String[] petStringsa = { "eth0: ", "eth1: " };
JPanel namePanela = new JPanel(new BorderLayout());
JLabel nameLabela = new JLabel("View Inerfaces: ");
nameLabela.setDisplayedMnemonic(KeyEvent.VK_N);

final JComboBox nameTextFielda = new JComboBox(petStringsa);    
nameTextFielda.setBorder(null);
nameTextFielda.setBackground(Color.white);

nameLabela.setLabelFor(nameTextFielda);
namePanela.add(nameLabela, BorderLayout.WEST);
namePanela.add(nameTextFielda, 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-02T03:14:19+00:00Added an answer on June 2, 2026 at 3:14 am

    Take a look on this resource http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_windows/

    I explains how to change the swing elements’ shape.

    This thread explains how to put background image: How to set an image as a background for Frame in Swing GUI of java?

    Although my answer almost duplicates the Hovercraft Full Of Eels’ comment I decided to write it because it contains specific links.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set the background image of canvas using canvas.setBackgroundImage(image); How can i
I'm trying to set the background image of a view based on a passed
I am trying to set the background image of my view controller based on
I'm trying to set an image as the background using this code: root.setStyle(-fx-background-image: url('splash.jpg');
I'm trying to set the background of the right arrow, that when I press
I'm trying to animate a background image to move down a set amount of
#contentwrapper { background: #111; background: url('~/img/bg-black.png'); width: 100%; } #content { width: 340px; height:
I'm trying to make a centered, 100% high layout that has NO FIXED width
This is driving me nuts. I am trying to set a background image to
I have a div element with a background image that I am vertically trying

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.