?
Solved

Make background of JTextField to transparent.

Posted on 2003-03-19
3
Medium Priority
?
1,370 Views
Last Modified: 2008-03-17
How can I make the backgournd of JTextField to transparent?
Thanx
0
Comment
Question by:csound
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 8166958
public class MyTextField extends JTextField
{
  public MyTextField()
  {
    super() ;
    setOpaque( false ) ;
  }
}

Should do it...
0
 
LVL 35

Accepted Solution

by:
TimYates earned 120 total points
ID: 8166975
hehe...actually, setOpaque is a public method, so

JTextField f = new JTextField() ;
f.setOpaque( false ) ;

Should work too...
0
 
LVL 35

Expert Comment

by:TimYates
ID: 8172859
Hello?
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 12 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question