Question about writting a cutom component

I have an area in my application window (0,0 to 500,500) in whcih I do all my drawing. underneath I have a bunch of boxes I drew to represent buttons. Now in my draw area I wish to always display the exact mouse cursor x,y coordinates. But to use mouseEntered, it has to be attached to a component. Is there a way to define a custom component for my draw area, so that the area throws the mouseEntered event? Is there another way of fixing the problem?

this is how you would do it with a custom component.
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
public class CustomComp implements MouseListener{
public static void main(String[] args) {
     new CustomComp();
public CustomComp(){
     setupGUI();
     displayFrame();
public void setupGUI(){
     jc.addMouseListener(this);
     jc.setPreferredSize(new Dimension(300, 300));
     p.setBackground( Color.white );
     p.setPreferredSize(new Dimension(300, 300));
                     // you may want to add jc to a container panel
public void displayFrame(){
     fr.setContentPane(jc);
     fr.pack();
     fr.setLocationRelativeTo(null);
     fr.show();
public class MyPanel extends JPanel{
public MyPanel(){ }
public void paint(Graphics g){
     super.paint(g);
     Graphics2D g2d = (Graphics2D)g;
public class MyComponent extends JComponent{
public MyComponent(){ }
public void paint(Graphics g){
     super.paint(g);
     Graphics2D g2d = (Graphics2D)g;
     Rectangle2D.Double button = new Rectangle2D.Double(0, 0, 300, 300);
     g2d.setPaint( buttoncolor );
     g2d.fill( button );
// Mouse Listeners
public void mouseEntered(MouseEvent e) {
     buttoncolor = Color.blue;
     jc.repaint();
public void mouseExited(MouseEvent e) {
     buttoncolor = Color.red;
     jc.repaint();
public void mouseClicked(MouseEvent e) {}
public void mouseReleased(MouseEvent e) {}
public void mousePressed(MouseEvent e) {}
     JFrame fr = new JFrame();
     JPanel p = new MyPanel();
     JComponent jc = new MyComponent();
     Color buttoncolor = Color.red;
}

Similar Messages

  • Question about 'write' statement

    Hi,
    A question on write statement.
    I have a internal table itab which has field var. I am looping at this itab and writing horizontal heading output like below.
    example on the output heading:
    (3 spaces) itab-var (20 spaces) itab-var (20 spaces) itab-var.
    the coding is:
    loop at itab.
    write: 3 itab-var.
    endloop.
    I want to increase the space by 20 for every loop. How to increase this 3 by 20? Can we accomplish this way?
    Thank you for your time.

    hi krishen,
    just add 20 inside the loop , so that after every loop its value increases by 20
    for example:
    data: v  type i.
    v=3.
    do 3 times.
    write: at v(20).
    v=v+20.
    end do.
    hope it will help you
    regards
    Rahul sharma
    Edited by: RAHUL SHARMA on Sep 4, 2008 7:47 AM

  • Questions about "WRITE SAME failed. Manually zeroing."

    Hi fellows,
    I've already read this old thread https://bbs.archlinux.org/viewtopic.php?id=164377
    but I have further questions:
    ok, WRITE SAME feature should enhances performance on supported hardware.
    But when I get this error, I must manually ZEROING the parameter to disable it or the parameter is already ZEROED, since it failed?
    and a second question:
    I get this error on an USB device. In the aforementioned thread this error appears with SATA.
    How can I disable permanently on an USB device, since address depends on the USB port which change?
    thank you
    Last edited by nTia89 (2015-01-06 09:59:31)

    I have the same problem with kernel 3.19 (was not happening before) booting Archlinux from USB stick (Ventura ultra).
    Plasma 5 start is now very slow. If I boot from another kernel (linux-rt) all is fine as it was before kernel 3.19 installation.
    It seems to me that also X starting is too slow before  sddm login screen.
    Using nvidia 340xx drivers (updated).
    Some suggestions?
    Last edited by hifi25nl (2015-03-19 13:30:34)

  • Question about login in Pipeline Component

    Dear All,
    I'm working on registering a new user. Soon after user submits registration, an InputProcessor
    will validate its registration data. If success, a Pipeline Component will create
    a user via UserManager.createUser() method and then will set properties via ProfileWrapper.setProperty()
    method. But before I can setProperty I need to login user. I'm think of using ServletAuthentication.weak()
    method to do so, but I don't know how to get a HttpServletRequest object or HttpSession
    object. Can anyone tell me how to do it? Also, will it be any trouble to logout if
    I use this way to login user?
    Thanks in advance for your help.
    Tim

    Tim,
    You can get the HttpServletResponse from the PipelineSession from inside you
    PipelineComponent (with signature):
    PipelineSession process(PipelineSession pipelineSession,
    java.lang.Object requestContext)
    By calling:
    reponse (HttpServletResponse) = pipelineSession.getRequestScopedAttribute(
    WebFlowConstants.HTTP_SERVLET_RESPONSE,
    pipelineSession.getContext().getCurrentNamespace(), context );
    From the reponse you can get the HttpSession by simply calling getSession.
    Let me know if you have any problems.
    Sincerely,
    Daniel Selman
    "Tim" <[email protected]> wrote in message
    news:3d32cdc3$[email protected]..
    >
    Dear All,
    I'm working on registering a new user. Soon after user submitsregistration, an InputProcessor
    will validate its registration data. If success, a Pipeline Component willcreate
    a user via UserManager.createUser() method and then will set propertiesvia ProfileWrapper.setProperty()
    method. But before I can setProperty I need to login user. I'm think ofusing ServletAuthentication.weak()
    method to do so, but I don't know how to get a HttpServletRequest objector HttpSession
    object. Can anyone tell me how to do it? Also, will it be any trouble tologout if
    I use this way to login user?
    Thanks in advance for your help.
    Tim

  • Image enduser workstation: question about ACF and Adobe Reader component

    Our IT department is investigating what components should be included in the image for enduser workstations to ensure they will be able to work with interactive forms without any problem. I know ACF and Adobe Reader are the only requirements for endusers but I have some questions about this:
    1. As of what version of Netweaver 2004s is it no longer a requirement to have the ACF component installed on the frontend to enable online interactive scenario's for endusers?
    2. Can I recommend to allways install the very latest Adobe Reader version available in the market or is the Adobe Reader version depending on the SAP NetWeaver version we use?
    kind regards
    Angelique Heutinck
    ([email protected])

    Hi Angelique,
    The non ACF version is called Zero Client Installation (ZCI)
    ERP2005 SP 5 - Zero Client Installation (ZCI)
    NW04S Stack 08
    Reader 8.0 for ZCI, Reader 7.08 for ACF based forms. Don't use Reader 8 for ACF yet, since there is no installer working yet...
    Cheers,
    Noë

  • Best practice question for implementing a custom component

    I'm implementing a custom component which renders multiple <input type="text" .../> controls as part of it. The examples I've seen that do something similar use the ResponseWriter to generate the markup "by hand" like:
         writer.startElement("input", component);
         writer.writeAttribute("type", "text", null);
         writer.writeAttribute("id", "foo", null);
         writer.writeAttribute("name", "foo", null);
         writer.writeAttribute("value", "hello", null);
         writer.writeAttribute("size", "20", null);
         writer.endElement("input");
    I don't know about anyone else, but I HATE having to write code that manufactures this stuff - seems to me that there are already classes that do this, so why not just use those? For example, the above could be replaced with:
         HtmlInputText textField = new HtmlInputText();
         textField.setId("foo");
         textField.setValue("hello");
         textField.setSize(20);
         // just to be safe, invoke both encodeBegin() and encodeEnd(),
         // though it seems like encodeEnd() actually does the work in this case,
         // but who knows if they might change it at some point
         textField.encodeBegin(context);
         textField.encodeEnd(context);
    So my question is, why does everyone seem to favor the former over the latter? Why not leverage objects that already do the (encoding) work for you?

    Got it!
    You JSP should have this:
    <h:panelGroup styleClass="jspPanel" id="jspPanel1"></h:panelGroup>
    And your code page ValueChangeListener/ActionListner should have this:
              if (findComponent(getForm1(),"myOutputText") == null)
                   FacesContext facesCtx = FacesContext.getCurrentInstance();
                   System.out.println("Adding component");
                   HtmlOutputText output =
                        (HtmlOutputText) facesCtx.getApplication().createComponent(
                             HtmlOutputText.COMPONENT_TYPE);
                   output.setId("myOutputText");
                   output.setValue("It works");
                   getJspPanel1().getChildren().add(output);          
                   System.out.println("Done");
                   DebugUtil.printTree(FacesContext.getCurrentInstance().getViewRoot(),System.out);
              else
                   System.out.println("component already added");
    I just have to figure out this IOException on the closed stream - probably has to do with [immidiate="true"].
    Thanks.
    [9/15/04 13:05:53:505 EDT] 6e436e43 SystemErr R java.io.IOException: Stream closed
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at java.lang.Throwable.<init>(Throwable.java)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at java.lang.Throwable.<init>(Throwable.java)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:294)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:424)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:452)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.faces.component.UIJspPanel$ChildrenListEx.add(UIJspPanel.java:114)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at pagecode.admin.Test.handleListbox1ValueChange(Test.java)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at java.lang.reflect.AccessibleObject.invokeImpl(Native Method)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at java.lang.reflect.Method.invoke(Method.java:252)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at javax.faces.component.UIInput.broadcast(UIInput.java:492)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:284)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:342)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
    [9/15/04 13:05:53:536 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
    [9/15/04 13:05:53:552 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
    [9/15/04 13:05:53:552 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    [9/15/04 13:05:53:552 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    [9/15/04 13:05:53:567 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    [9/15/04 13:05:53:567 EDT] 6e436e43 SystemErr R      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    [9/15/04 13:05:53:567 EDT] 6e436e43 SystemErr R      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
    [9/15/04 13:05:53:567 EDT] 6e436e43 SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435)
    [9/15/04 13:05:53:567 EDT] 6e436e43 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
    [9/15/04 13:05:56:146 EDT] 6e436e43 SystemOut O Done

  • General Questions about BI

    Hello,
    I want to get into SAP BI and have some questions about it.
    Is there a big downside in installing only the BI components without the Java BI components, or is it even possible if you want to work with BI. What are the general differences between BI and Java BI?
    I think the main aspects i will work with will be data warehousing and some basic reporting.
    The reason why i'm asking is that i want to run the BI components in the same system as the ECC Server (its just a test system). I read that the Java BI component needs EPC and EP and that would probably be too much for a single system (6 GB RAM).
    Thanks a lot in advance,
    Martin

    Thanks for your hints, they were really helpful.
    As i mentioned i mainly want to work with the general Data Warehouse and Reporting capabilities, so i think it should be okay.
    Actually i'm planing to write about BI and SAP within my master thesis.
    Another question, what will be with SAP BI in the future regarding the Business Object acquisition? Is there still any point in learning SAP BI or will SAP BI disapear in the future? I heard that the basic BI functionality (e.g. Datawarehouse ) will still be used but the reporting capabilities  would be disappear. I'm not sure if that is right and i'm really new to this topic. So any comments are welcome.
    Thanks,
    Martin

  • About Error in HTML component

    Hi,
    There is a question about HTML Component.
    As you know, you can load a Webpage in a HTML component by setting a URL in its location property.
    And when I write a wrong URL, which is not existing, the HTML component just continue loading forever.
    How do I know, if the written URL is correct at all? Is there eny error event handler for that?
    thanks

    I've got a hot water pipe that goes "gurgle" whenI
    hit it with a heavy book - can anyone help?Are you sure it's a gurgle?
    Could it be a rattle, or even a squeak?Pretty sure it's a gurgle. I'll check again
    Anyway, check for any of the following:
    - loose pipe straps
    - air leak in the pipe system
    Updating the pipe system would be a good idea at this
    point, unless you are able to ditch that book and get
    the equivalent electronic version.Thanks for your help. But I don't see how getting the electronic version will make things better, how am I supposed to hit a hot water pipe with a .pdf??

  • Another one question about how to download applet (not using external tool)

    Hi
    i write tool for downloading applet on card. I use apdu trace from NXP eclipse plugin as source of information and i read also about cap-file format in Java Card Virtual Machine specification. And i have questions about data transferred by LOAD command.
    As example - from apdu trace i see that transferred data are "C4820E33 DATA1 DATA2". Full length of transferred data is 0x2EE2.
    C4 - OK, this is "Load File Data Block" tag as specified in Global Platform
    820E33 - OK, this length of tag, =0x0E33
    DATA1 - sequence of cap-file components: Header.cap, Directory.cap, Import.cap, Applet.cap, Class.cap, Method.cap, StaticField.cap, ConstantPool.cap, RefLocation.cap. Length of DATA1 is 0x0E33, i.e. DATA1 = 'C4'-tag value.
    DATA2 - sequence of two cap-file components: Descriptor.cap and Debug.cap. These components are out of 'C4'-tag.
    the questions mentioned above... here they are:
    1. Global Platform does not define any data in LOAD command except 'E2' and 'C4' tag. Why DATA2 is transferred out of any tags?
    2. Whether the sequence of cap-file components is important? i.e. Can i load Header.cap, Directory.cap etc. in other order than i see in DATA1 field from apdu-trace?
    3. Debug.cap seems to be optional component. And what about Descriptor.cap component? Need i load it on card?

    666 wrote:
    1. Global Platform does not define any data in LOAD command except 'E2' and 'C4' tag. Why DATA2 is transferred out of any tags?Because the components are either optional or only required when communicating with a JCRE that has debugging capabilities. I assume you ran the project in JCOP Tools in debug mode against the simulator? If you did this against a real card it would fail as it does not have an instrumented JCRE capable of debugging code. You could try running the project as opposed to debugging to see the difference.
    2. Whether the sequence of cap-file components is important? i.e. Can i load Header.cap, Directory.cap etc. in other order than i see in DATA1 field from apdu-trace?Yes it is. It is defined in the JCVM specification available from the Oracle website.
    3. Debug.cap seems to be optional component. And what about Descriptor.cap component? Need i load it on card?No, it is optional and is not referenced by any other CAP file component.
    Cheers,
    Shane

  • HT201303 hi just got my new apple ipod touch i need to update my security information other wise it wont let me download apps it says to enter three questions about myself and i get to the third question and it wont let me enter the third question

    hi just got my new apple ipod touch and to download apps it wants to add questions about myself for more sercurity information. i get up to question 3 and it wont let me select a question but it will let me write an answer so i just pressed done and then it says i cant carry on because ive mised out information when it wont let me do a question!

    Welcome to the Apple community.
    You might try to see if you can change your security questions. Start here, change your country if necessary and go to manage your account > Password and Security.
    I'm able to do this, others say they need to input answers to their current security questions in order to make changes, I'm inclined to think its worth a try, you don't have anything to lose.
    If that doesn't help you might try contacting Apple through Express Lane (select your country, navigate to iCloud help and enter the serial number of one of your devices)

  • Question about Kurts comments discussing the seperation of AIA & CDP - Test Lab Guide: Deploying an AD CS Two-Tier PKI Hierarchy - Kurt L Hudson MSFT

    Question about the sentence in bold. What is the meaning behind this comment?
    How would you separate the role of the AIA and CDP from a CA subordinate server? I can see where I add a CES and CEP server which has those as well, but I don't completely understand his comment. Because in this second step, (http://technet.microsoft.com/en-us/library/tlg-key-based-renewal.aspx)
    he shows how to implement CES and CEP.
    This is from the guide located at: http://technet.microsoft.com/library/hh831348.aspx
    Step 3: Configure APP1 to distribute certificates and CRLs
    In the extensions of the root CA, it was stated that the CRL from the root CA would be available via http://www.contoso.com/pki. Currently, there is not a PKI virtual directory on APP1, so one must be created.
    In a production environment, you would typically separate the issuing CA role from the role of hosting the AIA and CDP.
    However, this lab combines both in order to reduce the number of resources needed to complete the lab.
    Thanks,
    James

    My concern is, they have a 2-3k base of xp systems, over this year they are migrating them to Windows 7. During this time they will also be upgrading hardware for the existing windows 7 machines. The turnover of certificates are going to be high, which
    from what I've read here, it worries me.
    http://blogs.technet.com/b/askds/archive/2009/06/24/implementing-an-ocsp-responder-part-i-introducing-ocsp.aspx
    The application then can go to those locations to download the CRL. There are, however, some potential issues with this scenario. CRLs over time can get rather large
    depending on the number of certificates issued and revoked. If CRLs grow to a large size, and many clients have to download CRLs, this can have a negative impact on network performance. More importantly, by
    default Windows clients will timeout after 15 seconds while trying to download a CRL. Additionally,
    CRLs have information about every currently valid certificate that has been revoked, which is an excessive amount of data given the fact that an application may only need the revocation status for a few certificates. So,
    aside from downloading the CRL, the application or the OS has to parse the CRL and find a match for the serial number of the certificate that has been revoked.
    With the above limitations, which mostly revolve around scalability, it is clear that there are some drawbacks to using CRLs. Hence, the introduction of Online Certificate
    Status Protocol (OCSP). OCSP reduces the overhead associated with CRLs. There are server/client components to OCSP: The OCSP responder, which is the server component, and the OCSP Client. The OCSP Responder accepts status
    requests from OCSP Clients. When the OCSP Responder receives the request from the client it then needs to determine the status of the certificate using the serial number presented by the client. First the OCSP Responder determines if it has any cached responses
    for the same request. If it does, it can then send that response to the client. If there is no cached response, the OCSP Responder then checks to see if it has the CRL issued by the CA cached locally on the OCSP. If it does, it can check the revocation status
    locally, and send a response to the client stating whether the certificate is valid or revoked. The response is signed by the OCSP Signing Certificate that is selected during installation. If the OCSP does not have the CRL cached locally, the OCSP Responder
    can retrieve the CRL from the CDP locations listed in the certificate. The OCSP Responder then can parse the CRL to determine the revocation status, and send the appropriate response to the client.

  • Question about the Documentat​ion Tags for Source Code

    Hello,
    I have a question about CVI's automatic source code documentation. My problem is that is seems like you need to write all documentation for a specific tag on one line. If you don't, a line break will be inserted when the documentation is displayed. Suppose I want to write a large amount of documentation for the function itself, using the HIFN tag. If I don't want linebreaks to be forced in the documentation, I need to write all this documentation on one single line, which kinda messes up my code. If I split the documentation over several HIFN tags, the documentation displayed to the user might look messed up because of all the linebreaks. Is there any escape character I can put at the end of a line, allowing me to split the documentation of several HIFN lines without forcing linebreaks in the documentation?
    Thanks!
    GEMIDIS - Innovating Display Technology
    HQ Ghent, Belgium

    This information is certainly useful. Note, however, that it can also be found in the documentation
    Tag
    Description
    /// HIFN help text
    Specifies the help text for the function. Use multiple /// HIFN tags to display help text for the function on separate lines. To separate help text with an empty line, use /// HIFN on a line by itself. You also can use HTML tags, but you must enclose the tags in <HTML><BODY></BODY></HTML> tags.
    Example
    /// HIFN SampleFunction returns the value of a control.
    int SampleFunction (int controlID, ctrlType controlType, char label[], double *value)
         SomeAction;

  • Question about sony NFC tags

    Hi every body,
    I have a little question about the NT1 smart tags of sony.
    I installed other app from google play to NFC tags in my phone.
    I installed it, because the smart tag app of sony, don't have the action to turn on or turn off the GPS by NFC tag.
    When I used with other app, and I written on the blue smart tag, I mark to became the blue smart tag to read only.
    So, now I can't to write on him, and the phone is not recognazied the blue smart tag ( all other smarts tags is OK, because I didn't used them ).
    When I scan the blue smart tag, the phone show a message: "unknown type tag".
    Am I can cancelled it and became it back? that's mean that the phone is recognaized it and I can to write on it?
    Or, is it one way, and I can't used with the blue smart tag again?
    Thank you.

    you can do a factory reset or repair your phone with SUS
    Update Service (SUS)
    http://www.sonymobile.com/gb/tools/update-service/
    http://www-support-downloads.sonymobile.com/Software%20Downloads/Update_Service_Setup-2.11.12.5.exe
    Alternatives on How to backup Xperias
    http://talk.sonymobile.com/thread/36355
    Don't forget to mark the Correct Answers & Helpful Answers
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • PL/SQL web service: question about stub

    hello,
    I'm currently learning how to work with PL/SQL Web Services.
    I have a question about stubs. The point is, I can deploy a web service to the OC4J server and it works. It also works when I create a stub following the WSDL I made with creating the PL/SQL web service. If I go to the endpoint in my webbrowser, the functionality is the same, with or without using a stub.
    My question is: what is the function of the stub?

    A stub is leveraged by a client application to communicate with a corresponding server side object (in this case, the web service implementation). If you think back to CORBA or RMI applications they follow a similar pattern.
    In the case of a web service you would use the stub to write a client application that could invoke the methods of the remote service and return the responses as java data types. The methods the stub class offers are the same as the methods of the web service interface. It's a common way for providing RPC like functionality.

  • Questions about CIN tax procedure choice and pricing schemas

    Hi all,
    I have to implement SAP on a Indian company and I'm verifying all particularity about this country (in particular tax procedures and the great number of differents tax conditions used).
    I have two questions about tax procedures and pricing schemas. Every feedback about thse points will be appreciated.
    a) To choose tax procedure TAXINN or TAXINJ which are the elements that I have to consider?
         I have read lot of documentation about CIN implementation and Iu2019m oriented to choose TAXINN schema, but If possible I  would  to understand better which are on behalf of one choice or another.
    b) To define pricing schemas for India, after check with local users and using examples of documents (in particular tax invoice) actually produced, I have understood that taxes have to be applied on amount defined starting from price list, minus discounts recognized to customer plus surcharges eventually to bill (packing, transport,  etc.).
    Itu2019s correct for any type of taxes that tax amount is calculated on u201Cnet valueu201D defined at item level or there are exceptions to this rule?
    Thanks in advance
    Gianpaolo

    hi,
    this is to inform you that,
    a) About point 1 I know the difference between the 2 tax procedures (conditions or formulas). I also have read in others post in the FORUM that TAXINN is preferable. So I would to understand which are the advantages to choose instead TAXINJ. There are particular reasons or it'a only an alternative customizing setting?
    a.a. for give for posting the link : plese give me the advantages of TAXINJ and TAXINN
    CIN - TAXINN and TAXINJ
    b) About point 2, to define which value has to be used as base amount to calculate taxes isn't a choice, but is defined depending by fiscal requirement of the country, in this case India fiscal requirement. I know that, as Lakshmipathi
    write as answer on my question, exception could be, but it was important for me to understand if I have understood correctly the sequence of the pricing condition in the schema in "normal" situation.
    b.b. you can create your own pricing procedure for this and go ahead.
    hope this clears your issue.
    balajia

Maybe you are looking for

  • HT1373 How can I make all of my devices use the same iTunes library?

    I have an iMac, Macbook Air, Macbook, iPad, iPhone and an iTouch. So, as you can imagine, I have many devices that need to be on the same page at all times. I take my Air to campus with me and use it for classes, along with my iPad, so I usually plug

  • Backup set /piece info

    Hi, Application guy deleted few rows. So I am asked to do tablespace point time recovery in 11.2.0.3 on aix using old backup(two week before taken). I would like to check how many backup set and piece name in a L0 backup.Is there any query? Most of t

  • Extend vendor with multiple account group

    Hi, I have a query. I have three account group say Domestic, Import, Service. I want to create  vendors  say ABC only in these three account group(Means ABC in domestic, ABC in import, ABC in Service) How to maintain this? I have used same number ran

  • How do you change the font and size in descriptions in iPhoto?

    When I add a description to a photo in a slide show, it appears in only one font size and one continuous line across the frame.  Is there any way to change the font and size?  Can the description be multiple short lines instead of one long one?

  • Can an image button make an alert box popup?

    So, my first question is: Can a SAVE button that has a button style of IMAGE trigger an alert box to popup? If yes, then I have a second question: If I am suppose to use the ONCLICK event, where do I put this code for this type of button? The BUTTON