JComboBox - Bottom border is not visible for the first time
JComboBox - Bottom border is not visible for the first time i click on the arrow to drop the list down.
This happens because the list when dropped down goes out of the frame.
If have the increased the size of the Frame then i am able to see it,but i dont want to do this.
I am using jdk1.3.1_02.
Any Help would be great.
Please find the code below.
Thanks,
Sridhar.
//file: Lister.java
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Lister {
public static void main(String[] args) {
JFrame frame = new JFrame("Lister v1.0");
// create a combo box
String [] items = { "uno", "due", "tre", "quattro", "cinque",
"sei", "sette", "otto", "nove", "deici",
"undici", "dodici" };
JComboBox comboBox = new JComboBox(items);
comboBox.setEditable(true);
// put the controls the content pane
Container c = frame.getContentPane( );
JPanel comboPanel = new JPanel( );
comboPanel.add(comboBox);
c.add(comboPanel, BorderLayout.NORTH);
c.setBackground(Color.white);
comboBox.setBackground(Color.white);
comboPanel.setBackground(Color.white);
frame.setBackground(Color.white);
frame.setResizable(false);
frame.setSize(200, 200);
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.setVisible(true);
}
Hello,
try this:JPanel comboPanel = new JPanel(new BorderLayout());Regards,
Tim
Similar Messages
-
Drop down list(JComboBox) - Bottom border is not visible for the first time
Drop down list(Combo-box) JComboBox - Bottom border is not visible for the first time i click on the arrow to drop the list down.
I am using jdk1.3.1_02.
Did any one face this issue.
Please let me know.
Thanks,
Sridhar.I must be a little confused regarding your question.
You can simply change your code frame.setSize(200, 200); to frame.setSize(400, 400);When you say you are unable to see the border are you specifically talking about the border of the frame or the border of the combo box?
Lance -
New Mac Mini. Can not boot for the first time.
Hello Mac to all the mini community. I recently buy a mac mini and it is not able to boot for the first time.
The only progress is the apple logo, the grey screen and the loading circle.
I was able to boot in safe mode by holding the power button and plug the power cord and i saw the following message:
'Unable to find driver for this platform: \ACPS\.\n'0/sourcecache/.....
debugger called <panic>
can't perform kext scan: no kext summary
OSD process name correspondling to current threat: unknown
MAC OS Version:
Not yet set
Kernel Version:
Orvin Kernetl Version 11.0.1....
So can you please provide any feedback on how to reslove the issue?
Thanks in advanceA new Mac should already have OS X installed on it and boot right up .....?
Mac Pro & Mac mini Fast Start: The new user's guide to the Mac
You should be able to open the box, plug in the power cord, your Display, Keyboard and Mouse, push the power button and start using it.
If not, then you need to return it or exchange it for one that works properly. -
Page does not load for the first time
Hi,
When I enter the URL to load the page, it does not work, i.e I get page not found message. But when I refresh(F5) the page gets loaded. This is just not for the login page but all my report and form pages and this happens only for the first time I try to access in the day. I couldnt understand why it happens? Can someone help me to understand the problem I am facing?
ThanksWhat does the appache log says?
Your appache server home > Apache > Apache > logs > access_log.current_date
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Pr Pro CC 2014 not startup (for the first time)
Premiere CC 2014 wil not startup on my iMac. (for the first time)
It shows:
" Adobe Premiere Pro coult not find any capable video play modules. Please update your video display drivers and startup"
My iMac:
O.S. 10.9.5
3,5 GHz i7
32 GB 1600 MHz DDR3
Video:
NVIDIA Geforce GTX 780 m 4096 MB
I foud a CUDA driver:
version 6.5.18
What to do?Hi,
Please go this location on your computer:
Click on Go on the top- Go to folder- Type ~/library then go to application folder- rename the adobe folder to old adobe
go back to ~/library then go to preferences and rename the adobe folder to old adobe
go to documents and rename the adobe folder to old adobe.
After doing this you will loosed your synced settings and customized keyboard short cuts and effects if any.
Thank You
Arjun -
Buttons are not displayed for the first time when drawImage method is used
Hi
In my swing window 2 buttons are there and when clicking these buttons, it should display an image . The two buttons are displayed at the first time and I can click on it . While clicking a button , the corresponding image is also got displayed. [ I am using drawImage() function for it] But what the problem is, then the two buttons are not displayed and it will be displayed again when the mouse moves along the position of these two buttons. And this problem occurs only at the first time..When they are on the window on a second time, they won't vanish when the image is displayed when clicking it. Is this the problem with paint() method?. I am using start() method also.
Please help me!
Thank YouHi
This is not my exact program, that has a large no: of code. So I am putting here a sample one. One thing I would like to point out is that , I can see the buttons at the time of loading the applet and suddenly it vanishes and the image is drawn. Then if I move the mouse along the position of these buttons , they got displayed.
import java.awt.*;
import javax.swing.*;
/*<applet code = MyClass width = 500 height = 500>
</applet>
public class MyClass extends JApplet
Image img;
JButton b1,b2;
Container cp;
Canvas1 cv;
class Canvas1 extends JPanel
public void paint(Graphics g)
super.paint(g);
g.setColor(Color.black);
g.fillRect(0,0,500,500);
img = getImage(getCodeBase(),"image1.jpeg");
g.drawImage(img,20,20,this);
public void start()
cv = new Canvas1();
cv.setBounds(0,0,500,500);
cp.add(cv);
public void init()
setLayout(null);
cp = getContentPane();
b1 = new JButton("Button1");
b1.setBounds(1,1,100,30);
cp.add(b1);
b2 = new JButton("Button2");
b2.setBounds(200,1,100,30);
cp.add(b2);
It would be very helpful to me if you could fix the problem.
Thank You. -
I Chat will not start for the first time on my Macbook Pro after Migration
Hi hope someone can help as this problem has stumped me. I cannot get ICHAT to even start having migrated all applications via Migration Assistant from a Macbook to a Macbook Pro. Everything else seems to work fine except when I run ICHAT and follow setup I get to a final screen which locks without showing a DONE button to complete the setup process! I have reloaded OS X, downloaded the OS X Combo OSand tried that, deleted the app and started again just in case but to no avail. Can anyone help? The application worked fine on the old Macbook but not on this machine.
Hi,
Welcome to the Discussions
Please tells us which version of iChat was moved to the new computer ?
What OS is the new computer at otherwise ?
I would guess you will have to do th Hard way
http://discussions.apple.com/thread.jspa?threadID=1486891&tstart=0
and include the Support folders in any Reinstall
Please note the Post time I add to my post as it may be some time before I post again.
10:58 PM Wednesday; September 2, 2009
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat" -
SAP RM: How can I create a Node when the node is not visible for the user
Hi,
Product: SAP records Management for Public Sector
Version: 7.00
is it possible to create a instance node when the model not is not visible for the active user?
I looked in the CL_SRM_XML_REC_MODEL but every methode I used gave me no results with the special user.
Regards and thanks for every beginning
Fanninger ThomasHi,
here an example.
When I use the method CL_SRM_XML_REC_INSTANCE->IF_SRM_XML_POID~GET_ALL( POID_TAB COUNT_USER_REST COUNT_POID_AUTH ).
When I used the user with no right for viewing the invisible nodes I get no elements in the tabelle POID_TAB and 38 in the value COUNT_USER_REST.
So did any one know a solution you can I create a nodes and change the restriction for the new node with the normal user?
Regards
Fanninger Thomas
Edited by: Thomas Fanninger on Feb 5, 2008 8:15 AM -
How do I sign in to my iTunes for the first time? Everytime I try it says I have not used iTunes before, and to review my account information.
It sounds like you are trying to create a new icloud account, not just logging into an existing account. When you type in your Apple ID and get that error, it's because you are trying to create an account using the same ID that is already being used in another account.
Go to Settings>iCloud and scroll to the bottom of the screen. If you are logged in, press the Delete button, then try logging in with the existing ID.
As for pics, the most secure way is to connect ipod to PC with USB and look at the Photos tab for your device in iTunes. Using Photo Stream is another way, but it doesn't always work, depending on conditions. -
After syncing a replacement iPad for the first time, my apps now have a"waiting" message . I can still access from settings but not on the opening app page
Try this - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
iPhone: Can't hear through the receiver or speakers
http://support.apple.com/kb/ts1630http://support.apple.com/kb/ts1630
http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
To solve some sound problems, just follow these simple steps
1. Go to Settings
2. Tap on General
3. Tap on Reset
4. Tap on Reset All Settings
You may need to delete the game app and redownload (you won't be charged).
Cheers, Tom -
Hi Team, I am fairly new at this & I'm trying for the first time to download a movie, however its not allowing me to play as it says I need to download quicktime which I have tried to do, I have this application now but its still not allowing me to play movie, any help please for someone who hasnt got a clue
where did you download the movie from?
what is it doing when it wont allow you to play the movie?
since you downloaded quicktime is it still asking you to download quicktime? -
I’ve tried to update my i-Tunes version after the site suggested I should following my i-Pad Air being plugged into it for the first time. The update seemed successful but the program would not open at all despite switching off the PC and re-starting several times. I then tried wiping the original software from the computer and re-downloading from scratch. Each time I tried the download failed with a message saying “Service “Apple Mobile Device” failed to start. Verify that you have sufficient privileges to start system services” At this stage, the only way forward was to “abort” the download. This I have done now four times and the same thing happens. When I did finally manage to get an i-Tunes shortcut on my desktop, the program wouldn’t open saying: “i-Tunes was not installed correctly. Please re-install i-Tunes. Error 7 (Windows error 193)” Any ideas to resolve this?
Try the following user tip:
Troubleshooting issues with iTunes for Windows updates -
I live in Italy and I am trying to buy an App, for the first time with my iphone4...in the past only downloaded free apps free apps; I have a US Visa card and it is not accepted by italian Itunes...what can I do to do my purchases?
On the apple website that is correct i beleive.... but i have an italian american express and am able to purchase stuff here in the US.
I mean, i dont think it really matters -
For the first time, I'm trying to use adobe premiere elements 10 that came with my pc Windows 8. I created a single project, saved it but cannot open it. My pc shows the file I created but I get an error message that says this type file is not supported or the codex is not installed. As a test, I created another very small project and get the same error message, when I try to open it. Pls give me a simple answer, a refund or a phone
mike frischenmeyer
What computer operating system is your Premiere Elements 10 running on? And, what video card/graphics card does that computer use?
Is this the first time you are using Premiere Elements 10 or have you worked with it before successfully? There is no easy solution until we
know the details and troubleshoot to determined what caused the problem.
1. Can you open a new project?
2. After you saved/closed the problem project, did you move, delete, or rename any of the files/folder that were related to the source media
for that project?
3. Please review the Adobe document on troubleshooting damaged projects.
Troubleshoot damaged projects | Adobe Premiere Elements
4. What are the steps that you are using to reopen this saved closed project.
a. File Menu/Open Project/Name of Project
b. Other
Please review and consider and then we can decide what next based on your further details and results..
Thank you.
ATR -
today for the first time ever... firefox will not work.. it constantly is going to not responding... and i have never had this problem before... is it suddenly not compatible with windows 7? what is best suited for windows seven users?
Drrhythm2 wrote:
What's the best solution for this? I
Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer.
Maybe you are looking for
-
So, for days now, I cannot open my apps in CC. When I click on the icon (Br, Lr, Ps) in the desktop CC, nothing happens. Nothing. The apps have little green checkmarks next to them that say they're updated. And my account is all paid up. Getting a
-
Scheduled system image backup windows 8.1
Hello, in windows 8.1. there is an option to create a system image backup. What can be done to configure this as a scheduled job to backup a machine every night as an image? Thx
-
Model & Algorithm for fraudulent Credit Card transaction
Hello Everyone, I am new to datamining. Currently I am working on an acedemic project related to credit card fraudlent transactions. My objective is to classify a new transaction as normal or fraudlent. AFAIK the classification/scoring will be differ
-
My Contact Photos are Messed Up
Hi. My contacts photo are messed up. My brother's photo is placed in my wife's contact info, while my wife's is at my friend, etc. I am using iPad 2 and iOS 5.1.1 This happens often, so that I removed all photos. Can anyone help?
-
what will be the peoplesoft query to calculate voluntary termination count and involuntary termination count? I am working on OBIA HR analytics workforce deployment reports and need to validate the reports. I also want to know the tables involved