Please see my code and helpme out pls

//Making Circle here
gridx=20;
gridy=20;
num=0;
for (var i=0;i < 10;i++)
for (var j=0;j < 10;j++)
dot.duplicateMovieClip("dot"+num,num);
mc=this["dot"+num];
mc._x=gridx*i;
mc._y=gridy*j;
num++;
dot._visible=0;
// here i make plain circle, but problam is my all circle
open in fornt side, i want to that all my circle in background
//hide all selection MovieClip
for(i=1; i<=100; i++){
this.createEmptyMovieClip("test_mc"+i,
this.getNextHighestDepth());
this["test"+i]._visible = false;
// here i make fill circle mc, all hide with this code, but
problam is all circle come in background
//selection area
_root.onMouseDown = function() {
sel = this.createEmptyMovieClip("sel", 1);
sel.startx = _xmouse; // we need to reference these later,
so add them as properties of the selection clip
sel.starty = _ymouse;
this.onEnterFrame = function() {
with(sel){
clear();
lineStyle( 1, 000000, 100 );
moveTo(sel.startx, sel.starty);
lineTo(_xmouse, starty);
lineTo(_xmouse, _ymouse);
lineTo(sel.startx, _ymouse);
lineTo(sel.startx, sel.starty);
_root.onMouseUp = function() {
_root.select(sel.startx,sel.starty,sel._xmouse,sel._ymouse);
// call the selection function
removeMovieClip(sel);
this.onEnterFrame = undefined;
_root.select =
function(x1:Number,y1:Number,x2:Number,y2:Number){
// in case you dragged the selection box from right to left
or bottom to top, we need
// to work out the top left and bottom right coordinates..
var sx = Math.min(x1,x2);
var ex = Math.max(x1,x2);
var sy = Math.min(y1,y2);
var ey = Math.max(y1,y2);
for(var item in this){ // loop through all items in the
_root
if(typeof(this[item])=="movieclip"){ // if the current item
is a movieclip..
this[item]._visible = isInside(this[item],sx,sy,ex,ey);
function
isInside(mc:MovieClip,x1:Number,y1:Number,x2:Number,y2:Number):Boolean{
// check whether the selection coordinates enclose the mc
coordinates
return (x1<=mc._x && x2>=mc._x+mc._width
&& y1<=mc._y && y2>=mc._y+mc._height);
// here u can find selection option, selection option is
wroking, but same problam, it work in background, & hide my all
MC (that Plain Circle also) and highlight only which we select
// Some brif here:
i want to create plain circle in background, after that some
one want to slecte that palin circle highlight that circle only
with fill circle ( for better explaination see my fla file which is
attach here
Please see this
Pls pls help me out
thanks
praful damania

for better explaination pls see my fla file which is attache
there & I have some quation about it as under
1) here i make fill circle mc, all hide with this code, but
problam is all circle come in background
2) here i make fill circle mc, all hide with this code, but
problam is all circle come in background
3) here u can find selection option, selection option is
wroking, but same problam, it work in background, & hide my all
MC (that Plain Circle also) and highlight only which we select
i want to create plain circle in background, after that some
one want to slecte that palin circle highlight that circle only
with fill circle
thanks for reply
Praful Damania

Similar Messages

  • HOT Key choosing.Please see my code and suggest

    Hi,
    I am getting this strange behaviour.
    I have a cell renderer which displays a list in flwg format:
    1.[gif] Text
    6.[gif] Text
    I have written a small HOT KEY Funtionality.If I press HOT KEYS
    1,2 OR 3,focus goes to the concerned elements.
    But not got 4,5 or 6?
    Can anyone tell me whats wrong if poss?
    class MyListCellRenderer extends  /*JLabel*/ JPanel
    implements ListCellRenderer{
            private JLabel indexLabel;
            private JLabel imageAndText;      
            public MyListCellRenderer(){
            indexLabel = new JLabel();
            imageAndText = new JLabel();
            setLayout(new FlowLayout(FlowLayout.LEFT,3,0));
            add(indexLabel);
            add(imageAndText);
               setOpaque(true);
    public Component getListCellRendererComponent(
    JList list, Object value,int index,
    boolean isSelected, boolean cellHasFocus) {
    final JList fJList = list;
    indexLabel.setText(String.valueOf(index+1));
    imageAndText.setText(value.toString());
    if(isSelected){
       setBackground(isSelected ? Color.red : Color.yellow);
       fJList.addKeyListener(new KeyAdapter() {
               public void keyPressed(KeyEvent e) {
              int keyCode = e.getKeyCode();
                 if (keyCode >= KeyEvent.VK_1 && keyCode <=KeyEvent.VK_9) {
                        System.out.println(keyCode-KeyEvent.VK_0);
                        fJList.setSelectedIndex(keyCode-KeyEvent.VK_1);
                        setBackground(Color.red);
                 else {
                      setBackground(list.getBackground());
                      setForeground(list.getForeground());
    } // End
         

    If the other suggestions don't work for your situation, I have something else you might try:
    I'm not sure if using keyPressed with e.getKeyCode() is returning what you expect (the integer typed) to do your calculation to set the selected index on the list.
    Maybe try keyTyped with e.getKeyChar() and then if you can get that as a string, doing a parseInt on it to get an integer to do your calculation (which should be a simple -1) and then set your list index.
    1) So, say keyTyped e.getKeyChar() returns the char '1' that you store as a variable char charKeyTyped
    2)Then you use String's valueOf(charKeyTyped) and you store it as a variable String stringKeyTyped
    3)Then use Integer.parseInt(stringKeyTyped) catching the exception that may occur if it isn't an integer
    4)Now take step 3's result and do your calculation and subtracting 1 to get your selected index.
    Hope that english explanation makes sense as I wasn't up to writing actual code.

  • Re: Need help with this assignment. Please see my code and give me tips/advice.

    And your question is?
    My comment so far is:
    You need to be specific in your questions and use code tags.

    And your question is?
    My comment so far is:
    You need to be specific in your questions and use
    code tags.My comment so far is:
    Start coding...

  • Please see my code and give me idea

    Hi master;
    first i use F2-key event and put only this code
    go_block(‘emp’);
    Execute_query;
    but system give me this error FRM-41008 then i use
    on-error event but no result
    Sir I use this code on-error event
    DECLARE errnum NUMBER := ERROR_CODE;
    errtxt VARCHAR2(80) := ERROR_TEXT;
    errtyp VARCHAR2(3) := ERROR_TYPE;
    BEGIN IF errtyp=’FRM’ and errnum = 41008 THEN
    go_block(‘emp’);
    Execute_query;
    END IF;
    END;
    sir give me idea
    Aamir

    Aamir, you asked this same question in the thread below, and I provided an answer.
    how use F2-key

  • Exit Code: 7 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW042 ... WARNING: DW066 ...  -------------------------------------- Summary --------------------------------------  - 0 fatal error(s), 1 error(s), 2 war

    Exit Code: 7
    Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW042 ... WARNING: DW066 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 1 error(s), 2 warning(s)
    WARNING: DW066: OS requirements not met for {FA19351D-E98C-48C1-B5E1-0C8C42B5E11C}
    WARNING: DW066: OS requirements not met for {F7FD5B5C-CE79-4657-AEB7-B0EE4626C912}
    ERROR: DW042: ARP Entry couldn't be created for language : en_US
    What the heck does this mean???

    Trying to install Photoshop Elements 11 on Mac OS 10.6.8 with Quicktime 7 also installed. Machine is 21.5" iMac 3.06GHz Core 2 Duo. It was on there before. Had a problem and threw it out to reinstall. Any attempt at reinstall gets same error. Even downloaded the installer from Adobe's site and get same error.

  • Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ...

    Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 2 error(s), 0 warning(s) ERROR: DW050: The following payload errors were found during install: ERROR: DW050:  - Microsoft Visual C++ 2010 Redistributable Package (x64): Install failed ERROR: DW050:  - Microsoft Visual C++ 2010 Redistributable Package (x86): Install failed -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 2 error(s), 0 warning(s) ERROR: DW050: The following payload errors were found during install: ERROR: DW050:  - Microsoft Visual C++ 2010 Redistributable Package (x64): Install failed ERROR: DW050:  - Microsoft Visual C++ 2010 Redistributable Package (x86): Install failed
    PS CS6,Please help!

    Errors "Exit Code: 6," "Exit Code: 7"
    Mylenium

  • Error code Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... WARNING: DW016, DW036 ...

    can any one help? I am getting the following message when installing illustrator: Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... WARNING: DW016, DW036 ...

    Errors "Exit Code: 6," "Exit Code: 7" | CS5, CS5.5
    Mylenium

  • Please see my problem and give me idea

    sir i use sun java studio creater with oracle 10g an i flow your code and use this code on button press event
    Connection conn = null ;
    log("*********** connecting");
    try {
    javax.naming.Context ctx = new javax.naming.InitialContext() ;
    DataSource ds = (DataSource)ctx.lookup(" java:comp/env/jdbc/datasource1" ) ;
    conn = ds.getConnection() ;
    } catch (Exception ex) {
    error(" Error counting rows: " + ex.getMessage() );
    log(" Error counting rows: " + ex.getMessage() );
    JasperReport jasperReport;
    JasperPrint jasperPrint;
    log("compiling report");
    try {
    jasperReport = JasperCompileManager.compileReport("C:/mfa.jasper");
    } catch (Exception ex) {
    log(" ********* Error compiling report: " + ex.getMessage() );
    return null;
    but system not give me result
    then i see in view server log then i found this error
    main error
    [#|2007-07-04T10:06:03.159+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1042tatus of dynamic reconfiguration event processing:[runtime_error]|#]
    [#|2007-07-04T10:06:03.222+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1041ent the event to instance:[ApplicationDeployEvent -- reference-removed WebApplication17]|#]
    [#|2007-07-04T10:06:03.284+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1042tatus of dynamic reconfiguration event processing:[success]|#]
    [#|2007-07-04T10:06:04.472+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5109: EJBC - START of EJBC for [WebApplication17]|#]
    [#|2007-07-04T10:06:04.487+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|Processing beans ...|#]
    [#|2007-07-04T10:06:04.487+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5110: EJBC - END of EJBC for [WebApplication17]|#]
    [#|2007-07-04T10:06:06.378+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|Total Deployment Time: 2891 msec, Total EJB Compiler Module Time: 31 msec, Portion spent EJB Compiling: 1%
    Breakdown of EJBC Module Time: Total Time for EJBC: 31 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 0 msec (0%),
    |#]
    [#|2007-07-04T10:06:06.472+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|deployed with moduleid = WebApplication17|#]
    [#|2007-07-04T10:06:06.644+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1041ent the event to instance:[ApplicationDeployEvent -- reference-added WebApplication17]|#]
    [#|2007-07-04T10:06:06.706+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1042tatus of dynamic reconfiguration event processing:[success]|#]
    [#|2007-07-04T10:06:06.722+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041ent the event to instance:[ModuleDeployEvent -- deploy web/WebApplication17]|#]
    [#|2007-07-04T10:06:06.753+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.container.web|_ThreadID=11;|WEB0100: Loading web module [WebApplication17] in virtual server [server] at [WebApplication17]|#]
    [#|2007-07-04T10:06:06.769+0500|SEVERE|sun-appserver- pe8.2|org.apache.catalina.core.StandardContext|_ThreadID=11;|error stopping
    LifecycleException: Manager has not yet been started
    full server log file
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at sun.security.provider.PolicyFile.addPermissions(PolicyFile.java:1403)
    at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1307)
    at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1270)
    at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1211)
    at sun.security.provider.PolicyFile.implies(PolicyFile.java:1166)
    at com.sun.enterprise.security.provider.PolicyWrapper.implies(PolicyWrapper.java:135)
    at java.security.ProtectionDomain.implies(ProtectionDomain.java:195)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:249)
    at java.security.AccessController.checkPermission(AccessController.java:427)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
    at java.io.File.exists(File.java:700)
    at com.sun.enterprise.admin.server.core.channel.RMIClient.checkServerStatus(RMIClient.java:373)
    at com.sun.enterprise.admin.server.core.channel.RMIClient.setRestartNeeded(RMIClient.java:354)
    at com.sun.enterprise.admin.event.RRPersistenceHelper.setRestartRequired(RRPersistenceHelper.java:98)
    at com.sun.enterprise.admin.event.RRPersistenceHelper.setRestartRequiredForServer(RRPersistenceHelper.j ava:75)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:152)
    at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificat ionHelper.java:288)
    at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.j ava:155)
    at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStopEvent(ServerDeploymentTarget.ja va:283)
    at com.sun.enterprise.deployment.phasing.StopPhase.runPhase(StopPhase.java:126)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java: 639)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:409)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:444)
    at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.stop(ApplicationsConfigMBean.java:725)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:305)
    at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:360)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
    at $Proxy1.invoke(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandle r.java:92)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJm xConnectorServlet.java:69)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnect orServlet.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    |#]
    [#|2007-07-04T10:06:03.159+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1042tatus of dynamic reconfiguration event processing:[runtime_error]|#]
    [#|2007-07-04T10:06:03.222+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1041ent the event to instance:[ApplicationDeployEvent -- reference-removed WebApplication17]|#]
    [#|2007-07-04T10:06:03.284+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=12;|ADM1042tatus of dynamic reconfiguration event processing:[success]|#]
    [#|2007-07-04T10:06:04.472+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5109: EJBC - START of EJBC for [WebApplication17]|#]
    [#|2007-07-04T10:06:04.487+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|Processing beans ...|#]
    [#|2007-07-04T10:06:04.487+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5110: EJBC - END of EJBC for [WebApplication17]|#]
    [#|2007-07-04T10:06:06.378+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|Total Deployment Time: 2891 msec, Total EJB Compiler Module Time: 31 msec, Portion spent EJB Compiling: 1%
    Breakdown of EJBC Module Time: Total Time for EJBC: 31 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 0 msec (0%),
    |#]
    [#|2007-07-04T10:06:06.472+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=13;|deployed with moduleid = WebApplication17|#]
    [#|2007-07-04T10:06:06.644+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1041ent the event to instance:[ApplicationDeployEvent -- reference-added WebApplication17]|#]
    [#|2007-07-04T10:06:06.706+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1042tatus of dynamic reconfiguration event processing:[success]|#]
    [#|2007-07-04T10:06:06.722+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1041ent the event to instance:[ModuleDeployEvent -- deploy web/WebApplication17]|#]
    [#|2007-07-04T10:06:06.753+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.container.web|_ThreadID=11;|WEB0100: Loading web module [WebApplication17] in virtual server [server] at [WebApplication17]|#]
    [#|2007-07-04T10:06:06.769+0500|SEVERE|sun-appserver- pe8.2|org.apache.catalina.core.StandardContext|_ThreadID=11;|error stopping
    LifecycleException: Manager has not yet been started
    at org.apache.catalina.session.StandardManager.stop(StandardManager.java:704)
    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4675)
    at org.apache.catalina.core.StandardContext.preDeregister(StandardContext.java:5643)
    at org.apache.commons.modeler.BaseModelMBean.preDeregister(BaseModelMBean.java:1418)
    at com.sun.jmx.mbeanserver.BaseMetaDataImpl.preDeregisterInvoker(BaseMetaDataImpl.java:122)
    at com.sun.jmx.mbeanserver.MetaDataImpl.preDeregisterInvoker(MetaDataImpl.java:251)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor. java:377)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:527)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
    at $Proxy1.unregisterMBean(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.unregisterMBean(SunoneInterceptor.java: 324)
    at org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:643)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4228)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
    at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)
    at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:646)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1331)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1040)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.j ava:160)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.j ava:246)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulti caster.java:918)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.j ava:905)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
    at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificat ionHelper.java:288)
    at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.j ava:155)
    at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.j ava:258)
    at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java: 639)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)
    at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:305)
    at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:360)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
    at $Proxy1.invoke(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandle r.java:92)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJm xConnectorServlet.java:69)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnect orServlet.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    |#]
    [#|2007-07-04T10:06:07.987+0500|WARNING|sun-appserver- pe8.2|org.apache.commons.digester.Digester|_ThreadID=11;|[ComponentRule]{faces-config/component} Merge(com.sun.rave.web.ui.Time)|#]
    [#|2007-07-04T10:06:08.019+0500|WARNING|sun-appserver- pe8.2|org.apache.commons.digester.Digester|_ThreadID=11;|[ConverterRule]{faces-config/converter} Merge(null,java.math.BigDecimal)|#]
    [#|2007-07-04T10:06:08.019+0500|WARNING|sun-appserver- pe8.2|org.apache.commons.digester.Digester|_ThreadID=11;|[ConverterRule]{faces-config/converter} Merge(null,java.math.BigInteger)|#]
    [#|2007-07-04T10:06:09.222+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.tools.admin|_ThreadID=11;|ADM1042tatus of dynamic reconfiguration event processing:[success]|#]
    [#|2007-07-04T10:06:47.427+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/WebApplication17]*********** connecting|#]
    [#|2007-07-04T10:06:47.442+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/WebApplication17] Error counting rows: null|#]
    [#|2007-07-04T10:06:47.442+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/WebApplication17]compiling report|#]
    [#|2007-07-04T10:06:48.114+0500|INFO|sun-appserver- pe8.2|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/WebApplication17] ********* Error compiling report: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.|#]
    sir what means of this error
    Status of dynamic reconfiguration event processing:[runtime_error]
    Total Deployment Time: 2891 msec, Total EJB Compiler Module Time: 31 msec, Portion spent EJB Compiling: 1%
    Breakdown of EJBC Module Time: Total Time for EJBC: 31 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 0 msec (0%),
    please give me idea how i create pdf file

    Aamir, you asked this same question in the thread below, and I provided an answer.
    how use F2-key

  • Exit Code: 7 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW006, DW050 ... WARNING: DW036 ...

    I need help installing Adobe Photoshop and Premiere 10 on my MAC.  I get this error all the time.

    I tried all 5 solutions and still nothing.  I saw this in the log and read this??  STILL NEED HELP!!!
    I found this in the PDApp log but don't know what it means.
    LWANative - OOBElib returned error: 47
    1/10/2013 16:43:32.333 [WARN] Deployment.ProvisioningNativeApplet Fetch serial numbers returned nothing.

  • Please rate my code and be brutal. need to know weakpoints.

    Hi All,
        I've attached some code that I've been working on for quite a while.  Actually the code I've attached is an extremely simplified version of my stuff, but the important parts are there.    What I would really appreciate is some feedback.  I have scoured the forums, read at least 100 other threads on a variety of topics that are related to/implemented  in my code, but there are still some things that I feel could be done better/more efficiently/prettier/etc.
    I've added some yellow textboxes throughout with useful little bits of info about what's happening in certain sections just as clarification.  The VIs are labelled with *_00.vi so that people can make changes and post them with the newer version (i.e. *_01.vi, etc.)
    MainVI_00.vi - This part has 2 parallel while loops that are both stopped with a singe "STOP" button by using a control reference to a boolean indicator (called 'T boolean?').  I wanted two loops two run simultaneously so that I could have both subVI1_00 and subVI2_00 opened from MainVI_00 and running at the same time.  It seems to work pretty well, but it's a little ugly.  The only problem I'm having with this setup is that if subVI2_00 is enabled, and STOP is pressed in mainVI, I can't figure out how to close subVI2 and thus terminate the entire program.  I think the problem is that subVI2_00 uses an event Structure, but some advice would help here.
    subVI1_00.vi - this would normally be the subVI for a scope, but now it just generates random numbers... if you look at it, it's really self-explanatory.
    subVI2_00.vi - This is a little more complicated.  I use an event structure here to monitor several different possible user interactions.  If the radio buttons or some other values are changed, an event is triggered, and the machine is switched to a different field position.  I've taken out the instrument dependent code though, so now it just shows a string.  When the 'load params' button is pressed, an array is generated and passed through a control refnum back to mainVI.  Also, I had to include the stop button in the event structure because I couldn't figure out how to get the subVI2 to shut if I didn't.  As I write this, I suppose it's possible to put a time delay in the while loop which may catch the change in the stop button, but I'm definitely open to suggestions on how to do this part better.
    Thanks for any advice that you may have on this.  Even the really brutal stuff is appreciated so that I can get this running in the most efficient and well-written manner as possible.
    -Z
    Attachments:
    subVI2_00.vi ‏69 KB
    mainVI_00.vi ‏20 KB
    subVI1_00.vi ‏19 KB

    Hi Lynn,
        Thanks for your comments... 
    I think some simple changes in architecture will help. Typically the event structure is in the main VI rather than in a subVI where it might cause exactly the problem you are experiencing. When an event occurs pass a message to the subVI via a queue. "Stop" would be one of the messages, of course. Depending upon when subVI 1 needs to run, it might be better off in another independent loop with a queue for control messages or perhaps it could run in the timeout case of the event structure.
    I would really appreciate some clarification on this one because I feel like I'm not understanding exactly what you're saying.  The way that I have designed the program is so that the two subVIs interact with the two instruments, respectively, that need to be "set up" for the experiment.  In order to do that, they both need to be able to be open at the same time (this is why there are 2 parallel 'while loops' in mainVI.  I could also put subVI1 in another while loop like subVI2, but I actually don't really like using references very much, b/c it breaks the dataflow model.... so instead, I just put one of the two in a separate loop.  Among other things (in the event structure) the subVI2 then generates a "sweep array" which is used in the final data collection in conjunction with the information that is returned from subVI1 (which is a cluster of scope controls).  
        From what you said, I am unclear how I could put an event structure in mainVI and control the individual events possible in subVI2?  or is this even what you're suggesting?  If possible could you make simple corrections to the code I provided illustrating your point?
    Very minor point, but may make a difference when your program gets big and complicated. Try to use left to right wiring for the dataflow. It makes programs much easier to read (and therefore, to debug).
    good point.  style is important because this code may need to be modified by someone else in my lab in the future, so I'll fix that.
    thanks,
    -z

  • How to stop the encoding ?plz see the code and correct it

    public class NewClass
        /** Creates a new instance of NewClass */
        public NewClass ()
            StateHelper sh=null;
            Processor p=null;
            try
                p=Manager.createProcessor (new URL ("file:///ring.wav"));
                sh = new StateHelper (p);
                p.configure ();
            catch (NoProcessorException ex)
                ex.printStackTrace ();
            catch (IOException ex)
                ex.printStackTrace ();
            p.setContentDescriptor (new FileTypeDescriptor (FileTypeDescriptor.MPEG_AUDIO));       
            TrackControl track[] = p.getTrackControls ();
            boolean encodingPossible = false;
            for (int i = 0; i < track.length; i++)
                try
                    track.setFormat (new AudioFormat (AudioFormat.MPEG));
    encodingPossible = true;
    catch (Exception e)
    track[i].setEnabled (false);
    if (!sh.realize (10000))
    System.exit (-1);
    DataSource source = p.getDataOutput ();
    MediaLocator dest = new MediaLocator ("file://ring1.mpg");
    DataSink filewriter = null;
    try
    filewriter = Manager.createDataSink (source, dest);
    filewriter.open ();
    filewriter.addDataSinkListener (new DataSinkListener ()
    public void dataSinkUpdate (DataSinkEvent e)
    if(e instanceof javax.media.datasink.EndOfStreamEvent)
    DataSink ds=e.getSourceDataSink ();
    try
    ds.stop ();
    System.out.println ("finished write");
    catch (IOException ex)
    ex.printStackTrace ();
    filewriter.start ();
    catch (NoDataSinkException e)
    System.exit (-1);
    catch (IOException e)
    System.exit (-1);
    catch (SecurityException e)
    System.exit (-1);
    p.start ();
    p.addControllerListener (new ControllerAdapter ()
    public void endOfMedia (EndOfMediaEvent e)
    Controller controller = (Controller) e.getSource ();
    controller.stop ();
    controller.deallocate ();
    System.out.println ("finished run through");
    public static void main (String[] args)
    new NewClass ();
    o/p is "finished run through",the EndOfStreamEvent never occurs.please correct if anything is wrong.when i manually stop the program then only the encoded file appears on the disk. this has to used from the other class and i cannot afford to use exit().help me.

    Try this - it seems to work
    public class NewClass
        Processor p = null;
        DataSink sink = null;
         /** Creates a new instance of NewClass */
        public NewClass ()
            try{
                p = Manager.createProcessor (new URL ("file:C:/WINDOWS/Media/Windows XP Startup.wav"));
                p.addControllerListener (new ControllerAdapter ()
                     public void configureComplete(ConfigureCompleteEvent e){
                        System.out.println ("ConfigureCompleteEvent");
                        Processor p = (Processor)e.getSourceController();
                        processConfigured(p);
                     public void realizeComplete(RealizeCompleteEvent e){
                        System.out.println ("RealizeCompleteEvent");
                        Processor p = (Processor)e.getSourceController();
                        processrealized(p);
                     public void controllerClosed(ControllerClosedEvent e){
                        System.out.println ("ControllerClosedEvent");
                     public void endOfMedia (EndOfMediaEvent e)
                        System.out.println ("EndOfMediaEvent");
                        Processor p = (Processor)e.getSourceController();
                        p.stop();
                     public void stop(StopEvent e){
                        System.out.println ("StopEvent");
                        Processor p = (Processor)e.getSourceController();
                        p.close();
                p.configure();
            }catch (NoProcessorException ex){
                 ex.printStackTrace ();
            }catch (IOException ex){
                 ex.printStackTrace ();
        private void processrealized(Processor p){
             MediaLocator dest = new MediaLocator("file:C:/Workspace/ring1.mpg");
             try{
                  sink = Manager.createDataSink(p.getDataOutput(), dest);
                 sink.addDataSinkListener(new DataSinkListener(){
                      public void dataSinkUpdate(DataSinkEvent e){
                           if(e instanceof EndOfStreamEvent){
                            System.out.println ("EndOfStreamEvent");
                                sink.close();
                  sink.open();
                  sink.start();
             }catch(Exception eX){
             p.start();
        private void processConfigured(Processor p){
            p.setContentDescriptor (new FileTypeDescriptor (FileTypeDescriptor.MPEG_AUDIO));       
            TrackControl track[] = p.getTrackControls ();
            boolean encodingPossible = false;
            for (int i = 0; i < track.length; i++){
                 try{
                      track.setFormat (new AudioFormat (AudioFormat.MPEG));
              encodingPossible = true;
         }catch (Exception e){
              track[i].setEnabled (false);
    p.realize();
    public static void main (String[] args)
    new NewClass ();
    `

  • HT1937 my iphone 4 is locked in recovery mode and searching for my service provider,went to service provider they said it was still under warenty,hadappt. next day at apple they said there was an error code and was out of warenty i think thats a bunch of

    why did apple let verizon in on apple the people dont no anything at all about iphones and to me worthless,they wern't very helpful when i asked them about helping with my phone,and apple should of
    tried to help me out a little more than they did, its not my fault verizon told me my phone was uneder waranty and the apple said it was expired two days prior and people wonder why i get mad all the time both,my experince in both store was really ******!!!!

    Go here and check your warranty status: https://selfsolve.apple.com/agreementWarrantyDynamic.do
    If you're still in warranty, go back to Apple and show proof (print off that page confirming your warranty is intact the day you go).
    You may just need to perform a simple Restore in iTunes.

  • Please take a minute and fill out this forum survey

    My apologies for interrupting your forum with an off-topic posting,
    but
    I need as many forum users as possible to take the following SHORT 10question survey regarding your use of our forums:
    http://www.zoomerang.com/survey.zgi?...BQ6HLKKTFQLSNF
    If you take just a minute to fill this out, it will help us here at
    Novell to better understand the needs of our forum community members
    as
    we discuss ways to improve our service to you.
    Thanks! And now I'll return you to your regularly scheduled forum.
    Oh yea...
    and just to help this forum stay on topic, I'd appreciate if you
    didn't reply
    to this message.
    Kim Groneman
    Program Manager
    Novell Product Support Forums
    Novell Inc., The leading provider of information solutions

    Google videos are your friend.  Google Videos is/are better than youtube because they include all of youtube plus everything else.
    You would be amazed how many user-created demos/tutorials/tips videos are out there.  Even more amazing is how specific these videos are.  Specific to your model number of camera, of flash, of lens.  Specific to your particular tiny issue about Lightroom or Photoshop or whatever.
    As for good learning/informational DSLR websites, here is a list of my personal favorites:
    http://www.cambridgeincolour.com/
    http://www.the-digital-picture.com/Reviews/
    http://www.canonrumors.com/
    http://www.lensrentals.com/rent/canon/lenses/telephoto/sigma-50-500mm-f4.5-6.3-hsm-os-for-canon
    The Digital Picture has great reviews, plus a unique lens comparison tool (ACTUAL IMAGES!) in their "TOOLS" tab.
    Lens Rentals contains Roger C's very well-informed, well-respected, and VERY witty commentary on lenses.
    Cambrige in Colour gives a nice, refreshing and very civilized British sensibility to things, and is welcoming to beginners, and has good short writings on basic digital photography concepts.
    Canon Rumors tells you (sometimes) when new equipment is coming out, and has a lively forum that is less flame-y than Nikon Rumors. 
    Scott
    Canon 6D, Canon T3i, EF 70-200mm L f/2.8 IS mk2; EF 24-105 f/4 L; EF-S 17-55mm f/2.8 IS; EF 85mm f/1.8; Sigma 35mm f/1.4 "Art"; EF 1.4x extender mk. 3; 3x Phottix Mitros+ speedlites
    Why do so many people say "fer-tographer"? Do they take "fertographs"?

  • Please Check My Code and Give Advice..

    Hi all.... I am new in Java Programming and need your help for the following :
    Convert binary numbers to decimal.
    The program should prompt user to enter the number. Upon clicking the button, the program should display the number, the positional wightage of each digit of the number ( I have done some researched n found that i have to use pow method for this....is this correct??? ) .........and the decimal equivalent of the number.
    I know how to convert binary to decimal...octal to decimal ... and vice versa as I have learned that prior taking this java programming class.
    And I have no difficulty creating buttons n labels....that's the easiest part.
    What I don't know is how to use the pow method for the conversion part as I am not gonna have any fix number....user will type lets say...01001 or 111000 .... so how do i capture the numbers from right to left n convert it to decimal?
    I noe the conversion is like :
    (0*16) + (1*8) + (0*4) + (0*2) +( 0*1)
    and I tried using ifElse statements...but i think there's a much simpler n easier way to do....well...maybe i give u what i've done n can u all can shed some light on where i went wrong...
    i m such a dummy in this i need to be knock on the head...
    well here goes:
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class Numberpro extends Applet implements ActionListener
    Label first, one, two;
    TextField satu, dua;
    Button con;
    int answer;//number that is entered in the textfield
    double a1,a2,a4,a8,a16;//declare the 5 digit binary to decimal conversion power
    //example:2^0=1 , 2^1=2 , 2^2=4 , 2^3=8 , 2^4=16
    int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,za,zb,zc,zd,ze;
    //declare if 00000 , 00001 , 00010 then it becomes.....
    String type="binary";//convert binary base to decimal
    String type2="octal";//convert octal base to decimal
    String type3="";
    public void init()
    {first=new Label ("Number System");
    add(first);
    one=new Label ("Enter the number : ");
    add(one);
    satu=new TextField(9);
    add(satu);
    satu.addActionListener(this);
    two=new Label ("Enter the base system ");
    add(two);
    dua=new TextField(9);
    add(dua);
    dua.addActionListener(this);
    con=new Button ("Convert");
    add(con);
    con.addActionListener(this);}
    public void actionPerformed(ActionEvent event)
    {answer=Integer.parseInt(event.getActionCommand());
    repaint();
    type3=dua.getText();
    repaint();}
    public static double pow(int a, int b)
    {a1 = Math.pow(2.0, 0.0);
    a2 = Math.pow(2.0, 1.0);
    a4 = Math.pow(2.0, 2.0);
    a8 = Math.pow(2.0, 3.0);
    a16 = Math.pow(2.0, 4.0);}
    public void paint(Graphics g)
    {a=a1;
    b=a2;
    c=(a2+a1);
    d=a4;
    e=a4+a1;
    f=a4+a2;
    g=a4+a2+a1;
    h=a8;
    i=a8+a1;
    j=a8+a2;
    k=a8+a2+a1;
    l=a8+a4;
    m=a8+a4+a1;
    n=a8+a4+a2;
    o=a8+a4+a2+a1;
    p=a16;
    q=a16+a1;
    r=a16+a2;
    s=a16+a2+a1;
    t=a16+a4;
    u=a16+a4+a1;
    v=a16+a4+a2;
    w=a16+a4+a2+a1;
    x=a16+a8;
    y=a16+a8+a1;
    z=a16+a8+a2;
    za=a16+a8+a2+a1;
    zb=a16+a8+a4;
    zc=a16+a8+a4+a1;
    zd=a16+a8+a4+a2;
    ze=a16+a8+a4+a2+a1;}
    if (type.equals(type3))
    {g.drawString("answer " , 40, 55 );}
    if (type=00000)
    {g.drawString("Decimal Equivalent " + 0 , 60, 75 );}
    else
    if (type=00001)
    {g.drawString("Decimal Equivalent " + a , 60, 75 );}
    else
    if (type=00010)
    {g.drawString("Decimal Equivalent " + b , 60, 75 );}
    else
    if (type=00011)
    {g.drawString("Decimal Equivalent " + c , 60, 75 );}
    else
    if (type=00100)
    {g.drawString("Decimal Equivalent " + d , 60, 75 );}
    else
    if (type=00101)
    {g.drawString("Decimal Equivalent " + e , 60, 75 );}
    else
    if (type=00110)
    {g.drawString("Decimal Equivalent " + f , 60, 75 );}
    else
    if (type=00111)
    {g.drawString("Decimal Equivalent " + g , 60, 75 );}
    else
    if (type=01000)
    {g.drawString("Decimal Equivalent " + h , 60, 75 );}
    else
    if (type=01001)
    {g.drawString("Decimal Equivalent " + i , 60, 75 );}
    else
    if (type=01010)
    {g.drawString("Decimal Equivalent " + j , 60, 75 );}
    else
    if (type=01011)
    {g.drawString("Decimal Equivalent " + k , 60, 75 );}
    else
    if (type=01100)
    {g.drawString("Decimal Equivalent " + l , 60, 75 );}
    else
    if (type=01101)
    {g.drawString("Decimal Equivalent " + m , 60, 75 );}
    else
    if (type=01110)
    {g.drawString("Decimal Equivalent " + n , 60, 75 );}
    else
    if (type=01111)
    {g.drawString("Decimal Equivalent " + o , 60, 75 );}
    else
    if (type=10000)
    {g.drawString("Decimal Equivalent " + p , 60, 75 );}
    else
    if (type=10001)
    {g.drawString("Decimal Equivalent " + q , 60, 75 );}
    else
    if (type=10010)
    {g.drawString("Decimal Equivalent " + r , 60, 75 );}
    else
    if (type=10011)
    {g.drawString("Decimal Equivalent " + s , 60, 75 );}
    else
    if (type=10100)
    {g.drawString("Decimal Equivalent " + t , 60, 75 );}
    else
    if (type=10101)
    {g.drawString("Decimal Equivalent " + u , 60, 75 );}
    else
    if (type=10110)
    {g.drawString("Decimal Equivalent " + v , 60, 75 );}
    else
    if (type=10111)
    {g.drawString("Decimal Equivalent " + w , 60, 75 );}
    else
    if (type=11000)
    {g.drawString("Decimal Equivalent " + x , 60, 75 );}
    else
    if (type=11001)
    {g.drawString("Decimal Equivalent " + y , 60, 75 );}
    else
    if (type=11010)
    {g.drawString("Decimal Equivalent " + z , 60, 75 );}
    else
    if (type=11011)
    {g.drawString("Decimal Equivalent " + za , 60, 75 );}
    else
    if (type=11100)
    {g.drawString("Decimal Equivalent " + zb , 60, 75 );}
    else
    if (type=11101)
    {g.drawString("Decimal Equivalent " + zc , 60, 75 );}
    else
    if (type=11110)
    {g.drawString("Decimal Equivalent " + zd , 60, 75 );}
    else
    if (type=11111)
    {g.drawString("Decimal Equivalent " + ze , 60, 75 );}
    I have another question for you too:
    1) For the TextField can i use ActionListener instead of TextListener....will it still work?

    Couple of things I'd like to mention:
    1. Your code is buggy. You need to repair it a lot.
    2. You posted the question on the wrong forum. I can't find anything to do with a JSP.
    ***Annie***

  • Cannot read Java array in javascript. Please see my code

    Here is the script
    <webuijsf:script binding="#{temp.script2}" id="script2">
    foo()
    var picture = <%=getApplicationBean1().getPictureDirName()[1].toString()%>;
    </webuijsf:script>
    <webuijsf:body binding="#{temp.body1}" id="body1" onLoad="foo();" style="-rave-layout: grid">
    Error Message
    The content of the form must consist of well-formed character data or markup.
    Can anyone tell me what is the problem
    I would be very greatfull if anyone could help me read a java var or array in a javascript

    http://forum.java.sun.com/thread.jspa?threadID=5143339&messageID=9529903#9529903
    http://forum.java.sun.com/thread.jspa?threadID=5143428&messageID=9530475#9530475
    http://forum.java.sun.com/thread.jspa?threadID=5143443&messageID=9530587#9530587
    http://forum.java.sun.com/thread.jspa?threadID=5143467&messageID=9530764#9530764
    Why are you spamming 4 threads about the same problem? Use one thread and gently use the edit button if you want to add some new information. With 4 separate threads we are missing the overview.

Maybe you are looking for

  • In Lightroom mobile how can move photos within the collection????

    In Lightroom mobile how can move photos within the collection????

  • IPhone/iPod Touch not recognized by PC running Win7/64

    How come my older PC running windows 7 (64bit) stopped recognizing my iPhone and iPod Touch running ios 6.1.4 when I connect to a USB port? How can I fix this?  Also wonder why the wireless sync does not seem to function.

  • Restart Workflow on changing the SC value

    Hi SRM Champs,   There is a interesting requirement in our project for Shopping Cart workflow with value limit approval.   Here, for the workflow there are two approvers APPROVER1 and APPROVER2 with the following condition : upto 1001 $ > more APPROV

  • New Schedule for Oracle Developer Days in the USA

    Free full day workshop with JSF, EJB 3.0 and BPEL Register here: http://www.oracle.com/go/?&Src=1587968&Act=43 Denver, CO - Tuesday, August 2, 2005 Philadelphia, PA - Thursday, August 4, 2005 Detroit, MI - Tuesday, August 9, 2005 Atlanta, GA - Thursd

  • I need help in classical report

    Dear all,           I want develop a classical report which provides custom format for reporting and audit the chromatography results based on the selection criteria specified for inspection   lot number, material number, batch and etc..