Weird problem i have with JTextField

I have a weird problem with this code...
if
JTextField.setText("value")
then why is
JTextField.getText() == "value"
false?
Can somebody please tell me why this happens....
The applet below illustrates the problem
public class help extends javax.swing.JApplet {
private javax.swing.JTextField Sample;
public help() {
initComponents();
DemonstrateProblem();
public void DemonstrateProblem()
System.out.println(Sample.getText());
if(Sample.getText() == "value")
System.out.println("This is what you think will happen");
else
System.out.println("But instead you end up here");
System.out.println("Why????");
private void initComponents()
               Sample = new javax.swing.JTextField();
               Sample.setText("value");

Thanks for the help...
I didn't realize that by using "==" i was comparing the objects and not the strings they contained.. (did i get that right??)
anyways i used your suggestion and now it works....
I am posted my new code for thoose who may want to learn from my mistake
public class help extends javax.swing.JApplet {
private javax.swing.JTextField Sample;
     private java.lang.String StrSample;
public help() {
initComponents();
DemonstrateProblem();
public void DemonstrateProblem()
          System.out.println("This is what Sample =");
System.out.println(Sample.getText());
          System.out.println("This is what StrSample =");
          System.out.println(StrSample);
if(StrSample.equals("value"))
System.out.println("This is what you think will happen");
else
System.out.println("But instead you end up here");
System.out.println("Why????");
private void initComponents()
               Sample = new javax.swing.JTextField();
               Sample.setText("value");
               StrSample = Sample.getText();

Similar Messages

  • 2 problems i have with my N82 (Firmware Update, As...

    I have one N82 mobile and i was not able to update its firmware. Everytime i try to update (with Nokia Software Updater v1.4.23en) from version 10.0.046 to 11.0.117 is telling me "Updating Software Fail". It regognizes my mobile and it has downloaded the update from nokia server, but everytime i have tryed to update it fails and it is asking me to retry. I have checked the FAQs and i am sure that i have a valid SIM card inserted, Power/Internet connection is not lost during update, i have removed and inserted again a fully charged battery, and the Device is in Normal profile. Can anyone help me please?
    Another problem i have is that i couldn't find where to go if i want to assign an mp3 as a ringing tone for a specific person. When i go to "Contacts>i select a contact>Ringing Tone" it gives me only 2 options. "Download Sounds" & "Default tone". Wasn't suppose to be another option for assigning your own songs?
    Thanks for any possible help you can give me!

    Hi 123musicv
    I had similar problems with NSU v1.4.23en which in my situation was only resolved by un-installing all Nokia applications, cleaning up the registry and re-installing NSU.
    Incidentally you can install NSU without PC Suite being present and in this case PC Connectivity Solutions is downloaded at the same time.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Some problems I have with my Curve 9300. Hope you can help me.

    Hi everyone.
    I decided to post here to know if someone can help me out, I'm a blackberry curve 9300 user - O.S. 6, I've had the smarthpone for a while now, but since the beginning I've been having some minor details, I want to know if there's a simple solution for those things.
    1. Browser.
    Since the beginning, the phone native browser has this problem where it starts to load a page but at the middle it just stops and goes back to the home page, so that I can't load any page. I have to search for another browser which works just fine, but maybe there is something I can do to solve this since youtube or othe pages only load on the BB browser and as I said, it doesn't load the pages. It doesn't promp any error message or anything.
    2. Don't-know-what-it's-for Icon.
    For a few months now, there's this icon that I can't tell what it's for, I've already search all over the APP for updates but nothing, I just decided to coexist with the icon as it never goes away. Maybe there's something I'm not doing right to check the icon. Here's a screen capture of the mentioned icon.
    [IMG]http://i45.tinypic.com/10f252b.png[/IMG]
    RL=http://imageshack.us/photo/my-images/521/captureit​25042012191027.png/][IMG]http://img521.imageshack.​...
    Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL]
    3. Crazy pointer.
    Sometimes, not always, the pointer just go mad, it start to move by itself, and when one tries to write it becomes impossible, I've tried changing the sensitivity of the pad but no changes.
    Thanks in advance for any advices you can give me.
    Solved!
    Go to Solution.

    Awesome! You should now be fine for those two... my guess is the crazy pointer may just be due to an over-sensitive trackpad (usually happens when the trackpad gets covered in skin oils). Try cleaning it once in a while with a soft cloth to remove any finger oils and that should help with that.
    If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
    If your issue is resolved, don't forget to click the Solution button on the resolution!

  • Weird problems of figures with word to pdf conversion

    Platform: Windows Vista
    Word 2007
    Acrobat 9
    Q: I have some wmf format vector figures inserted into word file. When I convert the word file into pdf format using the built-in pdfmaker button in the word menu, the vector graphics all become bitmap type. If I use print to pdf commond, the graphics are still vector format. Because I want to retain the Heading markers and other bookmarkers in the converted pdf file, I prefer using the pdfmaker for the conversion.
    Does anyone know how to fix it? it used to work in my old computer with acrobat 8 and word 2003. Not sure whether it is a compatability issue.

    You may want to be open to issues of WORD 2007, particularly if using a docx format. It may not be the issue you are having, but I have found problems with WORD itself for graphics. In some cases, it will take a nice graphic and split it into parts when creating a PDF. I am not sure what all the issues are, but WORD 2007 seems to be part of the problem, not just Acrobat. In fact, I have seen WORD take a vector graphic and change the fonts to a graphic, rather then leave them as a font in such a graphic - that was with a docx file. I am not saying WORD is the problem, but be open to alternate explanations of what is going on.

  • HT4623 How can I solve the Bluetooth problem I have with Code 28

    I am having problems with Bluetooth Peripheral Device drivers not installing Code 28, any advise.

    You might want to ask in the MBP area as well. And there are a number of issues with networking, support for IPv6 (I would disable rather than use Automatic setting) and whether you use Airport or not.
    Take a look on
    http://www.macfixit.com
    http://www.macintouch.com
    where they have some articles - and search Apple Support if this continues. In the meantime, might want to reboot your router and check your settings.

  • Where do I send a long list of problems I have with non-functionality with the Lion OSX and new Safari for Lion.

    In the past two weeks I have been documenting my Lion problems.
    First, Arrows gone from finder windows; makes it difficult in comparing long lists of files in folder, or compare documents when reviewing line by line. This is obviously a change by people who do not compare long lists in windows comparing files between versions of projects ... the click to next screen is NOT equal to arrows.
    Second, Finder Redreaw - doesn't. Move files to a fold, if there are a lot of files, they image of the files being moved remains in finder (see attached screen capture) until Finder is restarted and if COPY function is running. last files in Copy queue are not copied.
    Screen capture 5 minutes after moving files to a folder - the selected file images are still in Finder after the move was completed.
    Third, it is SLOW, particularly going to an "Attach file" in email, drawing the content of a folder to select an attachment is long enough for me to go to the kitchen, get a drink and come back. Just like the old days of OS7.
    Fourth, shifting/recentering screen away from where I am working. Several programs, browsers, Adobe Photoshop/inDesign, and dear old Pages re center my screen - not to the center, but if I choose 30 of 70 images in a folder, it will shift … somewhere else in the folder instead of where I just clicked. If I am working on a document in inDesign or PhotoShop it will do the same - the cursor and screen drift elsewhere to find something it has been amused by. Sometimes it is a word, or a file, but often it is off the pastboard and on the etherial pasteboard on which the pages sit. Or if I'm zoomed in on an image, it moves to somewhere else.
    I use a mouse and keyboard, both Apple wireless. I do not use a trackpad, but have a tablet/stylus I am afraid to put into the mix until this crap is stopped.
    Fifth, SAVE AS… is gone. You must unlock, duplicate and edit the duplicate … and must rename it in Finder, or use EXPORT to save as the same format under a new name. SAVE AS… worked. Not broke, why fix it?
    Personal Comment: The problems seem to be the triumph of coked up software engineers ooohing and aaahing over "Wouldn't it be cool if..."   Cool, if they were Microsoft, and required everyone change how they have worked on Macs for the past (almost) three decades. Triumph of brainstorming over functionality.
    Sixth, I can't use Cocoa Booklet, but that really started in OSX 10.6 "Snow Leopard". Most of my X11/Cocoa programs stopped worked about that time. Apple is no longer supporting "open source"?
    But Wait! There's More...
    Seventh, Tonight, trying to download a 1.7 gig archive onto a disk where 280 Gigs were supposedly free, it would not download because, according to the wonderful new Safari and the wonderful new Lion, there is not enough disk space to download a 1.7 gig file in a mere 280 Gigs of free space.
    I might be able to move Snow Leopard onto the iMac, but my deciding factor was that Apple, in its wisdom, decided to make iBook Author unable to run under Snow Leopard. So moving to Snow Leopard means I have lost the ONLY benefit I get from the new computer and the new system.
    This really stinks.

    bigbookjoe wrote:
    In the past two weeks I have been documenting my Lion problems.
    First, Arrows gone from finder windows; makes it difficult in comparing long lists of files in folder, or compare documents when reviewing line by line. This is obviously a change by people who do not compare long lists in windows comparing files between versions of projects ... the click to next screen is NOT equal to arrows.
    Second, Finder Redreaw - doesn't. Move files to a fold, if there are a lot of files, they image of the files being moved remains in finder (see attached screen capture) until Finder is restarted and if COPY function is running. last files in Copy queue are not copied.
    Screen capture 5 minutes after moving files to a folder - the selected file images are still in Finder after the move was completed.
    Third, it is SLOW, particularly going to an "Attach file" in email, drawing the content of a folder to select an attachment is long enough for me to go to the kitchen, get a drink and come back. Just like the old days of OS7.
    Fourth, shifting/recentering screen away from where I am working. Several programs, browsers, Adobe Photoshop/inDesign, and dear old Pages re center my screen - not to the center, but if I choose 30 of 70 images in a folder, it will shift … somewhere else in the folder instead of where I just clicked. If I am working on a document in inDesign or PhotoShop it will do the same - the cursor and screen drift elsewhere to find something it has been amused by. Sometimes it is a word, or a file, but often it is off the pastboard and on the etherial pasteboard on which the pages sit. Or if I'm zoomed in on an image, it moves to somewhere else.
    I use a mouse and keyboard, both Apple wireless. I do not use a trackpad, but have a tablet/stylus I am afraid to put into the mix until this crap is stopped.
    Fifth, SAVE AS… is gone. You must unlock, duplicate and edit the duplicate … and must rename it in Finder, or use EXPORT to save as the same format under a new name. SAVE AS… worked. Not broke, why fix it?
    Personal Comment: The problems seem to be the triumph of coked up software engineers ooohing and aaahing over "Wouldn't it be cool if..."   Cool, if they were Microsoft, and required everyone change how they have worked on Macs for the past (almost) three decades. Triumph of brainstorming over functionality.
    Sixth, I can't use Cocoa Booklet, but that really started in OSX 10.6 "Snow Leopard". Most of my X11/Cocoa programs stopped worked about that time. Apple is no longer supporting "open source"?
    But Wait! There's More...
    Seventh, Tonight, trying to download a 1.7 gig archive onto a disk where 280 Gigs were supposedly free, it would not download because, according to the wonderful new Safari and the wonderful new Lion, there is not enough disk space to download a 1.7 gig file in a mere 280 Gigs of free space.
    I might be able to move Snow Leopard onto the iMac, but my deciding factor was that Apple, in its wisdom, decided to make iBook Author unable to run under Snow Leopard. So moving to Snow Leopard means I have lost the ONLY benefit I get from the new computer and the new system.
    This really stinks.
    http://www.apple.com/feedback/macosx.html

  • Weird problem when syncing with iTunes

    Something strange is happening today while trying to charge/sync my 3G with iTunes.
    About halfway through the sync a box comes up saying "processing 20090705 184634 2.mp4"...when that comes up it basically locks up iTunes and I have to shut the program down. It's done this the last 3 or 4 times I've tried to sync...even after total system reboots. Any idea what is causing this/

    I had done all of that to no avail.  I did call Apple Tech Support and after he suggested I try a USB port in the rear of the Win 7 computer, things starting working again.  I had tried switching the USB port at the front of the machine but that had not helped.  Everything is good to go again.  thanks for  your reply

  • Please help with a problem I have with Re-Exporting Video

    Hi to all Encore and Premiere users.
    I will try to make this as clear as possible.
    I have made 2 very short movies in Premiere and exported them for use in Encore.
    I have made a project in Encore using both of these short movies on 2 timelines and all is fine.
    I then decided I would like a 30sec introduction to one of them which I have made using After Effects.
    I have imported this short introduction into Premiere and placed it at the beginning of one of the Movies, checked all is well and then Re-Exported it over writing the original file, and all appeared to be OK
    Moving back into Encore I opened the project and previewed this movie but found that 30sec from the end it stopped, checking the end of the timeline I found that approx 30sec of video and audio was missing.
    Encore would not allow me to delete the movie, or import it as a new asset.
    I went back into Premiere and Exported again and every frame appeared to go through OK.
    But found the same result in Encore.
    Can anyone help me with ideas of what could have gone wrong?
    Best Regards
    Allan

    Hi Jo
    I tried that, result was No Video, only Audio until I paused then a still picture appeared. Start to play again, No Video,only Audio, very strange.
    In the end I had to delete everything with regard to this clip, and save project.
    Opened project again and imported Audio and Video, set up new time line and all is working fine now.
    On refection it would appear that the 30sec into I introduced at the beginning of the film knocked of 30sec at the end of the Video for reasons which are totally unknown to me.
    All is well now and thank you for your help.
    Best Regards
    Allan

  • TS1814 Does anyone know how to sort out an a problem i have with updating my iPhone "an unknown error occurred (1602) can anyone help?

    I have an error message on my laptop which says " Unknown error occured (1602)" anyone know how to get past this?

    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here.

  • How do I solve this problem I have with Itunes?

    Suddenly a good chunk of my itunes music library can't be found.  The songs are on my ipod but itunes says it can't find them on my computer.  Luckily I had a backup of most on an external drive but I had move these individually back to my itunes library. 
    How can I prevent this from happening again in the future?
    Thanks for helping!

    Connect a memory stick and assign the drive letter G: to it, or use this method.
    Open a Windows command prompt, e.g. Hit Start > Run, type in CMD and press OK.
    Type in SUBST G: C:\<enter>
    This will map G: to C: until the machine is restarted or you enter SUBST G: /D at the command prompt.
    tt2

  • Problem in dealing with special-character filename

    Hi,
    I am facing a weird problem while dealing with a file which has a special character in its name. That character is the big-hyphen, i.e. '–' (not the normal hyphen we can type from keyboard), you would have seen this character in MS Word.
    My java program is running on HP-UX OS, and its basically trying to copy this file to a Windows target system through socket. But while executing it, I am getting Broken Pipe Exception.
    I am applying UTF-8 encoding while running my program (by specifying the argument "-Dfile.encoding=UTF-8" in the java process), and I am also confirming that the file-encoding is being applied to UTF-8 properly by putting a debug in the beginning of the program. My understanding is UTF-8 supports all the characters exist in this world.
    Any suggestion / pointers would be really appreciated.
    Thanks,
    Rajiv

    Fine..... but is there any way to know which encoding has been applied on it ..
    Let's say if you create any file on unix-based system in any application, which encoding gets applied there by default ?
    This file is basically nothing but an html page created using 'Save As' from the browser.
    The person who has created the file is a non-technical .. and won't know much about this all stuff... encoding etc.

  • I have been trying to find a way of contacting you by e-mail so that I can write to you about a problem I have. Could you please give me an e-mail address to use for problems or refunds from i-tunes? Many thanks

    I have been trying to find an e-mail address for Apple problems that are not on your list of questions usually asked. Could you therefore let me have an e-mail address for being able to sort a problem I have with i-tunes purchasing for audo books as I by mistake downloaded a book instead of an audio book and would like a refund for The One I Love by Paul Pilkington so that I can download the audio book. This is the first time that I have used this facility and I obviously got confused with books and audio books, I need audio books because I have an I Pod Nano and I like to listen to my books on this. Look forward to your reply.
    Regards, Sandra

    Sandra,
    See this Apple support document for information on reporting an issue with your iTunes purchase.
    http://support.apple.com/kb/HT1933
    B-rock

  • Problem sending mail with roaming profile (Outlook 2010)

    Hello all,
    I hope you will be able to help me.
    Here's the problem I have with Outlook 2010:
    When a user opens a roaming profile on another
    PC or on his new
    PC, everything works perfectly except
    Outlook.
    Outlook opens normally with all email
    accounts, you can even see the email, no worries
    about that.
    But when we want to send an email, it
    gets stuck in the outbox.
    Some additional info:
         - In the account settings,
    you can test the account settings, it says
    that everything is working (sending and receiving)
         - The only way I found today to
    operate the account is to
    completely remove and reconfigure
         - There is an error message
    that says I can not write on the file C:\Users\UserName\AppData\Roaming\Microsoft\Outlook\accountName.pst
         - The problem occurs with
    all users, not just one in particular
         - The accounts are IMAP
         - Incoming emails work
    Thank you for your help.

    Hi Tim,
    This is a known issue in Outlook, we don't recommend using IMAP account with roaming profile.
    For more information, you might want to read this similar thread:
    https://social.technet.microsoft.com/Forums/office/en-US/f9b1bf03-d468-46e8-b40d-76fac11fd66c/outlook-2010-creates-new-imap-pst-files-at-random-and-cannot-send-mail-roaming-profiles-and-imap?forum=outlook
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Memory problem with JTextFields

    Hello,
    I have a wierd problem with JTextField and the memory.
    I need to fill a JPanel with different Components (including JTextFields), then do some calculation, remove the Components and filling the JPanel again.
    When i so this too often my i get an OutOfMemory Exception. I narrowed to problem down and wrote a small sample program to demonstrate the problem.
    When i call the method doIT (where the Panel is repeatedly filled) from the main-function everything works fine, but when it is called as a result from the GUI-Button-Event the memory for the JTextFields is not freed (even the call of the Garbage collector changes nothing)
    When i only use JButtons to fill the Panel everything works fine.
    Has anyone an idea why this problem occurs and how i can work around it?
    [Edit] I tested it whith java 1.5.0_06, 1.5.0_11, 1.6.0_02
    Thanks
    Marc
    import java.awt.Frame;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.lang.management.ManagementFactory;
    import java.lang.management.MemoryUsage;
    import javax.swing.JButton;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class MemoryTestDLG extends JDialog {
         public MemoryTestDLG(Frame owner) {
              // create Dialog with one Button that calls the testMethod
              super(owner);
              JButton b = new JButton("doIT ...");
              b.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        doIT();
                        setVisible(false);
              getContentPane().add(b);
              pack();
         public void doIT() {
              // Testmethod that fills a JPanel 20 times with Components and clears it
              // again
              JPanel p = new JPanel();
              long memUse1 = 0;
              long memUse2 = 0;
              long memUseTemp = 0;
              for (int count = 0; count < 20; count++) {
                   // Clear the panel
                   p.removeAll();
                   // Get memory usage before the task
                   Runtime.getRuntime().gc();
                   memUse1 = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage()
                             .getUsed();
                   // Fill Panel with components
                   for (int i = 0; i < 200; i++) {
                        // The Buttons seem to be released without any problem
                        p.add(new JButton("test" + Math.random()));
                        // JTextFields are not released when used from the dialog.
                        p.add(new JTextField("test " + Math.random()));
                   // get memory usage after the task
                   Runtime.getRuntime().gc();
                   memUseTemp = memUse2;
                   memUse2 = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage()
                             .getUsed();
                   // print Memory results
                   System.out.println("Memory Usage: " + f(memUse1) + "   ->"
                             + f(memUse2) + " [ Used:" + f(memUse2 - memUse1)
                             + " ] [ Freed: " + f(memUseTemp - memUse1) + "]");
         public String f(long m) // formats the output
              String s = "" + m;
              while (s.length() < 8)
                   s = " " + s;
              return s;
         public static void main(String[] args) {
              MemoryTestDLG d = new MemoryTestDLG(null);
              System.out
                        .println("------------------ Direct Call (all is OK) -------------------");
              d.doIT(); // Memory is freed with every call to JPanel.removeAll()
              System.out
                        .println("------------ Call from Dialog (memory is not freed) -------------");
              // The Memory keeps blocked
              d.setModal(true);
              d.setVisible(true);
              System.exit(0);
    }Message was edited by:
    marcvomorc

    Thank you for your answer,
    In this sample the programm does not run out of memory. But when you look at the output you see, that in the first run (direct call) the memory ist freed immediately when tha panel is cleared but in the second run (from the Button) the memory usage is getting bigger and bigger. Wenn you change the number of components to 2000 (4000)
    // Fill Panel with components
            for (int i = 0; i < 2000; i++) {
                // The Buttons seem to be released without any problem
    //... ...and use the default memory settings (69mb heap) the programm runns out of memory.
    I get the following output:
    ------------------ Direct Call (all is OK) -------------------
    Memory Usage:   445504   -> 8121016 [ Used: 7675512 ] [ Freed:  -445504]
    Memory Usage:   617352   -> 8114336 [ Used: 7496984 ] [ Freed:  7503664]
    Memory Usage:   810488   -> 8491768 [ Used: 7681280 ] [ Freed:  7303848]
    Memory Usage:   943704   -> 8114976 [ Used: 7171272 ] [ Freed:  7548064]
    Memory Usage:   836760   -> 8505072 [ Used: 7668312 ] [ Freed:  7278216]
    Memory Usage:   978352   -> 8114784 [ Used: 7136432 ] [ Freed:  7526720]
    Memory Usage:   835552   -> 8498288 [ Used: 7662736 ] [ Freed:  7279232]
    Memory Usage:   977096   -> 8114312 [ Used: 7137216 ] [ Freed:  7521192]
    Memory Usage:   835640   -> 8498376 [ Used: 7662736 ] [ Freed:  7278672]
    Memory Usage:   977296   -> 8115000 [ Used: 7137704 ] [ Freed:  7521080]
    Memory Usage:   835392   -> 8504872 [ Used: 7669480 ] [ Freed:  7279608]
    Memory Usage:   976968   -> 8115192 [ Used: 7138224 ] [ Freed:  7527904]
    Memory Usage:   836224   -> 8501624 [ Used: 7665400 ] [ Freed:  7278968]
    Memory Usage:   977840   -> 8115120 [ Used: 7137280 ] [ Freed:  7523784]
    Memory Usage:   835664   -> 8498256 [ Used: 7662592 ] [ Freed:  7279456]
    Memory Usage:   976856   -> 8114384 [ Used: 7137528 ] [ Freed:  7521400]
    Memory Usage:   835784   -> 8502848 [ Used: 7667064 ] [ Freed:  7278600]
    Memory Usage:   977360   -> 8114592 [ Used: 7137232 ] [ Freed:  7525488]
    Memory Usage:   835496   -> 8502720 [ Used: 7667224 ] [ Freed:  7279096]
    Memory Usage:   976440   -> 8115128 [ Used: 7138688 ] [ Freed:  7526280]
    ------------ Call from Dialog (memory is not freed) -------------
    Memory Usage:   866504   -> 8784320 [ Used: 7917816 ] [ Freed:  -866504]
    Memory Usage:  7480760   ->14631152 [ Used: 7150392 ] [ Freed:  1303560]
    Memory Usage: 14245264   ->22127104 [ Used: 7881840 ] [ Freed:   385888]
    Memory Usage: 19302896   ->27190744 [ Used: 7887848 ] [ Freed:  2824208]
    Memory Usage: 27190744   ->35073944 [ Used: 7883200 ] [ Freed:        0]
    Memory Usage: 31856624   ->39740176 [ Used: 7883552 ] [ Freed:  3217320]
    Memory Usage: 39740176   ->47623040 [ Used: 7882864 ] [ Freed:        0]
    Memory Usage: 44410480   ->52293864 [ Used: 7883384 ] [ Freed:  3212560]
    Memory Usage: 52293864   ->58569304 [ Used: 6275440 ] [ Freed:        0]
    Memory Usage: 58569304   ->64846400 [ Used: 6277096 ] [ Freed:        0]
    Exception occurred during event dispatching:
    java.lang.OutOfMemoryError: Java heap spacewhen I outcomment the adding of the JButtons the amount of freed memory is 0 in the second run. So my guess is, that there is a problem with freeing the memory for the JTextFields.
    Memory Usage:   447832   -> 6509960 [ Used: 6062128 ] [ Freed:  6332768]
    Memory Usage:   722776   -> 6785632 [ Used: 6062856 ] [ Freed:  5787184]
    ------------ Call from Dialog (memory is not freed) -------------
    Memory Usage:   468880   -> 6770240 [ Used: 6301360 ] [ Freed:  -468880]
    Memory Usage:  6770240   ->13016264 [ Used: 6246024 ] [ Freed:        0]
    Memory Usage: 13016264   ->19297080 [ Used: 6280816 ] [ Freed:        0]
    Memory Usage: 19297080   ->25570152 [ Used: 6273072 ] [ Freed:        0]
    Memory Usage: 25570152   ->31849160 [ Used: 6279008 ] [ Freed:        0]
    Memory Usage: 31849160   ->38124368 [ Used: 6275208 ] [ Freed:        0]
    Memory Usage: 38124368   ->44402072 [ Used: 6277704 ] [ Freed:        0]
    Memory Usage: 44402072   ->50677928 [ Used: 6275856 ] [ Freed:        0]
    Memory Usage: 50677928   ->56955880 [ Used: 6277952 ] [ Freed:        0]
    Memory Usage: 56955880   ->63232152 [ Used: 6276272 ] [ Freed:        0]
    Exception occurred during event dispatching:
    java.lang.OutOfMemoryError: Java heap spaceAdditionally the JPanel I am using is not displayed on the screen. It stays invisible the whole time, but i cannot work around that, because the calculation is depending on the values being in components on the JPanel)
    Marc

  • Apple Banned me, because of a very weird problem with my "Factory Unlocked"

    Hi Everybody! Im having a very weird problem with my unlocked iphone 4.
    First of all, i would like to apologize because of my english, is not very good. My native language is Spanish.
    Well.. Im from Mexico, and here we can buy the iphone Unlocked on the Apple Online Store.
    Here's my problem. Apple has exchanged my iphone 3 times.
    I returned the iphone the first time because the screen was totally yellowish, other than that everything was working great!, that was by the end of September.
    On October 20th, i recieved my second iphone, and then a bigger problem started .
    Before i continue, let me give you this information: here in Mexico we have basically 3 cell phone companies
    1.- Telcel
    2.- Movistar
    3.- Unefon
    OK, now on october 20th, i recieved my second iphone, and then procced to activate via itunes using my UNEFON sim card (microsim).
    And every time i tried to activate it, only got this message onscreen:
    http://i148.photobucket.com/albums/s2/jorgelomeli/Screenshot2010-10-29at24915PM. png
    I though something was wrong with my brand new factory unlocked iphone 4.
    I have 4 more simcards from my brothers (they all had iphone 4 too)
    I tried telcel sim card, and i could activate my iphone. Then i insterted the Movistar microsim, and it worked too!! But then when i put the Unefon sim, the itunes logo inmediatly appears on the screen asking to activate on itunes, and when i tried that, the only response i got was the image above saying " The Simcard inserted on this iphone does not appear to be supported"
    Weird thing here is, that, when i put my Unefon sim card on my brothers iphone 4, it worked great! on all of them, internet 3g, phone, wireless , evrything!
    I called apple support, and they exchange the iphone for another one.
    I recieved the third iphone on October 29. Last friday. and guess what? SAME PROBLEM! different serial number, same week production (week 42) but exactly the same message on itunes.
    Very, very frustrated, i called apple again, and after 1 hour with thechnical support, they told me " We are sorry, but we can only offer you, your money back, NO MORE EXCHANGES FOR YOU"
    I said why?... i dont want my money back! i want an UNLOCKED iphone!, but they refuse to give me another iphone.
    When i asked techincal support, why my unefon sim card worked great on all three of my brothers iphone but not on mine, he just told me, "I really dont know, i guess they just got lucky" ****, this answer put all my trust i had on apple products for years, right on the garbage.
    Since they refused to give me another iphone, i accepted my money back, and inmediatly after i finished the call, i asked my brother to buy me one more time an iphone 4 using his name, and his credit card. Now i have to wait until November 8-12 to recieve my new iphone, hoping this time i get a REAL UNLOCKED iphone, and not a partially unlocked iphone.
    btw. i even went to Unefon costumer service and bought a new prepiad line, with a new microsim, just to be 100% sure that this problem is not because of the sim. And again didnt worked on my iphone, but it worked on any of my brothers iphone4.
    Serial numbers of the 3 iphones:
    79039C0U* (this one worked great with Unefon, only problem was yellow screen)
    85042GR4*
    81042FJB*
    What do you suggest me? any info would be really aprecciated
    FYI i also restore 4 times the last iphone and nothing seemed to work, i use 3 different computers, Macbook Pro, iMac, and an Hp with Windows 7, and the same message on all three computers.
    Wierd thing also, one of my brothers bougth an iphone 4 this last week too, but he bought the 16Gb not the 32Gb. His iphone production week is 42 also! and when i put my Unefon sim in his iphone works great!
    I dont know what else i can do, I just need to have faith that my new iphone coming this november will be real unlocked, but what if i'll recieve an iphone and then the same problem?? time for android? just kidding really guys, what can i do? anyone with similar problem like me? i dont wanna use Telcel or Movistar, i wanna use Unefon, and thats why i bought an Unlocked iphone
    btw: jailbreak is not a solution for me, because i always like to use legal software on all my apple products, and because of the warranty.

    According to http://support.apple.com/kb/HT1937, there are two official carriers in Mexico (Movistar and Telcel) and neither carrier offers an unlocked phone.

Maybe you are looking for

  • ARC0: Unable to archive

    Hi, my database stay in mount but can not be open. In alert log I have : Creating archive destination LOG_ARCHIVE_DEST_1: '/backup/impcnp/archive/1_417704.dbf' Wed Aug 29 12:41:31 2007 ARC0: Evaluating archive log 6 thread 1 sequence 417703 ARC0: Una

  • Hi this pandu can i know what is the diff between pnp &pnpce ldb

    hi,    this pandu can i know what is the diff between pnp &pnpce logical database. thanks and regards, pandu.

  • From Premiere - Render and Replace ??

    I use Soundbooth to modify my audio track from the timeline. When I'm in Soundbooth I save and return to AP but I can not here the change. Is there something I am doing wrong ? ?

  • Archlinux as a server

    I've been playing with Archlinux on a spare server box for a couple of days and it looks pretty good, but I'm wondering how many others use Arch for serving (Samba, Apache, Postfix, Postgresql, etc.) Any ideas on Arch vs other Linuxes or BSDs or Sola

  • How to automate check of xlScheduler status in 11g

    All, I am trying to automate checking the status of the xlScheduler in OIM 11g. I know I can manually check the status but I want to automatically check the staus and email if not running. Does anyone have a way of doing this? Thanks, Chris