Dial with country code as prefix won't work

Hey
The Sony Z1 latest ROM have the issue, it can't dial when the phone number don't have + before the country code.

jackychen wrote:
Hey
The Sony Z1 latest ROM have the issue, it can't dial when the phone number don't have + before the country code.
If you actually use the country code, it has to be prefixed with +  (or two zeros)
If you are calling a number in your home network/country and don't want to use the + sign, then omit the whole country code at all.
It is not possible to call a number along with country code without + or 00 before this code, and this is not some xperia thing, it simply works this way (unless your operator have some different policy but I can only guess about it).
When everything have failed already, try to read the manual.
Kudos mean I am helpful. Am I for you? Then support me back

Similar Messages

  • All my contacts are stored with country code for eg   233 244 123456. Contact names do not appear during incoming calls. Once the country code is removed , names appear. Please help

    All my contacts are stored with country code for eg   +233 244 123456. Contact names do not appear during incoming calls.
    Please help

    http://discussions.apple.com/thread.jspa?threadID=2280669&tstart=0

  • Vertical scrolling with TrackPoint's middle button won't work on MS Word

    Question:
    I have a T42 ThinkPad and the vertical scrolling with TrackPoint's middle button won't work on MS Word and therefore not in my email either. Big pain in butt as I'm so used to using it. Are there any patches that fix that? Any ideas on why it won't work?

    It's really weird. My suggestion would be that you install the most up-to-date driver by direct downloading or via System Update (if you haven't updated the driver).
    Rockwill
    ThinkPad T61p 6459A12

  • Not able to create customer master data with country code US

    Hey All,
    I am not able to create customer master data in the Transaction Code XD01/FD01 with the country code as US.
    The error message for the same is NO JURISDICTION CODE COULD BE DETERMINED. I have checked the tax code settings but could not locate the problem.
    Request you to provide me with a solution.
    Thanks & Regards
    VK

    Hey all,
    I have checked the field in the account group(OBD2) but its in optional status
    and also checked the country settings for US in the transaction code OY17 still the same error message, but when i tried checking the settings for a differnt company code's customer data base i can see that there is a number mentioned in the address tab under tax jurisdiction feild (beside time zone) which is not populating for this company code.
    so, do anyone know where exaclty we mention this number so that it populates in that field of address.
    hope am clear
    hope to receive  a solution
    thanks & regards
    vinila

  • HUB showing contact number with country code and not with its name..blackberry Z10 STL100-2

    I have an issue with Text Messages and call lists, in my blackberry Z10 (STL100-2), which is, If I have not saved my contact numbers without country code, the msg may appear in local formate (w/o country code), and it also appear as International formate (another times), and though the number is same (only saperate is country code) in the hub, it appear as two conversation. for eg: if I sent txt to 9899100 (w/o country code), reply used to come as +960-9899100. or vice-versa.
    So its very difficult. and here i came for help.
    You might know a lot what we do not know as we do know a lot you do not know. Asking is the way to get to know....

    The movies were all on my SD card. They are also not backed up by Link which is why had them synced to my phone as a poor man's backup.
    So either Link did not backup the necessary licensing information in the main memory of my phone, or Link did not synchronize the necessary licensing information off my SD card. Either way I am stuck with 3 movies that I cannot play, because I can no longer find them in the BlackBerry World store to re-dowbload whatever licensing information is needed.
    I even just tried a media restore from Link because it was 138 MB in size (and in don't normally store anything on my phone's main storage), but alas no licensing information was restored.

  • Computer Name prompt with Country Code

    Using SCCM 2012 R2.. 
    Currently we have 21 global sites indicated by a two digit country code, for example United States US, United Kingdom, GB, Spain ES  etc.....
    We are a Dell shop so we want the serial number as well.
    Our end result should look like this. United States Computer
    <CountryCode>-<Serialnumber>
    US-23GHT54 for example.
    What is the best way to have a drop down or prompt for country code in computer name field when a tech starts the OSD process??

    Hi
    You can have a look at two of my blog post. The first one will show you how to enable Powershell support in your boot images:
    http://www.mimercon.dk/da/easyblog/entry/adding-powershell-support-in-configuration-manager-2012-r2-boot-images
    And the second one will guide you through all the step required to implement a Powershell GUI prompting for a Computer Name if the machine is unknown:
    http://www.mimercon.dk/da/easyblog/entry/prompt-for-computer-name-during-configmgr-2012-r2-os-deployment-1
    I know that this is not exactly what you want but you would "only" need to create your own Powershell GUI where you can select the country code and append the serial number to get your computer name generated. And then you could just follow the
    step in the second post and substitue my Prompt-Computer-Name GUI with your own.
    If you know a bit about about Windows Forms and Powershell it is fairly easy to create even though it might be easy for me to say that :)
    If you want I could create a basic GUI for you but you would have to be specific in how you would like it to look and I would need all the country codes you need in the drop-down box. You can find my e-mail at my web site.

  • Same jena code loading ontology won't work in 11.2.0.2 in linux

    Hi,
    The sample code of loading univ-bench.owl ontology into database won't work in oracle 11..2.0.2 in my linux guest system. However, it is working perfectly in oracle 11.2.0.1 in windows environment. The error I got is:
    WARN [main] (SimpleLog.java:93) - Could not set namespace prefix
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    I recreated the table and model a couple of times accordint to a tutorial but it still failed. Is it an incompatibility issue? Thanks a lot.
    Hong

    Hi Zhe,
    The sample code in Example 7-16 Load OWL Ontology and Perform OWLPrime inference doesn't work in 11.2.0.2 in my linux guest system. However, the code for incremental, batch or bulk loading in Example 7-17 Bulk Load OWL Ontology and Perform OWLPrime inference works like charm. The error for runnig the previous one is:
    WARN [main] (SimpleLog.java:93) - Could not set namespace prefix
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1010)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3677)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
         at oracle.spatial.rdf.client.jena.Oracle.executeSQL(Oracle.java:602)
         at oracle.spatial.rdf.client.jena.OraclePrefixMapping.setNamespacePrefix(OraclePrefixMapping.java:202)
         at oracle.spatial.rdf.client.jena.OraclePrefixMapping.setNsPrefix(OraclePrefixMapping.java:222)
         at com.hp.hpl.jena.rdf.arp.JenaHandler.startPrefixMapping(JenaHandler.java:94)
         at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.startPrefixMapping(XMLHandler.java:110)
         at org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:142)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:158)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:145)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:215)
         at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:197)
         at myProject.LoadUniv3.main(LoadUniv3.java:24)
    WARN [main] (SimpleLog.java:93) - Could not set namespace prefix rdf
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1010)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3677)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
         at oracle.spatial.rdf.client.jena.Oracle.executeSQL(Oracle.java:602)
         at oracle.spatial.rdf.client.jena.OraclePrefixMapping.setNamespacePrefix(OraclePrefixMapping.java:202)
         at oracle.spatial.rdf.client.jena.OraclePrefixMapping.setNsPrefix(OraclePrefixMapping.java:222)
         at com.hp.hpl.jena.rdf.arp.JenaHandler.startPrefixMapping(JenaHandler.java:94)
         at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.startPrefixMapping(XMLHandler.java:110)
         at org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:142)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:158)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:145)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:215)
         at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:197)
         at myProject.LoadUniv3.main(LoadUniv3.java:24)
    WARN [main] (SimpleLog.java:93) - Could not set namespace prefix rdfs
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1010)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3677)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
         at oracle.spatial.rdf.client.jena.Oracle.executeSQL(Oracle.java:602)
         at oracle.spatial.rdf.client.jena.OraclePrefixMapping.setNamespacePrefix(OraclePrefixMapping.java:202)
         at oracle.spatial.rdf.client.jena.OraclePrefixMapping.setNsPrefix(OraclePrefixMapping.java:222)
         at com.hp.hpl.jena.rdf.arp.JenaHandler.startPrefixMapping(JenaHandler.java:94)
         at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.startPrefixMapping(XMLHandler.java:110)
         at org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:142)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:158)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:145)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:215)
         at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:197)
         at myProject.LoadUniv3.main(LoadUniv3.java:24)
    WARN [main] (SimpleLog.java:93) - Could not set namespace prefix owl
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1010)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1315)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3677)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
         at oracle.spatial.rdf.client.jena.Oracle.executeSQL(Oracle.java:602)
         at oracle.spatial.rdf.client.jena.OraclePrefixMapping.setNamespacePrefix(OraclePrefixMapping.java:202)
         at oracle.spatial.rdf.client.jena.OraclePrefixMapping.setNsPrefix(OraclePrefixMapping.java:222)
         at com.hp.hpl.jena.rdf.arp.JenaHandler.startPrefixMapping(JenaHandler.java:94)
         at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.startPrefixMapping(XMLHandler.java:110)
         at org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:142)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:158)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:145)
         at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:215)
         at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:197)
         at myProject.LoadUniv3.main(LoadUniv3.java:24)
    Exception in thread "main" java.lang.NoClassDefFoundError: com/hp/hpl/jena/sparql/algebra/opt/Rewrite
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at oracle.spatial.rdf.client.jena.QueryEngineSem.modifyOp(QueryEngineSem.java:179)
         at com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBase.java:104)
         at com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.java:97)
         at oracle.spatial.rdf.client.jena.QueryEngineSem$1.create(QueryEngineSem.java:202)
         at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.java:426)
         at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExecutionBase.java:400)
         at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execResultSet(QueryExecutionBase.java:408)
         at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execSelect(QueryExecutionBase.java:135)
         at myProject.LoadUniv3.main(LoadUniv3.java:37)
    Caused by: java.lang.ClassNotFoundException: com.hp.hpl.jena.sparql.algebra.opt.Rewrite
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         ... 21 more
    Thanks a lot.
    Hong

  • I cleaned my wireless keyboard with windex and now it won't work

    i cleaned my wireless keyboard with a windex wipe and now it won't work - any ideas?

    To clean the keys these work very well....

  • Help!  What is wrong with my code, these rectangles won't draw!!!!!!!!!!!!!

    I get no errors compiling
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    //<applet code="ShapePainter.class" width=500 height=500"></applet>
    public class ShapePainter extends JApplet implements ActionListener{
        pane g;
         //Shape Variables
         static public int squareWidth = 40;
         static public int squareHeight = 40;
         static public int squareStartX = 1;
         static public int squareStartY = 1;
         //Buttons
         JButton drawRects = new JButton("Draw Rectangle Background");
         JButton drawSquares = new JButton("Draw Square Background");
         public JButton black = new JButton("Black");
         JButton blue = new JButton("Blue");
         JButton cyan = new JButton("Cyan");
         JButton darkGray = new JButton("Dark Gray");
         JButton gray = new JButton("Gray");
         JButton green = new JButton("Green");
         JButton lightGray = new JButton("Light Gray");
         JButton magenta = new JButton("Magenta");
         JButton orange = new JButton("Orange");
         JButton pink = new JButton("Pink");
         JButton red = new JButton("Red");
         JButton white = new JButton("White");
         JButton yellow = new JButton("Yellow");
         JButton black2 = new JButton("Black");
         JButton blue2 = new JButton("Blue");
         JButton cyan2 = new JButton("Cyan");
         JButton darkGray2 = new JButton("Dark Gray");
         JButton gray2 = new JButton("Gray");
         JButton green2 = new JButton("Green");
         JButton lightGray2 = new JButton("Light Gray");
         JButton magenta2 = new JButton("Magenta");
         JButton orange2 = new JButton("Orange");
         JButton pink2 = new JButton("Pink");
         JButton red2 = new JButton("Red");
         JButton white2 = new JButton("White");
         JButton yellow2 = new JButton("Yellow");
         //Labels
         JLabel backGroundTypes = new JLabel("Back Ground Types:");
         JLabel colorOfBackgroundTypes = new JLabel("Color of BackgroundTypes:");
         JLabel colorOfBackground = new JLabel("Color of Background:");
         //intialize
         public void init(){
              Container contentPane = getContentPane();
              g = new pane();
              contentPane.add(g);
              //add components.
              g.add(backGroundTypes);
              g.add(drawRects);
              g.add(drawSquares);     
              g.add(colorOfBackgroundTypes);          
              g.add(black);
              g.add(blue);
              g.add(cyan);
              g.add(darkGray);
              g.add(gray);
              g.add(green);
              g.add(lightGray);
              g.add(magenta);
              g.add(orange);
              g.add(pink);
              g.add(red);
              g.add(white);
              g.add(yellow);
              g.add(colorOfBackground);
              g.add(black2);
              g.add(blue2);
              g.add(cyan2);
              g.add(darkGray2);
              g.add(gray2);
              g.add(green2);
              g.add(lightGray2);
              g.add(magenta2);
              g.add(orange2);
              g.add(pink2);
              g.add(red2);
              g.add(white2);
              g.add(yellow2);
              drawRects.addActionListener(this);
              drawSquares.addActionListener(this);
              black.addActionListener(this);
              blue.addActionListener(this);
              cyan.addActionListener(this);
              darkGray.addActionListener(this);
              gray.addActionListener(this);
              green.addActionListener(this);
              lightGray.addActionListener(this);
              magenta.addActionListener(this);
              orange.addActionListener(this);
              pink.addActionListener(this);
              red.addActionListener(this);
              white.addActionListener(this);
              yellow.addActionListener(this);
            //add ActionListeners
            black2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.black);
              blue2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.blue);
              cyan2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.cyan);
              darkGray2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.darkGray);
              gray2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.gray);
              green2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.green);
              lightGray2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.lightGray);
              magenta2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.magenta);
              orange2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.orange);
              pink2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.pink);
              red2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.red);
              white2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.white);
              yellow2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent event){
                        g.setBackground(Color.yellow);
         public void actionPerformed(ActionEvent e){
              if(e.getSource() == drawRects) {
                   for(int i = 0; i < 20; i++){
                        class drawR{
                             public int rectWidth = 50;
                             public int rectHeight = 100;
                             public int rectStartX = 1;
                             public int rectStartY = 1;
                             public void paint(Graphics r){                         
                                  r.drawRect(rectStartX, 300, rectWidth, rectHeight);     
                                  rectStartX = rectStartX + 50;     
                                 rectStartY = rectStartY + 50;
         class pane extends JPanel{
              pane(){                  
                        

    think this is what you intended,
    public void actionPerformed(ActionEvent e){
          if(e.getSource() == drawRects) {
             class drawR{
                public int rectWidth = 50;
                public int rectHeight = 100;
                public int rectStartX = 1;
                public int rectStartY = 1;
                public void paint(Graphics r){                         
                   r.drawRect(rectStartX, 100, rectWidth, rectHeight);
                   rectStartX = rectStartX + 50;     
                   rectStartY = rectStartY + 50;
             drawR dr = new drawR();
             for(int i = 0; i < 20; i++){
                dr.paint( g.getGraphics() );
          }                    

  • I am having problems uploading photos to websites with version 6 - it just won't work.

    Am having a problem with doing this but if I use Windows Explorer (which I'd rather not use) there is not a problem.

    I have same problem, when i try to upload any image using Firefox 4.0, and browse the image to upload, it shown a transparent mask to flash application with hand cursor mouse pointer . now again i need to click anywhere is screen to activate flash controls and then i need to click again to upload. I have this issue in FireFox 4.0 Only.
    Please advise. Thanks

  • Help with Premiere Elements 3.0,  won't work with Win7 Home Prem 64bit

    Does anybody knows if there's a patch or update for Premiere Elements 3.0 for Win7 Home Premium 64bit?  This software is a little bit old, but works great with my WinXP pro.  When I upgraded to Win7 Home, 64bit, Premiere Elements 3.0 would not work at all.  At first, I thought it was my hardware, but the software just crashed even without any video capture devices connected to my computer.  Any help is appreciated.
      Thanks!

    Well, there's no guarantee version 3 will work on Windows 7 at all -- let alone the 64-bit version.
    Have you installed the 3.02 patch for the software? That makes it Vista compatible -- and if anything will make it work, that will.
    Otherwise -- and assuming you've got the latest firmware for your video card and the latest version of Quicktime -- if it doesn't work for you, it simply may not. Sorry.

  • Keyboard included with my new iMac (Lion) won't work properly in Snow Leopard.

    I have a keyboard that came with a 2011 iMac that came preinstalled with Lion.
    The Key shortcuts are for mission control/launchpad.
    I tried using it on my old 27" iMac that has Snow Leopard, and the top row shortcut keys are all messed up.
    The new iMac is running 10.6.8, fully updated.

    Sounds like third party software conflict.
    Does this behavior persist in Safe Mode?
    Starting up in Safe Mode
    charlie

  • Digital Camera with Quik Time 4 software won't work

    Hello:
    i have Quik Time 4 as part of Olympus Digital Camera(Camedia)software and it will not work it this XP computer.( itused to)
    It works in my wife's XP computer and my Win 98se computer

    You need to purchase mac os 10.6 or later, assuming your computer is comptible, and install it.
    I believe the requirements are printed on the box the iphone came in and the website:
    Apple ID (required for some features)
    Internet access5
    Syncing with iTunes on a Mac or PC requires:
    Mac: OS X v10.6.8 or later
    PC: Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
    iTunes 10.7 or later (free download from www.itunes.com/download)
    "https://www.apple.com/iphone/specs.html

  • Need to use hyperlink with tracking code in Edge project, not working

    I have been using test URL's inserted on invisible "hot spot" elements in my edge animate project that have been opening fine in the browser. Now I need to update those URLs with tracking syntax, but when I change it in Edge (replace the URL in the actions panel for that element) and then run the animation in the browser, the link will not open.
    Any thoughts or suggestions?

    Never mind, the URL itself had quotation marks that needed to be removed; once that was done the URL's opened properly.

  • Cleaned trackpad with Windex! Now it won't work!!!

    Okay, I'm stupid. I used Windex or something like that to clean the trackpad of my iBook, and now the trackpad barely works. I just now read in the manual that you're not supposed to use cleaning solutions to clean this area.
    Is there any way to make it work again?

    choiwonsuh
    Windex's ammonia is not the greatest of cleaners to use on your Mac, as the ammonia can potentially destroy the system components. You should use some of Macs authorized cleaners.
    As for your trackpad, drying it out is a good option. I had this happen to my iBook a year ago with 401, and the trackpad was doomed. I had to take it in for repair, and you might have to do this. hopefully, it will be under the warrenty.
    Good Luck, Mike

Maybe you are looking for

  • "Error while printing" in non-Admin user

    I have a non-admin account (for my wife) in my iMac G5, and from some days ago, all applications refuse to print. A msg telling "Error while printing" appears, and the application trying to print crash in some sort of way. I can print the test page f

  • 17" Studio to Mac mini

    I have a 17" Studio Display that I want to connect to a Mac mini but its impossible because I need an adapter...I need to know what is the adapter or cable's name to connect the 17" Studio Display to the Mac mini? Can you send me a link or something

  • Production against sales order

    Hi all experts, I am creating a report for Linewise width wise handover summary(OK production against sales order) I am taking Date from MKPF and QTY from MSEG I need to show Work Center [ CRHD-ARBPL ] but dont know how to link tables can any one sen

  • Exit for FB02 in order to restrict the users to change text & Long text

    Hi All, In FB02 for each line item there is a text field and a Long text option. my requirement is to restrict some users to change the long text and text values though the users have authorization to FB02. Thanks in advance, Regards, Deepak

  • WDS not getting linked after disconect and reconnect to wall

    Hello. I have a A.Extreme configure with WDS and 3 A.Express as remotes. I configured everything perfect and worked fine. Today I wanted to move one A.Express to another outlet and when I plugged in it took so many time to get sync (like an hour). I