Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: JTextBox not showing?

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default JTextBox not showing?

    Hi, I have a simple program with a an image, jtextbox, and a jlabel... For some reason the image and label show fine, but despite doing what some people said would work (As you might see... ) the textbox only works some of the time (And when i resize the frame.) Also, I would like the cursor to automatically be in the textbox (with requestFocus()) but that isnt working either...
    Here is the code. I highlighted the first working section and the nonworking section
     
     
       import javax.swing.*;
       import java.awt.*;
       import java.awt.event.*;
       import java.awt.image.*;
       import java.net.*;
       import java.util.*;
       import java.io.*;
       public class OurPanel extends JPanel
       {
          public static BufferedImage myImage;
          public static Graphics g;
          public static int amount = 1;
          public static boolean assist = false;
          public static double time = 2;
          public static JLabel label;
          public static boolean done = false;
          public static boolean ok = false;
          public OurPanel() throws Exception
          {
             myImage = new BufferedImage(500, 500, BufferedImage.TYPE_INT_RGB);
             g = myImage.getGraphics();
             label = new JLabel("");
             label.setFont(new Font("Serif",0,50));
             add(label);
          }
          public void start() throws Exception
          {
             String[] array= new String[576];
             Scanner in = new Scanner(new File("a.txt"));																																																																													                                                                                                                     
             ArrayList<Pair> joe = new ArrayList<Pair>();
             int r = 0;
             while(in.hasNextLine())
             {
                if(r>575)
                   break;
                String current = in.nextLine();
                current=current.trim();
                String[] joesephus = current.split("!");
                r++;
                int a = 0;
                a = 0;
                array[r-1]=current;
                if(current.equals("null"))
                   continue;
                if(current.length()>3)
                   joe.add(new Pair(joesephus[0].substring(0,2),joesephus[0].substring(3,joesephus[0].length()), joesephus.length>1?joesephus[1]:null));
     
             }
             while(true)
             {
     
                ArrayList<Pair> out = new ArrayList<Pair>();
                for(int i = 0;i<amount;i++)
                {
                   out.add(joe.get((int)(Math.random()*joe.size())));
                   System.out.println(out.get(out.size()-1));
                   if(out.get(out.size()-1).pair==null||out.get(out.size()-1).pair.equals("")||!(new File("Images//" + out.get(out.size()-1).pair + ".jpg").exists()))
                   {
                      i--;
                      out.remove(out.size()-1);
                   }
                }
                String answer ="";
                for(int i = 0;i<amount;i++)
                {
                   done=false;
                   boolean l = false;
        [B]           if(out.get(i).url!=null&&out.get(i).url.trim()!="")
                   {
                      JLabel s;
                      File stevehensing = new File("Images//" + out.get(i).pair + ".jpg");
                      if(stevehensing.exists())
                      {				ok = false;
                         java.awt.Image image = javax.imageio.ImageIO.read(stevehensing);
                         s = new JLabel(new ImageIcon(image));
                         add(s); 
                         label.setText(out.get(i).word + (assist?" (" + out.get(i).pair.trim() + ")" :""));
                   }[/B]
                }
                setRequestFocusEnabled(true);
                answer=answer.toLowerCase();
                Scanner input = new Scanner(System.in);
                removeAll();
      [B]          final    JTextField box = new JTextField("", 10);
                box.validate();
                box.setVisible(true);
                add(box);
             [/B]
             [B]
                Thread t = null;
                t = new Thread(
                      new Runnable() {
                         private int a;
                         private boolean yes = false;
     
                         public void run() {
                            while (true) {
                               box.setVisible(!box.isVisible()||yes);
     
                               try {
                                  if(a>1)
                                     yes=true;
                                  Thread.sleep(100);
                                  a++;
                               } 
                                  catch (InterruptedException e) { /* Handle exception */ }
                            }
                         }
                      });
                box.setVisible(true);
     
                t.start();
                box.addKeyListener(
                      new KeyAdapter() {  
                         public void keyPressed(KeyEvent e) {  
                            System.out.println("TESTES" + KeyEvent.getKeyText(e.getKeyChar()));
     
                            if (e.getKeyChar() == KeyEvent.VK_ENTER) {  
                               done=true;  
                            }  
                         }  
                      });  
     
     
     
                label.setText("");
     
                add(label);
                repaint();
                setVisible(true);
                box.requestFocus();
     
                while(!done)
                {
     
                }
             [/B]
     
                if(box.getText().toLowerCase().equals(answer))
                   label.setText("Correct!");
                else
                   label.setText("Incorrect, it is " + answer.toUpperCase());
                remove(box);
                Thread.sleep(2000);
             }
     
          }
     
          private class Listener implements ActionListener
          {
             public void actionPerformed(ActionEvent e)
             {
                done=true;
             }
          }
          private class Listener2 implements ActionListener
          {
             public void actionPerformed(ActionEvent e)
             {
                ok = true;
             }
          }
          private static class Pair
          {
             public  String pair = "";
             public String word = "";
             public String url = "";
             public Pair(String pair2, String word2, String url2)
             {
                pair=pair2;
                word=word2;
                url=url2;
             }
             public String toString()
             {
                return pair + "  " + word;
             }
     
          }
          public static void main(String[] args) throws Exception
          {         final JFrame frame = new JFrame("Flash Cards");
             frame.setSize(1200,800);
             frame.setLocation(100, 50);
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             OurPanel joe = new OurPanel();
             frame.setContentPane(joe);
             frame.setVisible(true);
             Thread t = new Thread(new Runnable(){public void run(){
          frame.setSize(200,801);
          try{
     
          Thread.sleep(300);
          }
          catch(Exception j)
          {
          }
     
          frame.setSize(1200,800);
          }
          }
          );
          t.start();
             joe.start();
          }
     
       }

    Thanks in advance for the help!

    I will try to answer any questions taht you have. I realize i name my variables in a confusing way
    Last edited by minime12358; March 12th, 2011 at 12:06 PM.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: JTextBox not showing?

    The code you posted is not compilable so its hard to step through it. That being said I can throw out a few pointers. First, if you add components to a container (say for example a JFrame) after the JFrame is visible, you must revalidate it (call revalidate on the Component after it is added). Second, I recommend reading about Threads and Swing Swing operates on a single thread (called the EDT), and you need to make sure anything you do to change the GUI should be done on that thread - your start method is called from the main thread, and to top it off you start a custom thread (so you have 2+ threads concurrently modifying things) - recommend you dispatch your changes to the EDT

  3. #3
    Junior Member
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: JTextBox not showing?

    Oh! Sorry about that, I removed some commented out code, and i accidentally removed a bracket in the process .I tried revalidating the box, however it didnt do anything :/ I also have read about the different kinds of threads (namely, the E__ type thread of which i forget the last two letters) and the thread in the middle is supposed to fix it... I also didnt realize that the bolds didnt work, so it doesnt compile
    This should:
     
    import javax.swing.*;
       import java.awt.*;
       import java.awt.event.*;
       import java.awt.image.*;
       import java.net.*;
       import java.util.*;
       import java.io.*;
       public class OurPanel extends JPanel
       {
          public static BufferedImage myImage;
          public static Graphics g;
          public static int amount = 1;
          public static boolean assist = false;
          public static double time = 2;
          public static JLabel label;
          public static boolean done = false;
          public static boolean ok = false;
          public OurPanel() throws Exception
          {
             myImage = new BufferedImage(500, 500, BufferedImage.TYPE_INT_RGB);
             g = myImage.getGraphics();
             label = new JLabel("");
             label.setFont(new Font("Serif",0,50));
             add(label);
          }
          public void start() throws Exception
          {
             String[] array= new String[576];
             Scanner in = new Scanner(new File("a.txt"));																																																																													                                                                                                                     
             ArrayList<Pair> joe = new ArrayList<Pair>();
             int r = 0;
             while(in.hasNextLine())
             {
                if(r>575)
                   break;
                String current = in.nextLine();
                current=current.trim();
                String[] joesephus = current.split("!");
                r++;
                int a = 0;
                a = 0;
                array[r-1]=current;
                if(current.equals("null"))
                   continue;
                if(current.length()>3)
                   joe.add(new Pair(joesephus[0].substring(0,2),joesephus[0].substring(3,joesephus[0].length()), joesephus.length>1?joesephus[1]:null));
     
             }
             while(true)
             {
     
                ArrayList<Pair> out = new ArrayList<Pair>();
                for(int i = 0;i<amount;i++)
                {
                   out.add(joe.get((int)(Math.random()*joe.size())));
                   System.out.println(out.get(out.size()-1));
                   if(out.get(out.size()-1).pair==null||out.get(out.size()-1).pair.equals("")||!(new File("Images//" + out.get(out.size()-1).pair + ".jpg").exists()))
                   {
                      i--;
                      out.remove(out.size()-1);
                   }
                }
                String answer ="";
                for(int i = 0;i<amount;i++)
                {
                   done=false;
                   boolean l = false;
                if(out.get(i).url!=null&&out.get(i).url.trim()!="")
                   {
                      JLabel s;
                      File stevehensing = new File("Images//" + out.get(i).pair + ".jpg");
                      if(stevehensing.exists())
                      {				ok = false;
                         java.awt.Image image = javax.imageio.ImageIO.read(stevehensing);
                         s = new JLabel(new ImageIcon(image));
                         add(s); 
                         label.setText(out.get(i).word + (assist?" (" + out.get(i).pair.trim() + ")" :""));
                   }
                }
                setRequestFocusEnabled(true);
                answer=answer.toLowerCase();
                Scanner input = new Scanner(System.in);
                removeAll();
                final    JTextField box = new JTextField("", 10);
                box.validate();
                box.setVisible(true);
                add(box);
     
                Thread t = null;
                t = new Thread(
                      new Runnable() {
                         private int a;
                         private boolean yes = false;
     
                         public void run() {
                            while (true) {
                               box.setVisible(!box.isVisible()||yes);
     
                               try {
                                  if(a>1)
                                     yes=true;
                                  Thread.sleep(100);
                                  a++;
                               } 
                                  catch (InterruptedException e) { /* Handle exception */ }
                            }
                         }
                      });
                box.setVisible(true);
     
                t.start();
                box.addKeyListener(
                      new KeyAdapter() {  
                         public void keyPressed(KeyEvent e) {  
                            System.out.println("TESTES" + KeyEvent.getKeyText(e.getKeyChar()));
     
                            if (e.getKeyChar() == KeyEvent.VK_ENTER) {  
                               done=true;  
                            }  
                         }  
                      });  
     
     
     
                label.setText("");
     
                add(label);
                repaint();
                setVisible(true);
                box.requestFocus();
     
                while(!done)
                {
     
                }
     
     
                if(box.getText().toLowerCase().equals(answer))
                   label.setText("Correct!");
                else
                   label.setText("Incorrect, it is " + answer.toUpperCase());
                remove(box);
                Thread.sleep(2000);
             }
     
          }
    		}
     
          private class Listener implements ActionListener
          {
             public void actionPerformed(ActionEvent e)
             {
                done=true;
             }
          }
          private class Listener2 implements ActionListener
          {
             public void actionPerformed(ActionEvent e)
             {
                ok = true;
             }
          }
          private static class Pair
          {
             public  String pair = "";
             public String word = "";
             public String url = "";
             public Pair(String pair2, String word2, String url2)
             {
                pair=pair2;
                word=word2;
                url=url2;
             }
             public String toString()
             {
                return pair + "  " + word;
             }
     
          }
          public static void main(String[] args) throws Exception
          {         final JFrame frame = new JFrame("Flash Cards");
             frame.setSize(1200,800);
             frame.setLocation(100, 50);
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             OurPanel joe = new OurPanel();
             frame.setContentPane(joe);
             frame.setVisible(true);
             joe.start();
          }
     
       }
    And a.txt contains:
    [spoiler]AB Abacus!http://4.bp.blogspot.com/_ppzKknN5F6...cus-1-AJHD.jpg
    AC Battery (I know they are DC)!http://assets.lifehack.org/wp-conten...-d-battery.jpg
    AD Billboard(Advertisement)!http://www.toxel.com/wp-content/uplo...llboards03.jpg
    AE Aeroplane!http://ligress.files.wordpress.com/2.../airplane2.jpg
    AF Blue Angles!http://generationbinary.com/wordpres...Disch:1&itbs=1
    AG alligator!http://www.knowledgerush.com/wiki_im..._Alligator.jpg
    AH air hockey!http://www.madfun-air-hockey-tables....r-hockey_s.jpg
    AI Artificial Intelligence!http://www.gadgets-reviews.com/uimg_...1203420977.jpg
    AJ angel!http://www.theangelwhispers.org/yaho...131529_std.jpg
    AK AK-47!http://world.guns.ru/userfiles/image...s01/ak47_3.jpg
    AL alien!http://drwill.com/wp-content/uploads/alien.png
    AM ammunition!http://www.military.co.il/asg/ammunition_a.jpg
    AN ant!http://www.fullhalloween.com/blog/wp..._house_ant.gif
    AO aerosal (can)!http://www.istockphoto.com/file_thum...erosol-can.jpg
    AP Apollo 13!http://www.dennishanna.com/apollo13.jpg
    AQ aquarium!http://www.tank-aquarium.com/upl/Image/Aquarium.gif
    AR arrow!http://loyalkng.com/wp-content/uploa...pids_arrow.jpg
    AS astronaut!http://www.nevadaspacegrant.com/wp-c.../Astronaut.gif
    AT Atlas!http://go.hrw.com/atlas/norm_map/world.gif
    AU automobile!http://www.selectism.com/news/wp-con...omobile-00.jpg
    AV UAV (tiny plane in the sky)!http://www.thehindu.com/multimedia/d...ED_358677f.jpg
    AW A&W root beer!http://www.rootbeer.com/images/home_product.jpg
    AX axe!http://midlifebloggers.com/wp-conten...11/01/axe1.jpg
    BA batman!http://www.wallpaperbase.com/wallpap...n/batman_6.jpg
    BC bicycle!http://www.google.com/imgres?imgurl=...0&tx=124&ty=59
    BD bed!http://www.tsl.state.tx.us/ld/projec...tillos/bed.jpg
    BE belt!http://www.trendora.com/products/pra...-belt-big1.jpg
    BF Sherry (my gf/Best friend)!COMEBACKLATER
    BG badge!http://www.pimall.com/nais/images/badge_m133.jpg
    BH bee hive!http://static.howstuffworks.com/gif/bee-8.jpg
    BI bird!http://digital-photography-school.co...hotography.jpg
    BJ blow job!COME
    BK burger king!http://www.businesspundit.com/wp-con...urger-king.jpg
    BL bell!http://shusd.schoolwires.com/shhs/lib/shhs/bell.png
    BM bomb!http://www.h4x3d.com/feat/themes/bomb.jpg
    BN bone!http://www.clipartheaven.com/clipart/anatomy/bone.gif
    BO Biology Classroom!http://farm4.static.flickr.com/3139/...6d1bc809e6.jpg
    BP backpack!http://store.bootsnall.com/product_i...a-backpack.jpg
    BQ barbeque!http://www.kidprintables.com/colorin...e/barbeque.gif
    BR bear!http://2.bp.blogspot.com/_v2TZw1Bq0U.../dave_bear.jpg
    BS Bull ****!http://images.pictureshunt.com/pics/..._bull-7771.jpg
    BT boot!http://www.birdhouse.org/etc/boot.gif
    BU bus!http://news.medill.northwestern.edu/...siness/Bus.jpg
    BV beaver!http://www.nps.gov/fosm/naturescienc...Painet_Inc.jpg
    BW bowling!http://www.mediabistro.com/fishbowld...02/bowling.jpg
    BX boxer!http://www.cutefunnypics.com/wp-cont...020boxer-6.jpg
    CA camera!http://www.core77.com/hack2school/img/cc_camera.jpg
    CB cab!http://thenyknow.com/wp-content/uploads/cab.jpg
    CD Compact Disc!http://www.markturner.net/wp-content..._disc.svg_.png
    CE cement!http://www.asbestos-news.org/wp-cont.../03/cement.jpg
    CF coffee!http://googleads.g.doubleclick.net/p...=Gold+Earrings
    CG cog!http://www.reallynatural.com/archive...ee%20Lover.jpg
    CH Chris Hardwick!http://1.bp.blogspot.com/_fxGuwquBG1...00/nerdist.jpg
    CI cigar!http://www.cigarpassport.com/cigar.jpg
    CJ Owl_Cookie_Jar!http://ny-image0.etsy.com/il_fullxfull.121291148.jpg
    CK cake!http://tfts.nexus404holdings.netdna-...ash-drives.jpg
    CL clown!http://torontoist.com/attachments/to...08_07clown.jpg
    CM comb!http://theshoppingmama.com/wp-conten...g_comb_rpk.jpg
    CN cone!http://www.funservicesinc.com/catalo..._Cone_Cups.jpg
    CO condoms!http://www.therightperspective.org/w...06/condoms.jpg
    CP cop!http://2.bp.blogspot.com/_4Hpx0g7iut.../s1600/cop.jpg
    CQ croquet!http://www.theukcuriosityblog.com/wp...quet-game1.jpg
    CR cross(Without Jesus)!http://www.google.com/images?hl=en&s...=cross(Without
    CS Computer Science!http://upload.wikimedia.org/wikibook...-IBCompSci.jpg
    CT cot!http://bedzine.com/blog/wp-content/u...007/10/cot.jpg
    CU cup!http://www.learningherbs.com/image-f..._cup_small.jpg
    CV clover!http://uwlc-online.org/images/four-leaf-clover.gif
    CW cow!http://www.bangitout.com/uploads/52cow.jpg
    CX chocolate extreme!http://www.fulltortas.cc.cc/img/prod...te_Extreme.jpg
    DA dagger!http://www.christiandevotions.us/upl...ger-767897.jpg
    DB disco ball!http://www.7gadgets.com/wp-content/u.../3428_5481.jpg
    DC Dan Cohen!http://kfmb.images.worldnow.com/images/9494353_BG1.jpg
    DE dentist!http://pages.uoregon.edu/dental/Images/Dentist.gif
    DF dafadils!http://jmccullor.files.wordpress.com...daffodils2.jpg
    DG dog!http://www.harlemfur.com/images/Dog_Olive.jpg
    DH dough!http://www.homemade-pizza-made-easy....a-dough-01.jpg
    DI Dildo!http://www.google.com/images?hl=en&s...i=g10&aql=&oq=
    DJ DJ (parties)!http://infinitedj.net/sitebuildercon...g.w560h433.jpg
    DK Donkey Kong!http://www.google.com/images?hl=en&s...=3564&q=Donkey
    DL doll!http://www.projectanime.com/sailormoon/paper_doll.jpg
    DM dome!http://www.aoc.gov/images/dome_1.jpg
    DN Doughnut!http://www.google.com/images?hl=en&s...i=g10&aql=&oq=
    DO dolphin!http://www.theoriginaldolphinwatch.c.../dolphin1b.jpg
    DP diapers!http://pregnancy.thefuntimesguide.co...wborn-baby.jpg
    DQ dairy queen!http://www.google.com/images?hl=en&s...I=3564&q=dairy
    DR dragon!http://pregnancy.thefuntimesguide.co...wborn-baby.jpg
    DS Nintendo (DS)!http://www.google.com/images?hl=en&s...564&q=Nintendo
    DT Bug_Spray_(Deet)!http://images.teamsugar.com/files/up..._2008/DEET.jpg
    DU dunkin doughnuts!http://ngepress.com/wp-content/uploa...ughnut-day.jpg
    DV Darth Vader!http://4.bp.blogspot.com/_oLbtTQY0cn...vader-face.jpg
    DW Drowning!http://4.bp.blogspot.com/_JuSINI3p1g...0/drowning.jpg
    DX dicks sporting goods!http://www.coupondad.net/blog/wp-con...ting_Goods.jpg
    EA Ear!http://www.mccullagh.org/db9/1ds2-2/ear-closeup.jpg
    EB eyeball!http://www.sodacraze.com/wp-content/...11/eyeball.jpg
    EC Eclair!http://gadgetsteria.com/wp-content/u.../01/eclair.jpg
    ED edward(twilight)!http://blog.lib.umn.edu/quinn137/pop...ght-poster.jpg
    EF elf!http://www.the-reel-mccoy.com/movies...Elf_poster.jpg
    EG egg!http://unchealthcare.files.wordpress...009/11/egg.jpg
    EH Hearing Aid!http://www.clivir.com/pictures/hearing_aid/styles2.jpg
    EI eskimo!http://s.costumzee.com/users/Barbaro-2779-full.gif
    EJ Peacock!http://3.bp.blogspot.com/_ziJX2O6d5-...t+peacocks.jpg
    EK elk!http://wdfw.wa.gov/living/species/graphics/elk1.jpg
    EL elf!http://www.google.com/imgres?imgurl=...1t:429,r:1,s:0
    EM Elmo!http://www.itsjust4me.com/prodimages/Elmo.gif
    EN 5-hour_Energy!http://ecampusblog.com/wp-content/up...ur_energy1.jpg
    EO eor!http://www.alfabb.com/bb/forums/atta...ds-eeyore.jpeg
    EP elephant!http://images.nationalgeographic.com...35_600x450.jpg
    EQ equestrian (horse rider)!http://www.solarnavigator.net/sport/...andy_horse.jpg
    ER Emergency Room!http://cdn1.newsone.com/files/2009/1...ncy_room_3.jpg
    ES EastSheen (AUFd 2x2)!http://img.vip.alibaba.com/img/image...web2_15660.jpg
    ET Extra Terrestrial!http://jaymckinnon.com/blog/wp-conte...2010/01/et.jpg
    EU euro!http://www.highsnobiety.com/news/wp-...-euro-coin.jpg
    EV Eve (Wally)!http://2.bp.blogspot.com/_Ec62E1VGfe...eve-wall-e.jpg
    EW Vomit!http://www.ratemyvomit.com/images/ul...omit-1809.jpeg
    EX excalibur!http://www.knightsedge.com/letter-op...r-opener-g.jpg
    FA Fat Albert!http://drumfunny.com/wp-content/uplo...fat-albert.jpg
    FB football!http://eslpod.com/eslpod_blog/wp-con...n_football.jpg
    FC fat cat!http://www.gracenmichelle.com/storag...=1295275633688
    FD food!http://www.google.com/imgres?imgurl=...1t:429,r:1,s:0
    FE ferret!http://www.gladpetproducts.com/wp-co.../10/ferret.jpg
    FG Fag (I picture this guy named Manny)!COME
    FH fire helmet (the yellow helmet)!http://www.comparestoreprices.co.uk/...ow-plastic.jpg
    FI fishsticks!http://www.fauxfooddiner.com/alacarte/fish_sticks.jpg
    FJ fudge!http://blogs.houstonpress.com/eating/fudge.jpg
    FK fork!http://www.randi.org/site/images/stories/swift/fork.jpg
    FL flour!http://www.bakesourdough.com/images/...se%20flour.jpg
    FM foam!http://www.snopes.com/photos/natural/seafoam.asp
    FN fang!http://www.dphotojournal.com/images/...ng/fang-05.jpg
    FO For Obama Badge!http://www.koolbadges.co.uk/images/t...rt-200x200.jpg
    FP frappachino (starbucks bottle)!http://www.examiner.com/images/blog/...rbucksfrap.jpg
    FQ Lord Farquad!http://wallpapers.boolsite.net/srv16...rdFarquaad.jpg
    FR fridge!http://3.bp.blogspot.com/_KgIqQvYUs3...01_400x400.jpg
    FS fish!http://www.wallpaperbase.com/wallpap...ish/fish_4.jpg
    FT feet!http://static.howstuffworks.com/gif/...-your-feet.jpg
    FU fugitive!http://chriswireman.com/images/fugitive.jpg
    FV five (imagine the number 5)!http://www.bschooladmissionsformula....veInCircle.png
    FW flower!http://www.floral-directory.com/flower.gif
    FX fox!http://images.nationalgeographic.com...79_600x450.jpg
    GA gargoyle!http://4.bp.blogspot.com/_Hmok7064UG...gargoyle+2.jpg
    GB Ghost Busters!http://actionflickchick.com/superact...ersPoster1.jpg
    GC gold crown!http://ringoblog.com/wp-content/uplo...ktail-ring.jpg
    GD Godzilla!http://www.utahfreepress.com/wp-cont...illavKong2.jpg
    GE genie!http://www.popsucker.net/images/popsucker/genie.jpg
    GF giraffe!http://www.raskraska.ru/book/img/giraffe_01.jpg
    GH ghost!http://www.atom.com/blog/files/2009/10/ghost.jpg
    GI ginny (harry potter)!http://collider.com/uploads/imageGal...he_phoenix.jpg
    GJ grape jelly!http://www.mrmilkman.com/uploads/grapejelly.jpg
    GK geek!http://www.geekestateblog.com/wp-con...07/08/geek.jpg
    GL globe!http://www.boston.com/ae/theater_art...lobe-thumb.jpg
    GM Golum!http://img157.imageshack.us/i/gollum...tekv1.jpg/sr=1
    GN Ginger!http://lilithsapothecary.files.wordp...11/ginger2.jpg
    GO gorilla!http://www.awf.org/files/3972_image2...la_MWatson.jpg
    GP grapes!http://mohebban.burjalsaheb.com/wp-c...ree-grapes.jpg
    GQ The Magazine- Guy in expensive Suit!http://cdn.buzznet.com/media/jjr/hea...ner-gq-guy.jpg
    GR grass!http://images.free-extras.com/pics/g/grass-603.jpg
    GS gas (can)!http://media.giantbomb.com/uploads/0....med_large.jpg
    GT goat!http://www.wallpaperbase.com/wallpap...oat/goat_1.jpg
    GU gun!http://www.washingtonmonthly.com/col...images/gun.jpg
    GV gravel!http://www.marigoldlane.com/PICS/PeaGravel.jpg
    GW George Washington!http://www.visitingdc.com/images/geo...on-picture.jpg
    GX X-games(bikes)!http://www.genesbmx.com/X-Games-BMX-Motobike2.jpg
    HA harpoon!http://www.coolantarctica.com/galler...arpoon_gun.jpg
    HB hobo!http://2.bp.blogspot.com/_s6Cu32Fga4.../s400/hobo.jpg
    HC Hi-c!http://www.x-entertainment.com/hallo...ctober12/4.jpg
    HD head!http://mocoloco.com/art/archives/mue...ead_jan_06.jpg
    HE hell!http://ivarfjeld.files.wordpress.com..._070706_ms.jpg
    HF hot fudge!http://www.harm0nie.com/wp-content/u...ay-7-25-07.jpg
    HG hermione granger!http://www.hermionegrangerswand.com/images/hermione.jpg
    HI hitler!http://image.guardian.co.uk/sys-imag.../hitler460.jpg
    HJ hedge!http://www.peilandscaping.ca/editor_...-hedges-01.jpg
    HK Captain Hook!http://findmeapirate.com/Pages/Capta...k%20disney.jpg
    HL Hughe Lauri (House)!http://image.guardian.co.uk/sys-imag...3/house460.jpg
    HM hummer!http://4carpictures.com/wp-content/u..._hummer-h2.jpg
    HN honey!http://www.northeastharvest.com/imag...est/honey3.jpg
    HO hose!http://toolmonger.com/wp-content/upl.../post-hose.jpg
    HP Harry Potter!http://languageisavirus.com/harry-po...of-secrets.jpg
    HQ Hockey!http://img367.imageshack.us/i/hockey...icra7.gif/sr=1
    HR heart!http://www.wwtt.org/HEART1.gif
    HS A house!http://farm3.static.flickr.com/2010/...cf62f4565e.jpg
    HT hat!http://people.ucsc.edu/~kfeinste/fel...les/hat002.jpg
    HU heffalump!http://itzrayraybeyotch.files.wordpr...if?w=254&h=311
    HV Heaven!http://grtu.net/data/images/Article_images/heaven.jpg
    HW Home Work!http://www.banninglibrarydistrict.or.../homework1.jpg
    HX Hex Nut /Hex wrench!http://us.123rf.com/400wm/400/400/na...Disch:1&itbs=1
    IA Idea(LightBulb)!http://www.inscipa.com/wp-content/up...-lightbulb.jpg
    IB Ibeam!http://www.1stpilotcarcompanies.com/Ibeam.png
    IC ice cream!http://www.leewardlaw.com/scream_pic...ream-Cones.jpg
    ID Identification!http://www.zooniteclub.com/images/pa...tification.png
    IE Internet Explorer!http://5.mshcdn.com/wp-content/uploa...etexplorer.jpg
    IF infield (baseball)!http://www.ballglovefanatic.com/file...BD_infield.png
    IG igloo!http://threeceebee.com/wp-content/up...oo_outside.jpg
    IH Incredible Hulk!http://warrenholstein.files.wordpres...dible-hulk.jpg
    IJ Indiana Jones!http://images.hollywood.com/site/indiana-jones.jpg
    IK Ink(squid)!http://farm4.static.flickr.com/3368/...48cf25ae75.jpg
    IL Pill (Illness)!http://www.freepik.com/image/th/327296.jpg
    IM Text Messages!http://images.mylot.com/userImages/i...os/1970104.jpg
    IN indian!http://www.old-picture.com/indians/p...row-Indian.jpg
    IO Jupiter (IO the moon)!http://photography.nationalgeographi...o-70559-sw.jpg
    IP Ipod!http://static.howstuffworks.com/gif/ipod-touch-5.jpg
    IQ Albert Einstein!http://www.deism.com/images/einfun.jpg
    IR an Iron!http://img4.realsimple.com/images/be...on-box_300.jpg
    IS ice skates!http://www.examiner.com/images/blog/...ice_skates.gif
    IT Cousin It!http://www.flyingomelette.com/odditi...3/cousinit.jpg
    IU Igloo!http://threeceebee.com/wp-content/up...oo_outside.jpg
    IV ivysaur!http://guidesmedia.ign.com/guides/98...es/ivysaur.gif
    IW Radiation symbol!http://www.wellnessuncovered.com/joo...n_symbol_1.png
    IX Ibex!http://www.christianhomeschooler.inf...10/03/ibex.jpg
    JA jar!http://1.bp.blogspot.com/_c67S34J41n.../s1600/jar.jpg
    JB jukebox!http://www.popten.net/wp-content/upl...5/jukebox.jpeg
    JC Juicy Juice!http://www.flexpack.org/images/Public/juicy.jpg
    JD Jack Daniels!http://drinkmatron.com/wp-content/up...ck-daniels.gif
    JE Jesus!http://www.utilitarianism.com/jesus-christ.jpg
    JF JellyFish!http://earthguide.ucsd.edu/hughes200.../jellyfish.gif
    JG Jug!http://www.loc.gov/exhibits/scrolls/images/jug.jpg
    JH Jousting Horse (Jouster!http://www.clipartguide.com/_named_c...part_image.jpg
    JI jigsaw(full puzzle)!http://www.androidmeup.com/system/ap...saw_puzzle.png
    JK joker (batman)!http://www.sarahfobes.com/wp-content...ark-knight.jpg
    JL jail!http://cdn1.newsone.com/files/2010/06/jail.jpg
    JM Jumbilia!http://www.jambalaya-recipe.com/images/jambalaya.gif
    JN jeans!http://www.svwsticker.com/files/svws.../120/Jeans.jpg
    JO Jello!http://www.doobybrain.com/wp-content...tual-jello.gif
    JP jigglypuff!http://aspergers.dasaku.net/wp-conte...jigglypuff.jpg
    JQ Jacque Cruzo (Pink Panther)!http://4.bp.blogspot.com/_H1naTPY8IE...nk-Panther.jpg
    JR Jar!http://www.seas.upenn.edu/~cis1xx/re...Images/jar.jpg
    JS Jazmine(Aladin)!http://www.kids-comforter-set.com/wp...e_princess.jpg
    JT jet!http://www.richard-seaman.com/Aircra...et11oClock.jpg
    JU jungle!http://www.thetravelpeach.com/south-...ons/jungle.jpg
    JV softball!http://www.dgs.k12.il.us/pages/uploa...all_yellow.jpg
    JW Shark (Jaw)!http://4.bp.blogspot.com/_2bU2HyMKco.../Shark+jaw.jpg
    JX Jacks!http://www-personal.umich.edu/~thyliasm/jacks.jpg
    KA kangaroo!http://blog.bioethics.net/541447~Aus...oo-Posters.jpg
    KB keyboard!http://gadgetsblog.org/wp-content/up...6/keyboard.jpg
    KC Brass Knuckles!http://unrealitymag.com/wp-content/u...sknucklesp.jpg
    KD kid!http://fc.yesnet.yk.ca/~cphodgin/S00...s-cooking2.jpg
    KE ketchup!http://pabloaguero.com/wp-content/up...09/ketchup.jpg
    KF KFC!http://www.businesspundit.com/wp-con...rilledchix.jpg
    KG Kong (King Kong)!http://www.starstore.com/acatalog/King_Kong_dlx-15.jpg
    KH keyhole!http://www.elsaelsa.com/wp-content/u...12/keyhole.jpg
    KI kite!http://www.freefoto.com/images/18/21...eb.jpg?&k=Kite
    KJ
    KL kilt!http://www.men-in-kilts.com/gifts/kilt-carrie.JPG
    KM Gernade (Kaboom)!http://farm3.static.flickr.com/2155/...b4e5fb.jpg?v=0
    KN knight!http://www.counterfeitchic.com/Image...y%20knight.jpg
    KO Koala!http://www.alisonashwell.com/nature/koala.jpg
    KP Koopa(Turtle)!http://multiplayerblog.mtv.com/wp-co...paratroopa.jpg
    KQ king/queen chess pieces!http://www.chesssetpieces.com/images/Queen.jpg
    KR kryptonite!http://venusius.files.wordpress.com/...kryptonite.jpg
    KS Kiss!http://www.musiciansatlas.com/newsle.../kiss_lips.jpg
    KT Kitty!http://cats.about.com/library/graphi.../mar_kitty.jpg
    KU Koosh(Fluffy_Ball_Thing)!http://www.naturalstressreliefguide...._bluegreen.jpg
    KV
    KW killer whale!http://www.seaworld.org/animal-info/...ller-whale.jpg
    KX kix (cereal)!http://2.bp.blogspot.com/_bUMgGE213s...g/s320/kix.jpg
    LA lamp!http://www.elitalice.com/wp-content/...-lamp-kids.JPG
    LB lab (dog)!http://www.bigdogboutique.com/Produc...og/lab_dog.jpg
    LC Luck!http://blogs.citypages.com/blotter/t...-machine-1.jpg
    LD lead!http://mo.water.usgs.gov/projects/mi...ges/Galena.jpg
    LE leopard!http://images.nationalgeographic.com...06_600x450.jpg
    LF leaf!http://www.geog.ucsb.edu/img/news/2008/ginkgo_leaf.JPG
    LG legos!http://www.w3.org/2005/Talks/0308-semweb-em/legos.jpg
    LH Light House!http://www.thelensflare.com/large/lighthouse_1367.jpg
    LI lips!http://www.faqs.org/photo-dict/photo...7/1045lips.jpg
    LJ
    LK Lock (school locker protection)!http://thumbs.dreamstime.com/thumbla...6449fP4ITK.jpg
    LM lamb!http://www.bbc.co.uk/wear/content/im...mb_470x354.jpg
    LN lantern!http://www.chinatraderonline.com/Fil...6412128493.jpg
    LO lobster!http://www.founditemclothing.com/itg.../lobster4a.jpg
    LP Record!http://www.chevroncars.com/learn/img...nyl-record.jpg
    LQ liquor!http://blog.pennlive.com/midstate_im...rge_liquor.jpg
    LR liar(pants fire)!http://1.bp.blogspot.com/_5E_qiRhuut...Liar+pants.jpg
    LS Luke Skywalker!http://spacecollective.org/userdata/...-skywalker.jpg
    LT lottery!http://onlinelotteryinfo.com/wp-cont...y-of-birth.jpg
    LU Lunchables!http://www.goingongrownup.com/wp-con.../lunchable.jpg
    LV lord voldemort!http://www.cannotbetamed.com/wp-cont...dVoldemort.jpg
    LW LawnMower!http://www.catalize.com/lawnmower.png
    LX Lacross!http://1.bp.blogspot.com/_ZInWXQXDO2...0/LACROSS2.gif
    MA Matches!http://www.mythic-beasts.com/~dct25/...ks-matches.jpg
    MB Men in black!http://ecx.images-amazon.com/images/...500_AA300_.jpg
    MC Mcdonalds(Arches)!http://2.bp.blogspot.com/_1ADGtyRw1v...lds+Arches.png
    MD mountain dew!http://www.detroitcity.com/blogs/images/1257342816.jpg
    ME Asa!DO
    MF muffin!http://copylounge.files.wordpress.co...02/muffin1.jpg
    MG magnet!http://rosinstrument.com/pb/img/stat...les-magnet.jpg
    MH Mike Hughey!http://thumbshigh.koreus.com/200901/...-7-aveugle.jpg
    MI milk!http://www.chicagoreader.com/images/...09299-milk.jpg
    MJ Michael Jackson!http://images.huffingtonpost.com/201...aeljackson.jpg
    MK monkey!http://scalzi.files.wordpress.com/20...pg?w=424&h=305
    ML Mona Lisa!http://i.bnet.com/blogs/mona-lisa.jpg
    MN moon!http://homepage.mac.com/rarendt/Pics/moon_20071223.gif
    MO moose!http://homepage.univie.ac.at/horst.p...p3/moose-1.jpg
    MP mop!http://www.janitorssupplyco.com/TOTAL_MOP.jpg
    MQ Moe_Sizlack!http://bestuff.com/images/images_of_...jpg?1191682646
    MR mars!http://scienceblogs.com/startswithab...mars/mars.jpeg
    MS microsoft!http://ceoworld.biz/ceo/wp-content/u...osoft_logo.jpg
    MT mountain!http://www.mustseephoenix.com/attrac...k-mountain.jpg
    MU mule!http://www.tackandsaddletips.com/wp-...10/04/mule.jpg
    MV Minivan!http://allworldcars.com/wordpress/wp...er-minivan.jpg
    MW mew!http://images.wikia.com/pokemon/images/4/48/Mewtwo.jpg
    MX Blender!http://www.odec.ca/projects/2006/bac...ersBlender.jpg
    NA nacho!http://media.photobucket.com/image/n...ine/nachos.jpg
    NB nutter butter!http://farm1.static.flickr.com/58/15...6a0d842e7e.jpg
    NC necktie!http://www.didyouknow.it/wp-content/...11/necktie.jpg
    ND needle!http://nabbycat.files.wordpress.com/...eedle_pink.jpg
    NE Neo!http://www.bankruptcylitigationblog....ullets%201.jpg
    NF Knife!http://www.uberti.com/firearms/image...e_knife_lg.jpg
    NG ******!http://www.harrycutting.com/graphics...-FC5010-76.jpg
    NH
    NI nickle!http://www.etftrends.com/wp-content/...lproof_obv.jpg
    NJ ninja!http://static.technorati.com/10/08/2...nja-crouch.jpg
    NK Tank!http://www.wallpaperbase.com/wallpap...ams_tank_5.jpg
    NL nail!http://www.rammfence.com/shop/images...ank_nail_m.jpg
    NM Necromancer!http://images.wikia.com/wowwiki/images/6/6c/NcWC3.gif
    NO Norris(chuck)!http://www.themoviemind.com/wp-conte...k-norris-2.jpg
    NP Santa (North Pole)!http://www.turnbacktogod.com/wp-cont...-Pics-0302.jpg
    NQ Nerf QuarterBack (nerf football)!http://www.uncrate.com/men/images/ne...z-football.jpg
    NR nerd!http://www.untoldentertainment.com/b...09_24/nerd.jpg
    NS nest!http://www.smartisans.com/personal/i...gs_in_nest.jpg
    NT net!http://oldtimeangler.tripod.com/inde...rksman_net.jpg
    NU nuclear!http://org2.democracyinaction.org/o/...deserttest.jpg
    NV Novel!http://kirkhamsebooks.com/WritersToo...velWriting.gif
    NW newt!http://www.flightglobal.com/blogs/fl...ional/Newt.gif
    NX nixon!http://img.timeinc.net/time/quotes/2...0712_nixon.jpg
    OA oatmeal!http://www.cksinfo.com/clipart/food/meals/oatmeal.png
    OB Obama!http://www.eduinreview.com/blog/wp-c...ack_obama1.jpg
    OC octopus!http://www.csi.ucd.ie/files/octopus-logo.jpg
    OD Overdose(Empty_Pill_Bottle)!http://image.shutterstock.com/displa...s-20704765.jpg
    OE oboe!http://www.caribbeanedu.com/images/kewl/oboe.gif
    OF officer!http://www.uscg.mil/d11/grphumboldtb...PT_MARTINO.JPG
    OG ogre!http://www.starstore.com/acatalog/Bl...tress-ogre.jpg
    OH
    OI oil!http://www.greenzer.com/blog/blog_im...ate-change.jpg
    OJ OrangeJuice!http://www.buttermilkpress.com/orange_juice.jpg
    OK
    OL olive!http://c1.cleantechnica.com/files/20...assortment.jpg
    OM oatmeal!http://allnaturalannie.com/wp-conten...10/oatmeal.jpg
    ON onion!http://www.thestrokefoundation.com/i...food/onion.jpg
    OP opera!http://blog.silive.com/weather/2009/04/opera-singer.jpg
    OQ Occoquan_Lake(Water,In_General)!http://iis.berkeley.edu/sites/defaul.../img/water.jpg
    OR orbitz (gum)!http://www.consumerqueen.com/consume.../orbit-gum.jpg
    OS ostrich!http://static.howstuffworks.com/gif/ostrich.jpg
    OT otter!http://www.eclectech.co.uk/b3ta/2006-09-15-otter1.jpg
    OU Outhouse!http://cdn.thegreenestdollar.com/wp-...e-outhouse.gif
    OV oven!http://www.blavish.com/wp-content/up...12-56-2006.jpg
    OW owl!http://rodgerdodger.files.wordpress....barred-owl.jpg
    OX ox(animal thingy)!http://2.bp.blogspot.com/_lPoKDIW7TF...0/IMG_0307.JPG
    PA paper!http://www.sugarcraft.com/catalog/misc/WFO-811.jpg
    PB polar bear!http://www.solcomhouse.com/images/79...2004-11-15.jpg
    PC peacock!http://jessicavarga.files.wordpress....11/peacock.jpg
    PD panda!http://kidzcoolzone.com/wp-content/u...0/02/panda.jpg
    PE penguin!http://www.emperor-penguin.com/penguin-chick.jpg
    PF pirate flag!http://scabbisland.files.wordpress.c...lag_877869.jpg
    PG pig!http://www.eslpod.com/eslpod_blog/wp.../pig-thumb.jpg
    PH pharoah!http://www.in2itinternational.com/Ar...psut_19_23.jpg
    PI pie!http://4.bp.blogspot.com/_hMTEA59myU.../s1600/pie.jpg
    PJ pajamas!http://images.mylot.com/userImages/i...os/2272095.jpg
    PK pikachu!http://www.gamingangels.com/wp-conte...11/Pikachu.gif
    PL pliers!http://www.fusionheadquarters.com/im...ing_pliers.jpg
    PM Sunset!http://www.universetoday.com/wp-cont...07/Our-Sun.jpg
    PN penis!DO
    PO poop!DO
    PQ porqupine!http://www.lebasketbawl.com/wp-conte...upine-727c.jpg
    PR Princess_Peach!http://questtonowhere.com/wp-content...ncessPeach.png
    PS playstation!http://scrapetv.com/News/News%20Page...aystation.jpeg
    PT powerthirst!http://needcoffee.cachefly.net/needc...owerthirst.jpg
    PU Puppy!http://www.wired.com/images_blogs/ph...3/04/puppy.jpg
    PV polevault!http://www.whosjack.org/wp-content/u...Sequence_3.jpg
    PW paw!http://www.clipartguide.com/_small/0...-1117-1752.jpg
    PX pickaxe!http://www.gtdretail.webege.com/Photos/pickaxe.jpg
    QA quarter!http://www.coinfacts.com/quarter_dol..._obv_large.jpg
    QB quarterback!http://www.epmonthly.com/whitecoat/w...uarterback.jpg
    QC Quiche!http://1.bp.blogspot.com/__KIQtLwViM...600/quiche.gif
    QD Quacking Duck (Real, not rubber)!http://www.freefoto.com/images/01/08...eb.jpg?&k=Duck
    QE Queen!http://www.cheatmasters.com/blog/wp-...oyal_queen.jpg
    QF
    QG Quagmire!http://images.wikia.com/familyguy/im...f/Quagmire.PNG
    QH
    QI quill (from harry potter)!http://www.dadcando.com/Making/Wizar...ll_pen_425.jpg
    QJ Mini_QJ(Spinny_4x4)!http://ecx.images-amazon.com/images/I/41LZPBENuIL.jpg
    QK Flash (quick)!http://relaxsetgo.com/wp-content/upl...0/09/flash.jpg
    QL
    QM
    QN
    QO quaker oats (imagine the guy on box)
    QP Quarter Pounder
    QR
    QS quicksand
    QT quart(dq quart)
    QU queen
    QV Quiver
    QW
    QX QuickSand
    RA racoon
    RB rabbit
    RC Rubik's Cube
    RD Rubber Duckie
    RE reaver
    RF Referee
    RG rag
    RH Rowe hessler
    RI Rhino
    RJ
    RK rake
    RL Rail
    RM Ram
    RN raisins
    RO rope
    RP Gravestone
    RQ racquet
    RS
    RT rat
    RU ruby
    RV raven
    RW ron weasly
    RX Rex(dinosaur)
    SA saw
    SB sub(eat)
    SC scythe
    SD scooby doo
    SE semen
    SF
    SG Stargate
    SH ship
    SI sink
    SJ Slim Jim
    SK skeleton
    SL seal
    SM Smoky the Bear
    SN Sonic the Hedgehog
    SO sofa
    SP spaghetti
    SQ squirrel
    SR syringe
    ST star
    SU sunchips
    SV Life Savers
    SW swatter
    SX saxophone
    TA tank
    TB tub
    TC taco
    TD toad
    TE tent
    TF taffy
    TG tiger
    TH thong
    TI tire
    TJ thomas Jefferson (my school)
    TK truck
    TL tails (Sonic)
    TM tinman
    TN TNT(bomb)
    TO tomb
    TP Toilet Paper
    TQ Tack
    TR tree
    TS TeeShirt
    TU turtle
    TV televison
    TW Towel
    TX Tex(cowboy)
    UA
    UB U-boat
    UC Unicorn
    UD udder
    UE
    UF UFO
    UG Ugly
    UH u-haul (trucks)
    UI unicyclist
    UJ
    UK Ukelele
    UL
    UM umbrella
    UN unicorn
    UO
    UP UPS (trucks)
    UQ
    UR urine
    US United States
    UT undertaker
    UV HoverBoard
    UW underwear
    UX tUXedo
    VA vagina
    VB volleyball
    VC vacuum
    VD video
    VE vending (machine)
    VF Venus Flytrap
    VG Viking
    VH
    VI visor
    VJ
    VK viking
    VL vial
    VM venom
    VN violin
    VO volcano
    VP vampire
    VQ ventriloquist
    VR Virtual Reality
    VS vase
    VT vault
    VU vulture
    VW Volkswagon
    VX vortex
    WA water
    WB web
    WC witch
    WD weed
    WE welder
    WF waffle fries
    WG wig
    WH whip
    WI wine
    WJ Wedge
    WK Wikipedia(logo)
    WL wall
    WM Wal-mart
    WN window
    WO wolf (werewolf)
    WP weapons
    WQ
    WR wizard
    WS walrus
    WT Water Tower
    WU Love Potion
    WV weaver
    WX wax
    XA
    XB Spongebob
    XC
    XD Laughing
    XE Electric_Eel
    XF
    XG Grill
    XH Helicopter
    XI Xylophone
    XJ Hook(fishing_pole)
    XK
    XL
    XM X_on_a_mirror
    XN Gas_Pump(Exxon)
    XO Heart
    XP science_Lab(Experiment)
    XQ Scrabble (Bad pieces
    XR TreadMill(Excercise)
    XS SpiderMan
    XT Exit(Sign)
    XU zoo
    XV
    XW Boarded_up_window[/spoiler]
    Last edited by minime12358; March 12th, 2011 at 12:23 PM.

  4. #4
    Junior Member
    Join Date
    Mar 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JTextBox not showing?

    Not to hijack your thread, but I have a similar problem with threads and swing with which I have posted in this very forum.

    You might have better luck with this information that I found (since I still don't get it)

    Apparently when you try to update your GUI from a thread, you need to invoke Swing's EDT (Event dispatch thread I believe it's called) and from there it will handle the gui.

    You do this (well consider that this is my code, and that it DOES NOT work, but my research has dictated this to me, so perhaps it will for you) within the run method of your thread.

      SwingUtilities.invokeLater(new Runnable() {
                        public void run() {
                            jtxtSuit.setText("Spade");
                            jtxtValue.setText(String.valueOf(5));                           
                        }
                    });

    Hopefully this helps you more than it did me! Good luck
    Last edited by Rakshasas; March 14th, 2011 at 08:11 AM. Reason: Forgot a )

Similar Threads

  1. Label not showing up.
    By joshft91 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 1st, 2011, 03:36 PM
  2. showMessageDialog is not showing!
    By jonathan920 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: October 27th, 2010, 04:14 AM
  3. showing page
    By ighor10 in forum Java Theory & Questions
    Replies: 1
    Last Post: August 26th, 2010, 08:52 AM
  4. Showing database results
    By randyrr in forum What's Wrong With My Code?
    Replies: 0
    Last Post: April 27th, 2010, 11:26 PM
  5. Showing a picture in a GUI
    By joachim89 in forum AWT / Java Swing
    Replies: 1
    Last Post: February 15th, 2010, 02:42 PM