Very funny problem, with Swing, please tell me WHY

Hi, guys ,
It seems very funny to me when developog a chat application.
when every time, user enter the text and hit the Enter (through a listener), the text shows up at the screen, and if more texts than the screen, the screen will always focus at the bottom line.
Hwoever, if you do the same but not via a actionPerformed method,(i.e. a for loop in the main metho) the screen will always focus on the first line of the jTextPane.
have a try:
this code will make the focus on the first line, but if you uncomment the thing in the actionPerformed method, and comment one in the main method, if will be totally different
Please tell me WHY
import javax.swing.event.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.text.*;
public class Pane extends JFrame {
JTextPane txtOutput ;
StyledDocument document;
Style normalStyle;
JTextField jf;
public Pane()
Container cont = getContentPane();
cont.setLayout(new BorderLayout());
txtOutput = new JTextPane();
jf = new JTextField(80);
document = txtOutput.getStyledDocument();
// Define style for outputStyle
normalStyle = document.addStyle("Normal", null);
StyleConstants.setItalic(normalStyle, false);
StyleConstants.setFontFamily(normalStyle, "Courier");
StyleConstants.setFontSize(normalStyle, 14);
StyleConstants.setForeground(normalStyle, Color.red);
// Now to insert string at end
txtOutput.setEditable(false);
cont.add(new JScrollPane(txtOutput),BorderLayout.CENTER);
cont.add(jf,BorderLayout.SOUTH);
cont.setVisible(true);
cont.setBounds(100,300,400,500);
jf.addActionListener(
new ActionListener() {
public void actionPerformed (ActionEvent event)
//int i = 50;
//while(i>0){
//setText1("gegegeg");
//i--;
public void setText1(String event) {
String s= event;
//s = jf.getText();
try{
document.insertString(document.getLength(), s+"\n\n" , normalStyle );
catch (Exception e) {
System.out.println("askdf "+e);
public static void main(String args[])
Pane p = new Pane();
p.show();
System.out.println("I am finish");
int i = 50;
while(i>0){
setText1("gegegeg");
i--;
}

I dunno why, why is it important? if you want it to focus on the last line, just always put a code that makes it focus on the last line, and that's it

Similar Messages

  • Newby has problems with swing - please help

    hi guys I'm sure this is easy for someone. My Program myTimeCalc.java fails to run with a nullpointerexception. I realise I am very new to this so if I'm doing something really stupid then hey its about time I learnt. So thanks in advance and any help greatly appreciated.
    import java.awt.*;
    import javax.swing.*;
    public class myTimeCalc extends JFrame {
        public myTimeCalc() {
            super("Time Calc");
            setSize(400,400);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            timeField time1 =new timeField();
            timeField time2 =new timeField();
            JPanel panel = new JPanel();
            panel.add(time1);
            panel.add(time2);
            add(panel);
            setVisible(true);
        } // myTimeCalc
        public class timeField extends JPanel {
            public int hours;
            public int mins;
            public hoursField txtHours;
            public minsField txtMins;
            public JLabel lab;
            public timeField() {
                hoursField txtHours = new hoursField();
                minsField txtMins= new minsField();
                JLabel lab = new JLabel(":");
                //txtHours.setText("0");
                //txtMins.setText("0");
                setTime(0,0);
                add(txtHours);
                add(lab);
                add(txtMins);
            } // timeField
            public void setTime(int inHours, int inMins) {
                hours = inHours;
                mins = inMins;
                txtHours.setText("" + inHours );
                txtMins.setText("" + inMins);
            public class hoursField extends JTextField {
                public hoursField() {
                    super(4);
            } // hoursField
            public class minsField extends JTextField {
                public minsField() {
                    super(2);
            } // minsField
        } // timeField
        public static void main(String[] args) {
            myTimeCalc mtc = new myTimeCalc();
    } // myTimeCalc

    Hi Phill.,
    I have altered your code. Just a little bit. take a look.
    Please do changes accordingly. And better use NetBeans IDE for developing a swing application.
    -sps. :)
    import java.awt.*;
    import javax.swing.*;
    public class myTimeCalc extends JFrame
         private JPanel panel;
        public myTimeCalc()
            //super("Time Calc");
            initComponents();
        } // myTimeCalc
        private void initComponents()
            setSize(400,400);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            timeField time1 =new timeField();
            timeField time2 =new timeField();
            panel = new JPanel();
            panel.add(time1);
            panel.add(time2);
            getContentPane().add(panel);
            pack();
            setVisible(true);
        public class timeField extends JPanel
            public int hours;
            public int mins;
            public hoursField txtHours;
            public minsField txtMins;
            public JLabel lab;
            public timeField()
                txtHours = new hoursField();   // your code is hoursField txtHours = new hoursField();  there is no need for hoursField in front of the variable txtHours coz you have already declared this variable is of type hoursField.
                txtMins= new minsField();
                lab = new JLabel(":");
                //txtHours.setText("0");
                //txtMins.setText("0");
                setTime(0,0);
                add(txtHours);
                add(lab);
                add(txtMins);
            } // timeField
            public void setTime(int inHours, int inMins)
                hours = inHours;
                mins = inMins;
                txtHours.setText("" + inHours );
                txtMins.setText("" + inMins);
            public class hoursField extends JTextField
                public hoursField()
                    super(4);
            } // hoursField
            public class minsField extends JTextField
                public minsField()
                    super(2);
            } // minsField
        } // timeField
        public static void main(String[] args)
            new myTimeCalc().show();
    } // myTimeCalc

  • Problems with swing, please help!!!

    im trying to display an image made up of a set of squares.
    i have a JFrame class which has the main method placing a JComponent into its Container using the getContentPane().add method.
    the JComponent class sets up the image using the paintComponent() method
    When i try to run the program all i get is a grey frame.
    Ive looked at other threads in this forum to fix my problem but it doesnt seem to fix it.
    any help is much appreciated.

    import java.awt.*;
    import java.awt.event.*;
    import java.util.EventListener;
    import javax.swing.*;
    import java.applet.*;
    public class Display extends JFrame
         protected DisCanvas canvas;
         protected EventListener listener;
         protected boolean isApplet = false;
         public Display(boolean isApplet)
              this.isApplet = isApplet;
              //setLayout(new BorderLayout());
         //     add(makeCanvas(), BorderLayout.CENTER);
         public Display()
              //this(true);
    canvas = new DisCanvas();
    this.getContentPane().setLayout(new BorderLayout());
    this.getContentPane().add(canvas, BorderLayout.CENTER);
    this.addWindowListener(new AppCloser());
    this.setSize(300, 300);
    this.setVisible(true);
    this.repaint();
    public static void main(String[] args)
    new Display();
    static class AppCloser extends WindowAdapter
              public void windowClosing(WindowEvent e)
                   System.exit(0);
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.image.*;
    public class DisCanvas extends java.awt.Canvas
    Patch[] patchArray = new Patch[100];
    int width = 200;
    int height = 300;
    BufferedImage image;
    Graphics2D g2D;
    public DisCanvas()
    patchArray[0] = new Patch(0, 0, 20, 30); patchArray[10] = new Patch(0, 30, 20, 30);
    patchArray[1] = new Patch(20, 0, 20, 30); patchArray[11] = new Patch(20, 30, 20, 30);
    patchArray[2] = new Patch(40, 0, 20, 30); patchArray[12] = new Patch(40, 30, 20, 30);
    patchArray[3] = new Patch(60, 0, 20, 30); patchArray[13] = new Patch(60, 30, 20, 30);
    patchArray[4] = new Patch(80, 0, 20, 30); patchArray[14] = new Patch(80, 30, 20, 30);
    patchArray[5] = new Patch(100, 0, 20, 30); patchArray[15] = new Patch(100, 30, 20, 30);
    patchArray[6] = new Patch(120, 0, 20, 30); patchArray[16] = new Patch(120, 30, 20, 30);
    patchArray[7] = new Patch(140, 0, 20, 30); patchArray[17] = new Patch(140, 30, 20, 30);
    patchArray[8] = new Patch(160, 0, 20, 30); patchArray[18] = new Patch(160, 30, 20, 30);
    patchArray[9] = new Patch(180, 0, 20, 30); patchArray[19] = new Patch(180, 30, 20, 30);
    patchArray[20] = new Patch(0, 60, 20, 30); patchArray[30] = new Patch(0, 90, 20, 30);
    patchArray[21] = new Patch(20, 60, 20, 30); patchArray[31] = new Patch(20, 90, 20, 30);
    patchArray[22] = new Patch(40, 60, 20, 30); patchArray[32] = new Patch(40, 90, 20, 30);
    patchArray[23] = new Patch(60, 60, 20, 30); patchArray[33] = new Patch(60, 90, 20, 30);
    patchArray[24] = new Patch(80, 60, 20, 30); patchArray[34] = new Patch(80, 90, 20, 30);
    patchArray[25] = new Patch(100, 60, 20, 30); patchArray[35] = new Patch(100, 90, 20, 30);
    patchArray[26] = new Patch(120, 60, 20, 30); patchArray[36] = new Patch(120, 90, 20, 30);
    patchArray[27] = new Patch(140, 60, 20, 30); patchArray[37] = new Patch(140, 90, 20, 30);
    patchArray[28] = new Patch(160, 60, 20, 30); patchArray[38] = new Patch(160, 90, 20, 30);
    patchArray[29] = new Patch(180, 60, 20, 30); patchArray[39] = new Patch(180, 90, 20, 30);
    patchArray[40] = new Patch(0, 120, 20, 30); patchArray[50] = new Patch(0, 150, 20, 30);
    patchArray[41] = new Patch(20, 120, 20, 30); patchArray[51] = new Patch(20, 150, 20, 30);
    patchArray[42] = new Patch(40, 120, 20, 30); patchArray[52] = new Patch(40, 150, 20, 30);
    patchArray[43] = new Patch(60, 120, 20, 30); patchArray[53] = new Patch(60, 150, 20, 30);
    patchArray[44] = new Patch(80, 120, 20, 30); patchArray[54] = new Patch(80, 150, 20, 30);
    patchArray[45] = new Patch(100, 120, 20, 30); patchArray[55] = new Patch(100, 150, 20, 30);
    patchArray[46] = new Patch(120, 120, 20, 30); patchArray[56] = new Patch(120, 150, 20, 30);
    patchArray[47] = new Patch(140, 120, 20, 30); patchArray[57] = new Patch(140, 150, 20, 30);
    patchArray[48] = new Patch(160, 120, 20, 30); patchArray[58] = new Patch(160, 150, 20, 30);
    patchArray[49] = new Patch(180, 120, 20, 30); patchArray[59] = new Patch(180, 150, 20, 30);
    patchArray[60] = new Patch(0, 180, 20, 30); patchArray[70] = new Patch(0, 210, 20, 30);
    patchArray[61] = new Patch(20, 180, 20, 30); patchArray[71] = new Patch(20, 210, 20, 30);
    patchArray[62] = new Patch(40, 180, 20, 30); patchArray[72] = new Patch(40, 210, 20, 30);
    patchArray[63] = new Patch(60, 180, 20, 30); patchArray[73] = new Patch(60, 210, 20, 30);
    patchArray[64] = new Patch(80, 180, 20, 30); patchArray[74] = new Patch(80, 210, 20, 30);
    patchArray[65] = new Patch(100, 180, 20, 30); patchArray[75] = new Patch(100, 210, 20, 30);
    patchArray[66] = new Patch(120, 180, 20, 30); patchArray[76] = new Patch(120, 210, 20, 30);
    patchArray[67] = new Patch(140, 180, 20, 30); patchArray[77] = new Patch(140, 210, 20, 30);
    patchArray[68] = new Patch(160, 180, 20, 30); patchArray[78] = new Patch(160, 210, 20, 30);
    patchArray[69] = new Patch(180, 180, 20, 30); patchArray[79] = new Patch(180, 210, 20, 30);
    patchArray[80] = new Patch(0, 240, 20, 30); patchArray[90] = new Patch(0, 270, 20, 30);
    patchArray[81] = new Patch(20, 240, 20, 30); patchArray[91] = new Patch(20, 270, 20, 30);
    patchArray[82] = new Patch(40, 240, 20, 30); patchArray[92] = new Patch(40, 270, 20, 30);
    patchArray[83] = new Patch(60, 240, 20, 30); patchArray[93] = new Patch(60, 270, 20, 30);
    patchArray[84] = new Patch(80, 240, 20, 30); patchArray[94] = new Patch(80, 270, 20, 30);
    patchArray[85] = new Patch(100, 240, 20, 30); patchArray[95] = new Patch(100, 270, 20, 30);
    patchArray[86] = new Patch(120, 240, 20, 30); patchArray[96] = new Patch(120, 270, 20, 30);
    patchArray[87] = new Patch(140, 240, 20, 30); patchArray[97] = new Patch(140, 270, 20, 30);
    patchArray[88] = new Patch(160, 240, 20, 30); patchArray[98] = new Patch(160, 270, 20, 30);
    patchArray[89] = new Patch(180, 240, 20, 30); patchArray[99] = new Patch(180, 270, 20, 30);
    image = new BufferedImage(width, height,BufferedImage.TYPE_INT_ARGB);
    Graphics2D g2D = image.createGraphics();
    public void paint/*Component*/(Graphics g)
    g = (Graphics2D) g2D;
    super.paint/*Component*/(g);
    for (int i = 0; i == 99; i++)
    //for (int s = 0; s > 5; s++)
    // Color[] colours = new Color[6];
    // colours[0] = Color.blue;
    // colours[1] = Color.red;
    // colours[2] = Color.green;
    // colours[3] = Color.orange;
    // colours[4] = Color.black;
    // colours[5] = Color.white;
    // g2D.setColor(colours[s]);
    g2D.setColor(Color.red);
    g2D.fillRect(patchArray.getX(), patchArray[i].getY(),
    patchArray[i].getWidth(), patchArray[i].getHeight());
    g2D.drawImage(image,0, 0, this);

  • I have a problem with FF4, please tell me how to fix it.

    AdapterDeviceID: 29c2
    AdapterVendorID: 8086
    Add-ons: [email protected]:1.0,[email protected]:1.5.7,{a0d7ccb3-214d-498b-b4aa-0e8fda9a7bf7}:20110323,[email protected]:12.0.0.374,[email protected]:7.3.1,{CAFEEFAC-0016-0000-0022-ABCDEFFEDCBA}:6.0.22,{CAFEEFAC-0016-0000-0021-ABCDEFFEDCBA}:6.0.21,[email protected]:12.0.0.374,[email protected]:12.0.0.374,{972ce4c6-7e08-4474-a285-3208198ce6fd}:4.0.1
    AvailableVirtualMemory: 1911812096
    BuildID: 20110413222027
    CrashTime: 1308972738
    EMCheckCompatibility: true
    Email: [email protected]
    FramePoisonBase: 00000000f0de0000
    FramePoisonSize: 65536
    InstallTime: 1304740794
    Notes: AdapterVendorID: 8086, AdapterDeviceID: 29c2, AdapterDriverVersion: 6.14.10.4926
    D3D10 Layers? D3D10 Layers-
    D3D9 Layers? D3D9 Layers-
    ProductName: Firefox
    ReleaseChannel: release
    SecondsSinceLastCrash: 3304
    StartupTime: 1308972585
    SystemMemoryUsePercentage: 58
    Theme: classic/1.0
    Throttleable: 1
    TotalVirtualMemory: 2147352576
    URL: http://www.kaspersky.com/kaspersky_internet_security
    Vendor: Mozilla
    Version: 4.0.1
    Winsock_LSP: MSAFD Tcpip [TCP/IP] : 2 : 1 :
    MSAFD Tcpip [UDP/IP] : 2 : 2 :
    MSAFD Tcpip [RAW/IP] : 2 : 3 :
    RSVP UDP Service Provider : 6 : 2 :
    RSVP TCP Service Provider : 6 : 1 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{759B8D67-DD50-453B-A5C2-68EBD43E1A09}] SEQPACKET 0 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{759B8D67-DD50-453B-A5C2-68EBD43E1A09}] DATAGRAM 0 : 2 : 2 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{05A9525B-9FFE-4ED4-A93E-AA7F0DC57316}] SEQPACKET 1 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{05A9525B-9FFE-4ED4-A93E-AA7F0DC57316}] DATAGRAM 1 : 2 : 2 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{79BC2254-FD63-4251-A03D-937F96FF7B2A}] SEQPACKET 2 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{79BC2254-FD63-4251-A03D-937F96FF7B2A}] DATAGRAM 2 : 2 : 2 :
    This report also contains technical information about the state of the application when it crashed.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • HT1918 Hello! I Have very much problem with programs App Store! Refund please money too my account!!! Xilisoft dvd maker 7 don't work,Adobe Premiere editor 11 don't work!!! I fear purchase content out of App Store!!!

    Hello! I Have very much problem with contents and programms App Store! Refund please me money to account!
    1.Xilisoft DVD Creator 7 Dont Work
    2.Adobe Premier Editor 11 Dont Work
    I fear purchase yet programms out your App Store!!!!! Realy!!!
    Wery Much ''go begging'' refund money Adobe Premier Editor 11! Best Regrads,Alexandr Cherepennikov! Sorry,wery bad my english!

    We are fellow users here on these forums, you're not talking to iTunes Support (this is the iTunes Store forum), nor Mac App Store Support.
    You've tried deleting and redownloading those programs, and tried contacting their developers ? If you have, and you haven't had a reply, then you can try contacting Mac App Store Supportv via this page : http://www.apple.com/support/mac/app-store/

  • I have very strange problem with Iphone 3gs. Whenever it gets little hot or exposed to 30 degree temperature it losses signals (No service). Whenever it is cooled down the service is back. Please help!

    I have very strange problem with iphone 3gs. Whenever it gets little hot or exposed to 30 degree or above temperature it losses signals (No service). Whenever it is cooled down the service is back. Whenever I am using Skype or playing game for a while it losses carrier signals and wifi. When it is cooled down afer shutting down the carrier signals and wifi are back. It is for sure problem is with heating, but 30 degree tempeature in Oman is normal and some time it goes upto 50 degrees. I have noticed this has started after I started using substandard charger as I lost my original charger of the phone. Please help!! Thanx.

    The specifications define an operating range up to 35 degrees.

  • I have a very big problem with my mac book pro. It continously looses the wifire connection. This happens every 5-10 minutes and is getting to be a very big irritation. I have tested my wifiresignal

    I have a very irritating problem with my MacBook Pro. It keeps loosing the wifi connection - every 5-1o minutes!!!
    I have testet the wifi signal and had my router checked - both are fine.
    Please tell me what I can do :-(
    John

    First you should check on another Wifi to see if it's your Lion machine.
    If it only occurs on your Wifi, then perhaps you have local interference and need to set the router on another channel far from others.
    You can install a free program called KisMAC that you set your Driver Preferences to Apple Airport Extreme Passive Mode, enter your Admin password and monitor your local Wifi signals, see if you cna pin point the cause of your interference or meddler.
    If your not running WPA2 with AES and a 12 plus random character/letter/number password for both Admin and Internet access use only then you should seriously consider doing so.
    http://www.tomshardware.com/reviews/wireless-security-hack,2981-10.html

  • Can someone please tell me why when I order an Itunes app. , do I always get charged twice for the same thing.  It has happened on two different occasions.  Does it have anything to do with having 2 different ipods linked to the same account?

    Can someone please tell me why when  i order an app on my sons ipod, do I get charged twice for it?   When I tried do report a problem with the charge, it said that I can not get a refund on that item.   This is the second time this has happened to me.   Does it have anything to do with having more then one ipod linked to the same account?   Thanks for any help you can give me!!!

    It has nothing to do with have more than one device using that account.
    After you purchase it once, you redownload it on other devices by the following, not like purchasing a new app.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    If you really got charged twice for purchases the same app twice with the same account contact iTunes again by:
    Apple - Support - iTunes - Contact Us
    Make sure that they are really the same app first.

  • I have installed mountain lion on my macbook pro ,but it made my mac very slow. Would someone please tell me how  to uninstall this one and reinstall snow leopard?

    Hello,
    I have installed mountain lion on my macbook pro ,but it made my mac very slow. Would someone please tell me how  to uninstall this one and reinstall snow leopard? I tried to do it by my original CDs but macbook  pro didn't let me to do it.
    Thanks

    It would be easier to just fix whatever is making your machine slow.
    I wrote a little diagnostic program to help show what might be causing these problems. Download EtreCheck from http://www.etresoft.com/download/EtreCheck.zip, run it, and paste the results here.
    Disclaimer: Although EtreCheck is free, there are other links on my site that could give me some form of compensation, financial or otherwise.

  • 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.

  • Very big problem with JSF about FORM and "id=" for HTML form's elements and

    I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
    Suppose you have something like this, to render some datas form a Java Beans :
    <h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
    </h:column>
    </h:dataTable>
    Everything works fine...
    Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
    <td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
    You think you can use the java instructions :
    Enumeration NamesParam = request.getParameterNames();
    while (NomsParam.hasMoreElements()) {
    String NameParam = (String) NamesParam.nextElement();
    out.println("<h4>"++NameParam+ "+</h4>);
    YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
    Edited by: ungars on Jul 18, 2010 12:43 AM
    Edited by: ungars on Jul 18, 2010 12:45 AM

    While I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
    However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
    In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
    "Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
    If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
    https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
    If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
    I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
    Ed

  • When ordering a project I'm getting a message " an error occurred while contacting the Apple online store. Please try again"  Can anyone please tell me why I might be getting this message and how to fix the problem.  Thank you

    When ordering a project I'm getting a message " an error occurred while contacting the Apple online store. Please try again"  Can anyone please tell me why I might be getting this message and how to fix the problem.  Thank you

    I've got the same problem.
    It wasn't the case before the upgrade to v 9.2 (Iphoto 11) yesterday.
    The previous solution preferences - advanced - "select a store" (last option) doesn't solve it anymore.
    Thanks!

  • Funny problem with the mapping

    Dear All,
    I am facing with a funny problem with the mapping.
    I am working on a scenario in which Invoice IDOC created in R/3 will be posted to XI and then in XI, mapping are done to create an XML file out of that IDOC.
    In the Idoc, there is a segment E1EDKA1 which is getting created multiple times for different partners alongwith their details. The fields in E1EDKA1 segment are: PARVW,PARTN LIFNR etc.
    In the output I just want LIFNR number where PARVW = RE or RS.
    I have done the required mapping and when I am testing the mapping its giving me the required results correctly but when I make this scenario live then in real-time, the output XML file has no value for LIFNR.
    Can anybody guide me out why is it happening tht during mapping testing its giving the correct result but at real time the mapping is returing no value.
    Warm Regards,
    N.Jain

    Hi Nishant,
    Are you sure the test data which you are using while testing the mapping in IR and the one which comes when you test real time is the same?
    The data which comes real time. Copy the source payload and then test in mapping. See if you get the right data which you expect. If you do then theres some problem.
    Now also go to the same message and in trace you can find out the GUID of the mapping program which is used.
    Go to RWB - Last button..not sure what the name is .. something similar to Cache.. Find your mapping program and see if the GUID Matches. If the GUID matches then it is okay.
    Also try to do the following..
    Reactive the MM/IM.
    Go to ID. Make some dummy change in Interface determination and then activate it.
    Check the cache notification to make sure if the cache is updated.
    If the above doesnt help you let us know.
    Regards,
    Sumit

  • HT204053 please tell me why i cant sign in to icloud with my apple id and password its driving me mad

    please tell me why i cant sign in to icloud with my apple id and password its driving me mad

    Do you have an iCloud account (did you make one?)

  • Can anyone please tell me why when i put my music on shuffle it only plays a handful (that being 4 or 5)songs then stops even if its in the middle of a song, then wont let me play anything unless i exit Itunes completely and then re-open Itunes????

    Can anyone tell why my Itunes will only play 5 or 6 songs on shuffle then stop even in the middle of a song, and the only way to fix it is to exit Itunes completley and reopen it?????

    This is in regards to a 4th gen 40gb clickwheel ipod.
    Hi, i've also been having a very similar problem with my ipod as well. I find that regardless of which windows-based pc i use (either my xp laptop @ home, or my win2000 desktop @ work) windows and itunes refuses to recognise my ipod. In windows explorer it will show it as a removable drive, but if i click on it, windows freezes. If I try to disconnect it, I cant because windows keeps reporting that 'the device is being used, try disconnecting later' and so then i shut down my laptop to disconnect it safely.
    Lately, like you, i've also noticed that clicking sound it makes. It happens when i connect my ipod to my computer - like the drive inside it is constantly restarting or something, and i get it when i'm playing / charging it in my dock. I've also noticed that when it's playing whilst charging, it just freezes on a song, then skips a couple of songs.
    I've just discovered the disgnostic tools on my ipod, so i think i'll run a couple of tests (ie HDD scan) and depending on the outcome, i'll go visit the apple store.

Maybe you are looking for

  • How to restrict user to enter duplicate items in Purchase Order Lines?

    I have to do form personalization so that user cannot enter duplicate items in the PO. At when-new-item-instance in PO-Approve field, I have created a database function that is taking the count of items and returning the count value. In the condition

  • Customizing Authorization for Controlling

    Hello, Experts,   I need to create a role with authorization for SPRO but only for the Controling branch. How do I do it ? Thank you ! Rami Kleiman - HP

  • Refuses to sync

    Ipod 5th gen Video, Windows XP, above system requirements. When I plug my Ipod into my compy (via usb) the computer recognizes it and iTunes as well. I can freely move music, video, podcasts into it. But if I set it to sync anything, it will display

  • Creating Dynamic Text Field for Flash CS3 in Illustrator CS3

    I've created a series of buttons in an illustration and made them into movie clip symbols in Illustrator. I then created some text fields for the button labels and assigned them as dynamic text in the Flash Text panel in Illustrator. When I import th

  • The system and namespace change option

    Hi Experts, I want to integrate a certain SAP Source System within RSA1. After submitting the correct settings for Background User and RFC connection the process leads me to the Source System where I logon with an User which has authorizations in SM5