Problem with Icons

Hi!
I'm trying to make a chess game, and I'm having the following problem.
I have a JLayeredPane that contains a JPanel with other 64 JPanels inside. The pieces are JLabels with Icons.
The problem is that when I begin a new game, the chessboard appears empty, with no pieces whatsoever, even though those labels are in place.
If I try to resize just for a bit the main frame, the pieces appear on their positions just like they should in the first place.
I've tried everything, but they just refuse to appear until I resize the frame (I should add that the chessboard is big enough for the icons to fit, so it is not this .... ).
Can anyone help?

So here goes:
I have an intro frame that has a new game button. When the Button is pressed, I create the main frame, I put in the JlayeredPane and all the other panels and pop up a JDialog message, in which I request certain info. This dialog has an OK button, which should add the labels (with the icons) to the panels on the chessboard.
I don't think the layout creates this problem, because I've seen it working with exactly the same stucture. The only difference I could see was the dialog box. So I'm guessing this dialog is creating the problem.
PS: I don't have the code here, I'll get back with that later on.....

Similar Messages

  • Problem with icons in the application bar (Photoshop CS4)

    My computer's OS is WinXP Pro SP3.
    I just now noticed a problem with all icons in the application bar in PS CS4 (v. 11.0.1).
    When I bring mouse over icons (except for zoom level icon), all icons turn into blank (white) boxes.
    For "Arrange Documents" bar, when I click on its blank icon, the top two columns are empty but show the the rest of three columns.
    Please advise me how to fix this problem.  I hope to avoid uninstalling -reinstallinlg.  Thanks.

    ATI no longer supports your card so I don't think you will see any updated drivers from them to correct your problem. You might want to look into investing in a newer card.
    http://support.amd.com/us/gpudownload/windows/Legacy/Pages/radeonaiw_xp.aspx?type=2.4.1&pr oduct=2.4.1.3.23&lang=English

  • Problem with Icon in JCheckBox

    I have a problem with a JCheckBox, when I assign an Icon to it, the checkBox dissapears and the only thing I see is the Icon. Is there a way to have the CheckBox and the Icon?
    Thanks
    Alejandro

    class MyCheckBox extends JPanel {
      JCheckBox jcb = new JCheckBox();
      JLabel jl;
      public MyCheckBox(String s, Icon i) {
        add(jcb);
        jl = new JLabel(s,i, JLabel.LEFT);
        add(jl);
      public boolean isSelected() { return jcb.isSelected(); }
      public void setSelected(boolean b) { jcb.setSelected(b); }
      public String getText() { return jl.getText(); }
      public void setText(String s) { jl.setText(s); }
      public Icon getIcon() { return jl.getIcon(); }
      public void setIcon(Icon i) { jl.setIcon(i); }
    }

  • ATI Radeon 4870 Graphic Card - Minor Problems with Icon View

    I have a MacPro 2,1 (early 2007)... Recently upgrade graphic card from ATI Radeon X1900 to ATI Radeon 4870... Works fine, except when viewing files in "icon view"... The icons are "fuzzy-like" some pixels are missing... This is seen in any size icon... small or large... or views no problem... cover view, list view, or column view...Does anyone have a working solution for this problem in icon view... Thanks

    If ATi didn't specify the card you bought is designed for your Mac, then it's strictly the PC version and is incompatible with OS X. It may work correctly in Bootcamp for Windows, but not for OS X.
    Your best option would be to return the 4350 and purchase a "designed for Mac" video card by ATi or nVidia cards offered on the Apple online store.

  • Problems with Icons

    Im very new to javax.Swing, and even new to java itself. I have an assignment to do basic Rational Number functions using Javax.Swing, and i wanted to spice my program up a bit by using my own icon. Here is my code, I know i am very very close to having it correct, but i cant figure it out. I only have the Main Method posted becuase the others are irrelevant to this problem.
    I want the image "subzero" to be displayed as the icon for the "strNbr1" dialog box:
    import javax.swing.*;
    public class rationalNumSean
         public static void main (String args[])
         ImageIcon subzero = new ImageIcon("c:/sub-zerob.GIF");
         String strNbr1=JOptionPane.showInputDialog(null,"Enter Numerator",null,JOptionPane.INFORMATION_MESSAGE,subzero);
    String strNbr2=JOptionPane.showInputDialog("Enter Denominator");          
              int x =Integer.parseInt(strNbr1);
              int y =Integer.parseInt(strNbr2);
              Rational r = new Rational(x,y);
              JOptionPane.showMessageDialog(null,r.getRational() + " equals " + r.getDecimal() + ",\nhas a GCF of "+ r.getGCF()+ " and reduces to "+ r.getReduce());
              System.exit(0);
    }

    Hi,
    so forgot my previous post. I try your code and it seems to be working except two things:
    1. JOptionPane.showInputDialog(null,"Enter Numerator",null,JOptionPane.INFORMATION_MESSAGE,subzero);This static method doesn't exist, try it replace with:
    JOptionPane.showInputDialog(null,"Enter Numerator",null,JOptionPane.INFORMATION_MESSAGE,subzero, null, null);2. This method returns Object, so you need to do this:
    String strNbr1=(String)JOptionPane.showInputDialog(null,"Enter Numerator",null,JOptionPane.INFORMATION_MESSAGE,subzero, null, null);So if you replace this one line, it should work.
    L.P.

  • Problem with icons running Form

    Hi to all,
    Because IE crash using Jinitiator, I have configured my formsweb.cfg in order to use jre instead of Jinitiator.
    This is the section in formsweb:
    baseHTMLjinitiator=basejpi.htm
    jpi_download_page=http://www.oracle.com/technetwork/java/javase/downloads/index.html
    # Generic to any version of JRE 1.6.0.
    jpi_classid=clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA
    # Generic to JRE 1.6.0
    jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0
    # Generic to JRE 1.6.0
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0
    pageTitle=Eclipse Web
    envFile=C:/oracle/FRHome10/forms/webutil/server/webutil.env
    webUtilArchive=/forms/webutil/jacob.jar,/forms/webutil/webutil.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    archive_jini=frmall_jinit.jar,myicons.jar,cursorpos.jar,newicons.jar
    imagebase=codebase
    archive=frmall.jar
    lookAndFeel=oracle
    colorScheme=blue
    separateFrame=true
    splashScreen=true
    form=mymenu.fmxWhen I run http://oracle-dev10g:7778/forms/frmservlet?config=jre_sun, the application mymenu.fmx is correctly opened, but without the icons stored in the files myicons.jar, newicons.jar etc. (Are menu icons, applications icons, report icons)
    Note that normally with Jinitiator the same configuration (modified for jinitiator) work fine without problems.
    Can You help me ?
    Thank You and Best regards
    Gaetano

    archive_jini=frmall_jinit.jar,myicons.jar,cursorpos.jar,newicons.jarWhen you use the Sun Plug-in instead of the JInitiator, the archive_jini tag is not used. the archive tag is used instead, so add your icons.jar to the archive tag.
    archive=frmall.jar,myicons.jar,cursorpos.jar,newicons.jarFrancois

  • Problem with icons not showing up using stacks.

    In my dock, I have a folder that contains movies and when I click it, it opens using the 'fan' effect in Stacks.
    The movies are .avi. My only problem is certain icons do not appear. They remain a simple QuickTime Logo on a white looking film strip.
    Below is a picture describing what it looks like.
    http://img523.imageshack.us/img523/7027/picture1nhx.png
    As far as I know as of yesterday, they were all displaying their respectable icons. Now they are not.
    Can anyone offer me some advice on how to get them to display their proper images again?
    Thanks in advance.
    Dran.

    Sounds like a hosed LaunchServices database. Launch the Terminal app in /Applications/Utilities/, copy this one-line command into the window that pops up, hit the return key, quit the Terminal app, and restart:
    */System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user*

  • Problem with icons apple store

    Hello everyone;
    I have a small problem that does not sway me at all, but wanted to know why this problem. Some days ago I had the problem of Invalid Address on my account, which simply hit the Continue button and got my menu icons this way.
    Would like to change?
    Follow the link to image.: http://imageshack.us/f/508/img0625.png/
    Wait.

    How long is 'just'?  If it is 14 days or less, return the MBP for a full refund.  If not, do not leave the store until you can start it up satisfactorily at the genius bar.
    Ciao.

  • Problem with icon place

    hello,
    is it only me?
    i spend 20 minutes rearranging the icons according to my taste, under iTunes
    and after sync, i see on the iPod that the icons were randomly placed...
    and then i unchecked some apps and then sync'd...
    but all the 148 apps were still there on the iPod...
    so i guess it's serveral bugs....
    i have the latest iTunes and the news 3rd 32g iTouch

    Already i suggested you buddy if you really want to work with GridbagLayout, you have to do practice on this because what ever you are asking for that is not big task if you will do it.
    first of all going through all basics and try to understand all GridBagConstraints.
    I hope you will be able to do your own. All the best.

  • Problem with icon preview in finder

    Lately I have noticed the odd picture would not display in preview in finder.  But today all of the jpg, pngs, and gifs in finder wont display, all I am getting is the default system image. Now I have show preview ticked in view options. I have deleted the finder plist file as suggested on a search for the problem online. But I am still having the problem. 
    The only images that show up as previews are the ones that have been created or edited through photoshop.  But as I have thousands of pictures on my HD i cant run them all through photoshop.
    Can anyone help or point me to a thread with a similar problem?  Thanks in advance for any sugestions.
    Oh I run Snow Leopard 10.6.8 on an intel imac

    Download and run all of the free OnyX checks, maintenance and then cleaning and reboot at the end.
    (Just one thing, don't delete the log files)
    http://www.titanium.free.fr/
    Also if any of the initial drive checks gives a error, report back and backup your files off the computer (Not TimeMachine) and disconnect.
    This will flush your system and let things rebuild, test things etc., nothing gets deleted but you should backup your files off the machine regardless.

  • Problems with icon object

    Hi! I hope someone can help me with the icons object.
    When I use the following code (document level) in a PDF file  I created (with Acrobat 8)
    app.alert (this.icons.length)
    try {
    app.alert (this.icons[0].name)
    catch(e)
    for (var i in e)
    app.alert(i +":"+e[i])
    I get 8 for the length and the error message
    this.icons[0] has no properties
    This happens for this.icons[1].name, ..... this.icons[7].name
    Although there should be eigth icons I can't get any name.
    Furthermore if I use app.alert(this.icons) I get  the following string ",,,,,,,". There is a simple way to remove this corrupted (I think) object?
    Sorry for my bad english
    Thank you, linopasc

    Just yesterday I used importIcon() to add some icons to a new created file and I used these icons to set the icon associated with  buttons (buttonSetIcon).  All  was correctly working. But this morning the script does not work. In place of the two first icons there are two commas (???).

  • Problems with Icons flashing after Maverick Install

    Just installed Mavericks--now my icons flash randomly and repeatedly as if the desktop keeps reloading.  Imessage (AIM) crashed today as well.  Anyone else having this issue or could suggest a fix?  I have applecare and I will call them if needed but if it's something simple like deleting a plist, I would rather avoid a prolonged phone call.  I did run disk utlity and fixed the permissions, don't see anything unusual running on the activity monitor (though I'm not so familiar with what should be).  Thanks in advance for your help!

    Do you have Google Drive installed? Other users have reported the same behavior and found that uninstalling Google Drive resolves it. Presumably they are working on a fix.
    Other users have found that disabling App Nap for Google Drive resolves it. Do this by selecting the Google Drive application in a Finder window, and Get Info for it (File menu > Get Info.) Next under General make sure the Prevent App Nap checkbox is checked.
    Best of luck.

  • Problem with Icon in App Store Browse Screen

    Hi folks,
    My app just got approved and I can search for and install it fine.  However, when I browse for it on the App Store, I get a black box where my logo should be:
    <image not shown but it's self-explanatory>
    Now it's possible that this is because my logo is black on transparent, but other boxes here show other colors (like white, light blue, etc.)  How do I set that so my icon shows up?  Also, do I need to go through another approval process to make
    this change? 
    The icon looks correct in the search screen, so this is a bit irritating.
    Bill

    Hi Bill,
    I would suggest you resubmit the app again, and make notes to the testers that you are only updating the app icon. If the issue persists, go ahead and open
    support ticket so this can be looked into further.
    Thanks,
    Jonathan
    Windows and Windows Phone Dev Center Support
    Office Store Developer Support
    Send us your feedback about the Windows Platform

  • Problems with icons in System Pref

    Look at my system pref.
    http://www.stickyspy.com/misc/controlp.jpg
    The "Energy" icon has somehow changed. How do I can back the original icon?
    Please help.

    Spy,
    Quit System Preferences if it's running and trash the following file:
    Macintosh HD/Users/yourusername/Library/Caches/com.apple.preferencepanes.cache
    Then launch System Preferences and hopefully the Energy Icon will return to normal appearance.
    ;~)

  • Problem with Icon not going to another site

    In Macworld, I went to iTunes preview and clicked on Video Downloader for Lite Super - VDownload, view in iTunes but then when I click on the icon it takes me to my Top Sites on my computer, any idea why and how to stop it so it goes to the site I want?  This also happens on other sites.
    Ta

    HI,
    HERE U R TRYING TO PREPARE A BDC TABLE , BUT U R NOT SPECIFYING
    HW MANY TIMES U HAVE TO CONTINUE.
    U TRY IT BY PLACING 
    ALL PERFORM STATEMENTS INSIDE LOOP AT I_AUTH
    I THINK IT WILL WORK.
    AND U END THE LLOOP AFTER CALL TRANSACTION
    AND

Maybe you are looking for

  • A problem with inserting into DB hebrew strings

    Hi, I am working with a 8.1.7 DB version, and use thin driver. I have my DB Charest configured to iso 8859P8 (which is visual Hebrew) I have no problem in making a connection and retrieving strings, using SELECT * FROM .. and then use the ResultSet.g

  • I can't login facebook

    I can't login facebook, everytime i log in ... always appears notification "sign in error, could not communicated with the server" please help me to solve the problem

  • Need Help with Custon Tones

    Yo, so I know how to set custom ringtones for different contacts and i know all about checking the exceptions box but i cant get the phone to stop vibrating before someone with a custom ringtone calls. I just need to know if there's a way to remove t

  • Long running 'defragment' process?

    I've got a 'defragment' process that's been running since 8:55am (it's now 11:39am). I can't seem to find any docs on what defragment is, other than mentions of it in relationship to MTA channels. last pid: 18923; load averages: 1.22, 1.23, 1.25 11:3

  • Why can't I open my itunes store?

    Whenever i try to open my itunes store all it says in accessing itunes store, but it never comes up. Plus, I can't sign in.