A bug with JPanel?

I got a very ackward problem with JPanel. Please check the code below:
import javax.swing.JPanel;
public BasePanel extends JPanel{
    public BasePanel(){
       super();
public class bb extends javax.swing.JDialog {
    public bb(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    private void initComponents() {
        final BasePanel basePanel1 = new BasePanel();
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        basePanel1.setBackground(java.awt.Color.white);
        basePanel1.setBorder(new javax.swing.border.EtchedBorder());
        getContentPane().add(basePanel1, java.awt.BorderLayout.CENTER);
        pack();
    public static void main(String args[]) {
        new bb(null, true).setVisible(true);
}Even though I set the back colour of the panel WHITE, it does not turn into white when the dialog becomes visible. However, if I use JPanel instead of BasePanel while creating panel object, everything works fine. Is this a bug? I compiled and run the code above with both jvm version 1.4.02 and 1.5 beta 2, but the result is same.

sure I did. I left it the class keyword out unintentionally. Furthermore, why shall I setVisible(true) of the BasePanel before packing it? It hasn't been done so in JPanel source code.

Similar Messages

  • 30EA3: German language bug with user defined reports still not fixed

    In 30EA2: Limited folder functionality with German language
    I wrote about a bug in 30EA2. Was this message noticed by the developers?
    The bug still exists in 30EA3.
    In new folders for user definded reports only the options "Kopieren" and "Exportieren" (copy and export) are available, when SQL-Deverloper runs in German language mode.
    A workaround is to force language to English with the line
    AddVMOption -Duser.language=en
    in sqldeveloper.conf

    I made a new thread for the same bug in 3.1EA2:
    3.1EA2 Old bug with German language settings still exists
    I have some hope, that my problem finally got noticed by the developers.

  • 3.1EA2 Old bug with German language settings still exists

    In the past I wrote several times about a bug in SQL Developer when running in German language mode. This bug is still not fixed in 3.1 EA2:
    In new folders for user definded reports only the options "Kopieren" and "Speichern unter ..." ('Copy' and 'Cave as') are available, when SQL-Deverloper runs in German language mode. Other options like "Bearbeiten, Neuer Ordner, Neuer Bericht, Ausschneiden, Einfügen, Löschen" (Edit, New Folder, New Report, Cut, Paste, Delete) are missing. A workaround is to force language to English with the line
    AddVMOption -Duser.language=en
    in sqldeveloper.conf
    I mentioned it first in Re: Folders with limited functionality about version 2.1.1.64 and then in 30EA2: Limited folder functionality with German language 3.0 EA2 and German language bug with user defined reports still not fixed Beta Release 3.0 EA3
    Edited by: user1775992 on 22.11.2011 03:30

    I have raised a bug on this issue and I am actively looking into it.

  • Problem with Jpanel repaintingl

    Hi!
    I have a problem with Jpanel.
    First , I add a Jscrollpane to the panel and I don't
    see it.
    Second, I have a paint method in the Jpanel and I do there some painting but when I exe the application I can see the panel painting only when I put the mouse cursor
    on the place where the panel need to be.
    It is very strange.
    Help me.
    Yair.

    Example code??
    Can't tell what's wrong otherwise.
    First , I add a Jscrollpane to the panel and I don't
    see it.Have you added anything to this JScrollPane? Unless you set the scroll bar policies to always on you won't see anything if you haven't added anything to the scrollpane.
    Also, if you're only adding this scrollPane to your JPanel initilise it with
    JPanel whippet = new JPanel(new BorderLayout())
    .. then when you add your scrollPanel to your JPanel do this to make sure its added slap in the in middle of it:
    whippet.add(yourScrollPanel, BorderLayout.CENTER);
    Bit more info please - duuuuuuuuuuuuuuuude (man, "Finding Nemo" was well funny didn't you think.. anyways, that's besides the point.... could just be my 8 year old mental age though.. who knows.)?

  • Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...

    Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...  When I search for a file, A) it asks me if it's a name, or it wont produce anything, and B), its slower than in prior OS versions and in some instances I have to toggle to a different directory and go back to my original directory in the search: menu bar or the search wont produce anything...  Very buggy. 

    It appears to me that network file access is buggy in Maverick.
    In my case I have a USB Drive attached to airport extreme (new model) and when I open folders on that drive they all appear empty. If I right click and I select get info after a few minutes! I get a list of the content.
    It makes impossible navigate a directory tree.
    File access has been trashed in Maverick.
    They have improved (read broken) Finder. I need to manage a way to downgrade to Lion again.

  • I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    Unfortunately, Safari cannot be updated past 5.1.10 on a Mac running v10.6.8.
    So, the options are to upgrade to a newer OS X or use Firefox or  Chrome.
    Be aware, Apple no longer support Snow Leopard v10.6 >  www.ibtimes.com/apple-kills-snow-leopard-os-x-106-no-longer-receives-security-u pdates-1558393
    See if your Mac can run v10.9 Mavericks >  OS X Mavericks: System Requirements
    If so, you can download and install Mavericks for free from the App Store.
    Read prior to upgrading >   Upgrading to 10.7 and above, don't forget Rosetta! | Apple Support Communities

  • ICal bug with month view

    I primarily use week view on iCal, but sometimes i switch to month view for a larger perspective. Often, i use month view to check for any leftover events from the previous month in case i forgot to delete one or two.
    I just found a bug concerning this. If i click on "month" today, it'll take me to the month view for june 2011, and from there i can navigate forwards or backwards. However, may 2011 seems to have a bug. If i click on < from june, it does nothing; if i click again, it takes me to april 2011. Similarly, if i click on > from april it does nothing and if i click again it takes me to june.
    It doesn't end there. The june/may thing happens only when the selected day (the one shaded light grey on the month and week views and bright blue on the little month tab on the left) is after 04 june. If a day from the first week of june (i have my weeks start on sunday) is selected, the < button does take me to may, but several events which i deleted a long time ago are showing up.
    Now, i have an event set for today (04 june). Since the first four days of june are in the same week as the last three of may, the month view for may shows these four days, as any normal calendar app would.
    If i use the month tab to the left to navigate, i can access may 2011 by selecting any day on that month. However, iCal's behaviour depends on which day was selected previously. If the previous day was in april 2011 or earlier, iCal will show the month of may completely empty, which is great because i have no leftover appointments from may; however, the box for 04 june is also empty, which it shouldn't be. If the previous day was in june 2011, it'll show may with a repeating event on every sunday except the first, which is completely absurd, since i have deleted this event (and why isn't it showing on the first sunday in may?); the box for 04 june, however, will correctly show the event i have set for this day. If the previous day was in july 2011 or later, it'll show may with the repeating event on all sundays (including the first one) and it won't show anything on the box for 04 june.
    Obviously, there is a bug with may 2011.
    In case it helps, i do have a repeating event set to all sundays until the end of existence, but i have deleted all the entries from may and previously, since they have obviously already happened. Also, i had many other repeating events set to happen on different weekdays; these are to repeat themselves weekly until about halfway through june, and they started on april or may (can't remember right now). Like the sunday one, i have deleted all the entries from may because they have already taken place. Strangely (and thankfully), none of these appear when i visit may from june or later, as does the sunday event.
    Any help would be greatly appreciated. Or am i forever stuck with week view, which has so far proven to be bug-free?
    (I did a search on Google and another on the Apple forums for this issue but could find nothing, so i decided to ask the question myself. I apologise if somebody has already asked this question and i just couldn't find it.)

    Greetings,
    I have a vague recollection of someone else with this issue but haven't experienced it myself nor encountered it recently.
    Troubleshooting:
    1.) First make an iCal backup: http://support.apple.com/kb/HT2966.
    2.) Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical and / or "ical"
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    __NOTE: Removing these files will remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Once the computer is back up and running open iCal and test.
    Hope that helps!

  • Is this a bug with BoEdge3.1?

    Can anyone help me on the issue which my customer is facing for BoEdge3.1
    Concerning  Error Message: You do not have enough Named User Licenses to make this user a named user. You have 55 Named User Licenses. (FWB 00013)
    This is the error message she was receiving when trying to change an
    existing user from Concurrent to Named under the Connection Type on the
    Properties panel.
    The current workaround was to delete the existing Concurrent user, then re-add the same user as Named.
    She have been going through this process of deleting existing users, and then
    re-adding them as Named and it was working okay. Then, it stopped
    working and she started getting the same FWB 00013 error message again.
    She was not able to create any Named users now. Basically, the workaround
    worked for a while - then stopped working.
    She currently has a total of 88 users. 21 of them are named. 67 of them
    are Concurrent. She is licensed for 55 Named.
    Once again, the system thinks she has 55 users marked as Named. But
    there are only 21 marked as Named.
    She did notice that as she was going through all of her existing list of
    users, in alphabetical order, she was opening the Properties tab and
    checking the Named/Concurrent status - as she got to the 55th user in the
    list that is when she started getting the error message again.
    Is this a bug with BoEdge3.1?
    And I got an ADAPT01194692.
    I am not sure that Is the ADAPT related to this issue.
    Please help me its very critical.

    Hi Salena,
    If you are an SAP Employee, request you to post this question at
    https://cw.sdn.sap.com/community/bobjtc
    Cheers,
    Subhodeep

  • BlueTooth bug with car

    Since the 4.3 update there's a big bug with the bluetooth connection with the car system - it still exists after a factory reset:
    I paired the phone and the car. But every time they connect, I get a message box if I want to grant access to my phone's messages. Even the "Allow always" option does not work and I get asked every time. Very annoying!!

    Hello, I'm having the same issue after updating my Xperia SP to Android 4.3 (12.1.A.0.266). In my car (Mercedes Benz A-Class from 2013) there is a radio called "Audio 20 CD" built in. Every time when I want to get into my car, my smartphone wants a connection request for my messages (SMS).The option "Always Allow" does not work. The phone does not remember the next time. I tried several times a new pairing of phone and car radio and I cleared the cache of the bluetooth-share app and smart connect app, but this didn't solve the problem.  Is there a fix available? With kind regardsThorsten

  • Am i the only one that see's serious bugs with Windows Search index on Windows 8.1 and Office 2013?

    So i originally had Windows 8 and Office 2013 installed. I noticed that alot of my emails in Outlook 2013 as well as contacts werent being indexed. I waited for windows 8.1 and did an upgrade hoping the 8.1 would fix the issue. It didn't.
    So i formatted my hard drive, installed fresh windows 8.1, and office 2013, and let it Windows Index run. I see 2 things happening.
    A.) The indexer never completes
    B.) the indexer takes up 40% cpu usage.
    I tried rebuilding, creating index from new location, nothing seemed to work. I decided to prevent the indexer from searching Office apps (outlook and onenote) and low and behold it completes indexing. 
    I decided to try and format again and see if there was some bug causing the issue. So this week I formatted once agian, loaded Windows 8.1, installed updates, and loaded office 2013. Once again, my indexer
    is stuck around 70k items and my processor usage on Searchindexer.exe is around 30-40%.
    Is this a known bug with 8.1 and office?
    Brad Nelson MCSE/DCSE/A+/Network+/WCSP

    Hi,
    I test in my environment, and Windows would finish the index, the CPU usage keeps in 29%, which my RAM is 8G.
    Can you tell us how you let the Windows Index run?
    Alex Zhao
    TechNet Community Support

  • Has anyone else noticed this bug with multitasking gestures on iOS 5?

    I recently updated my iPad 2 to iOS 5 and have just noticed this bug with multitasking gestures. 
    If you're currently in an app and use the four-finger swipe up to open the app switcher, and then subsequently close another app that's open in the background from the switcher, the app doesn't seem to fully close.  What I mean is that if you now use the four-finger swipe right/left to switch apps, when you get to the place where that app you closed was, it's still open, and after you view it, it pops back into the app switcher.  It seems like the multitasking gestures feature isn't recognizing that you've closed the app and that it should skip it from now on. 
    If you do the above steps again, but this time after you close the app from the switcher, use the five-finger pinch to go back to the home screen, it seems to clear the "cache" being used by the the gestures feature.  Now if you go back into any app and swipe left to right, the closed app won't load up anymore (which is how it should correctly work). 
    Has anyone else noticed this, or can anyone else reproduce the bug as I described?  I'd appreciate it if an Apple employee could confirm that this is a bug in iOS 5 and not just something wrong on my end.  Thanks in advance. 

    02-May-200702:03 PM
    scoobyman wrote:
    Hi keffa
    After the time spent and attention to detail in replicating this fault, I do think that you should email your findings to Nokia Care to be found on:
    http://www.nokia.co.uk/A4222231
    This is after all a discussion forum and others may find the same bug, but until it is logged at Nokia there is little chance of future modification if required!
    Done already. They may of course have corrected this in the 11.x firmware currently being rolled out but as I don't yet have access to it I can't say.
    Useful links: Phone firmware update | Nokia support site

  • Has anyone seen this BUG with Time Warp and Dissolve?

    I'm doing some real basic slow-mo clips, transitioning with various dissolve wipes. I've come across a problem that is extreemly frustrating! I'm wondering if anyone has insight on a fix or if Adobe does service packs or fixes that I might be able to install.
    If you put two clips adjacent to each other on a timeline, apply time warp, set percentage to say 30% of realtime, then apply a dissolve between the clips, clip B, the outclip will play in reverse for a period equal to about 1/3 of the duration of the clip.
    This is true scrubbing through the timeline and even rendering.
    VERY ANNOYING!
    I'm going to call support tomorrow, but that's not going to help me get my project finished any sooner since this is a critical element in this composition. I've tried the time remapping method, but the frame-blend is no match for the pixel motion of time warp.

    Steve,
    I think your post #11 was being sarcastic, but you left a little wiggle room for it not to be. With the sarcastic interpretation, I must add my thoughts:
    Here is the link to the Adobe bug report form
    . It is important that users who discover bugs with reproducible steps file them - otherwise they don't stand a chance of ever getting fixed. Steven Gotz's advice was sound in this regard.
    As to the discussion of workarounds - since this is a User-to-User forum, the best that we as a community can do is help each other out with workarounds, since none of us here have the power to actually fix anything.
    The important thing to glean from SG's post is the definite need to file a bug report.

  • Blocking bug with 10.8.3+Adobe Lightroom+Canon iPF5000 (but workaround found)

    Hi all,
    since I have updated my MacBook Pro (early 2011 model) with 10.8.3, I have a blocking bug with Adobe Lightroom (either 4.3 or 4.4) for launching prints on my Canon iPF5000 (firmware 1.33, either MacOS driver 2.67 or 3.06, connection through USB).
    When I was under 10.8.2 with the Canon's driver 3.06, everything works fine.
    Basically, after clicking Print a Copy or Print... in Lightroom, the file spooled to the driver stays in MacOS printer queue. Within the printer queue window, the printer is in pause mode, and each time I try to resume the printing processing, the driver put it on hold immediately. When I look into the history on the Console, the driver complains about an unknown error... The data stay within the driver, as my Canon iPF5000 "Data" led indicator stays unlit.
    My print settings are 600dpi or 300dpi, print sharpening Standard/Glossy, 16 bit output. And Color managed by printer (because I let the Canon driver managing my B&W prints).
    Strangely enough, when I launch a print from Preview application, the drivers does its job and sends it successfully to my Canon iPF5000...
    As this was driving me crazy, I have tried a clean install of MacOS 10.8.3 (as 10.8.2 is no more available from Apple servers...). No success, same blocking issue.
    Eventually, I've found the workaround: using the imagePROGRAF Advanced Preview. You have to click on "Print..." in Lightroom in order to see the driver settings window, and then check the "Preview before printing" option in the main tab of the driver settings. Then I can preview my Lightroom printing work and then launch successfully my printing.
    Simple workaround, but very strange bug...
    For me, the root cause could be multiple and not very obvious.
    Is it Mac OS 10.8.3 ? But why can I make prints from Preview application for instance, and not from LR ?
    Is it the Canon driver ? But this lead me to the same question.
    Is it Lightroom ? Does it send corrupted data that make the driver crazy but not the imagePROGRAF Advanced Preview ?
    So, if any user of Canon iPF5000 + Mac OS 10.8 + Lightroom is around, please share your experience.
    And if any Apple, Adobe or Canon engineer read this, please try to fix this.
    Happy printing,
    Amaury

    It's different how applications write print data. If you use Advanced Preview from the driver then it calculates already the output which afterwards is only sent to the printer.
    Have you once tried to print with fast graphic process switched off (option of advanced settings)?
    Hope it helps
    Renate

  • BUG with Memory CAS-Latency with MSI i848P Neo-LS BIOS

    I have a bug with MSI i848P Neo-LS BIOS. I try many MSI i848P with same trouble : the CAS Latency is always set to 2.0 even if the memory is CAS Latency 2.5.
    It doesn't depend on PSU or others things (graphics card,...).
    Try with Pentium 4C 2.6 or 2.8
    But I have just one brand of memory (but many different sticks). Chips reference are VT56DD32M8PC-5 (256 or 512 Mb). This memory are reference as Cas Latency 2.5
    If I set memory timings on SPD or manual : same result !!!
    If I set memory speed on AUTO or 400 MHz : same result  !!!
    If I set other timings, then they are save correctly (ie : RAS# precharge set to 3 or 4).
    I check timings with latest version of Memtest86+ V1.0 : http://www.memtest.org/
    and of course, I get many errors.
    The same memory tested on others mobo, give good results.
    I try Windows XP installation and I get....  blue screens.
    With some memory sticks : I have this message "memory timing too tighly",
    if I press F1 to continue: then I get a memory cas latency of 2.5 with memtest86+ and then no error.
    I try BIOS revision 1.0 (default) and 1.2: same result !!!
    So, as I said before, I think this is a bug with the BIOS. I agree that a BIOS cannot detect correctly all kind of memory, but if you set memory timings manualy, then it must be set as you want ! ?
    Any idea...
    Thanks

    H0 Alex,
    You are correct.I have the same problem with my 875p neo lsr on bios 1.9. TH0S 0S B0OS BUG.but everyone says your psu is not enough or your rams isnt  on the MSI Memory Compatability List.
    why all of rams I try give same result?
    MS0 boards works only with 10 or 20 ram.you don't say customer why you use this rams?
    why in asus boards many os these rams working properly.This rams isnt on the MSI Memory Compatability List.but working.I try many no name rams and results are very good in all of the tests.
    In my opinion MS0 bioses doesnt work good enough.
    You don't drive a car.Car Drives you.

  • Possible bug with Triggers tab

    Hi there,
    I'm using 1.0.0.12.15 and think there is a bug with the triggers tab. When I navigate to my table (which has one trigger on it), and then click on the Triggers tab, the trigger shows up multiple times. It's probably not a coincidence that it shows up the same number of times that there are columns :)
    Looks like a missing join condition somewhere.
    Hope this helps

    Tracked this one down too...
    SQL Developer is getting the triggers like this:
    Select dt.trigger_NAME, dt.trigger_type, dt.triggering_Event, dt.status, do.object_id , do.owner sdev_link_owner, dt.trigger_NAME sdev_link_name,'TRIGGER' sdev_link_type
    from all_triggers dt, all_objects do
    where do.owner = :OBJECT_OWNER
    and dt.owner = :OBJECT_OWNER
    and dt.trigger_name = do.object_name
    and dt.table_name = :OBJECT_NAME
    However, we got other objects (mainly tables) with the same name as the trigger. Not specifying the object type will identify them the same way as the trigger, resulting them all to be included in the select!
    Adding "and do.object_type = 'TRIGGER'" will solve the problem.
    K.

Maybe you are looking for

  • I can't find any error in my vi but it just doesn't work please help

    I'm trying to control a robot named cs-113 and I find someone has already achieved this. He wrote a vi called robot cs-113.vi and I just tried to write a same one but it just doesn't work. Can anyone tell me why it doesn't work? Thanks for your help!

  • Display column values as zeros

    I am having three select queries with union below: select col1, col2 from table1 where condition; -> fetches 1 record union select col1, col2 from table2 where condition; -> fetches no row union select col1, col2 from table3 where condition; -> fetch

  • IPhone Detected But Not Identified?

    I hooked up my iPhone to my base that goes into my cpu and I got this message: "An iPhones was detected, but could not be identified properly. Please disconnect and reconnect the iPhone and try again." I havent had any problems like this before. Will

  • Exporting IPhoto Albums via Automator

    I would like to export all my iPhoto Albums to an external drive. Since I have my photos already organized in Albums in iPhoto, I would like to keep the same structure in the form of folders/directories on the target drive. But have it in a flat fold

  • Options 43/60 on multiple AP's

    I am slightly confused about DHCP Option 43/60 with multiple AP's if they are going to the same WLC.  Our current setup is for AP's to get an Option 43 that directs them to a singular staging controller.  From the staging controller, they are configu