Is it crazy to mix java 2d with ready to use component?

Hi, friends,
I searched here and there in libraries for days. but I still din't find a sample or even an idea to mix java 2d with ready to use component.but, it should be able, should not it?
I want to create a button with 4 icons surrounding by. I would like to drawing the 4 icons with paint method in componentUI but I want to use a button inside my UI. I don't want to create the whole button my self. Are there any good ideas for that?
The main idea is to mix a 2d graphics with exiting component. any samples or hints?

hi,
what I mean is:
Suppose we run the hello world applet: we draw string on the graphics. but now i want to add a button just inside the graphics. so i click the button, the color of hello world will change. I didnot add the button outside the graphics. are there any special way to clip an area and add the button in?
Thanks

Similar Messages

  • Mix jython code with sql

    Hi,
    I have just read the following sentence in the odi jyhon reference:
    "Oracle Data Integrator users may write procedures or knowledge modules using Jython, and may mix Jython code with SQL, PL/SQL, OS Calls, etc."
    Does anyone of you know how jython can be mixed with SQL in a knowledge module? I just know how to embed java code with the <% %> tag. But how about jython (e.g. when used in a knowledge module task with technology = "Oracle"?
    I appreciate your help.
    best regards,
    Hans

    So Firstly I have never done this in KM but it works well in Procedure so I think it would work in a KM but I'm not sure.
    So I will show you an exemple which will be easyer than lot of explanation.
    This exemple is a step of a procedure which is supposed to send an email if there is an error in an execution.
    This Step retrieve informations about the execution as the error message or the execution context...
    In the Target Command :
    Technology= Jython
    I have :
    EmailBody = EmailBody + r'''<TR><TD><CENTER>#NO</CENTER></TD><TD>#SESS_NAME</TD><TD>#STEP_NAME
    </TD><TD>#CONTEXT</TD><TD>#DEBUT</TD><TD>#MSG</TD></TR>'''
    Contexte = '#CONTEXT'.
    --> the #variable are the informations that I will extract in the source.
    In the Source Command :
    Technology = Oracle .
    SELECT L.SESS_NO || ' / ' || L.NNO "NO", STEP_NAME, SESS_NAME, SS.CONTEXT_CODE "CONTEXT", L.STEP_BEG "DEBUT", X.TXT "MSG", L.step_rc "RC"
    FROM <%=snpRef.getObjectName("L", "SNP_STEP_LOG", "D")%> L,
    <%=snpRef.getObjectName("L", "SNP_SESS_STEP", "D")%> SS,
    <%=snpRef.getObjectName("L", "SNP_SESSION", "D")%> S,
    <%=snpRef.getObjectName("L", "SNP_EXP_TXT", "D")%> X
    WHERE L.SESS_NO = <%=snpRef.getSession("SESS_NO")%> AND
    L.SESS_NO = SS.SESS_NO AND L.NNO = SS.NNO AND S.SESS_NO = L.SESS_NO AND
    STEP_STATUS = 'E' and L.I_TXT_STEP_MESS=X.I_TXT and X.TXT_ORD=0
    And with this the Jython keep the information of the Query...
    So I would like to apologize cause in my last post I have inversed the Target and the Source... Sorry. Hope that your problem didn't come from here...
    Evidently you will have SQL as Source and Jython as Target...

  • Portal with a URL using a Web browser in java stack

    Dear all,
    I can access the portal with our URL using a Web browser from your client machines .
    i got the following option :
    SAP Library
    SAP Library contains the complete documentation for SAP Web Application Server.
    Web Services Navigator
    Web Services Navigator is a tool that gives you a short overview of a specific Web service based on its WSDL, and enables you to test your Web service by creating and sending a client request to the real end point.
    System Information
    System information provides administrators with an overview of the system configuration and its state. It shows all of the system's instances and processes, their current state and important parameters (such as ports) that may be required for support cases, as well as the versions of the components installed.
    UDDI Client
    The UDDI client provides query and publishing functions for different Web service entities (tModels, business services) to any UDDI compliant registry.
    User Management
    The user management administration console provides administrators with the functions they need to manage users, groups, roles, and user-related data in the User Management Engine (UME). Users without administrator permissions can use it to change their user profile.
    Web Dynpro
    Web Dynpro is a User Interface technology available within the SAP NetWeaver Developer Studio.
    Various Web Dynpro tools provide administrators and application developers with performance measurement and application administration capabilities. The Web Dynpro runtime is already deployed.
    SAP NetWeaver Administrator
    A tool for administration and monitoring, offering a central entry point to the whole SAP NetWeaver system landscape. The SAP NetWeaver Administrator can be used in a central scenario where it is capable of operating an entire system landscape containing ABAP and Java systems as the application platform of SAP NetWeaver.
    J2EE Engine Examples
    This section contains several J2EE application examples that run on the J2EE Engine. The examples show some of the functions of both Java and the J2EE Engine. They can be easily deployed and tested by simply clicking on a button. The full source code of the examples is also available.
    when i click System Information:
    it ask user name () J2EE_ADMINand password (Installtion master password) ,after entered , i got below error .
    You are not authorized to view the requested resource.
      Details:   No details available
    Kindly suggest .

    Hello
    It means what it sais, your J2EE_ADMIN user doesn't have enough authorization.
    Chech if the appropriate authorization is assigned in your abap stack which belongs to the java stack you logon to:
    Role SAP_J2EE_ADMIN should be assigned to user J2EE_ADMIN.
    Kind regards
    Tom
    Edited by: Tom Cenens on Dec 17, 2010 2:55 PM

  • Is there any downside mixing Objective-C with C++ for iOS apps?

    I'd like to use C++ since it's fast and more dynamically in memory reference.
    Is there any downside mixing Objective-C with C++ for iOS apps?
    When googled for info, I only found tutorials about how to let xcode compile Objective-C with C++.
    Thanks for help.

    hokanst wrote:
    Both Objective-C and C++ are (more or less) extensions of C.
    C supports manipulation of pointers and casting of pointers, this implies that both Objective-C and C++ will be able to manipulate C data like arrays, structs ...
    Objective-C has classes like NSData to read/write blocks of bytes from/to file and to access ranges of bytes when the data is loaded into memory.
    C++ probably has similar classes (I'm not well versed in C++ so I don't know).
    If you want to look into using C++ you will probably want to look at Objective-C++, the link below has links to docs on how to use C++ with Objective-C:
    http://stackoverflow.com/questions/3684112/what-is-objective-c
    Thanks for the info, NSData does what I need.
    A replied in the link also mentioned that he's using C++ in his application too. As long as I'm aware of memory management (prevent memory leaks, etc) as @disguise said, it should be fine.
    @etresoft indeed, but C is the base language of ObjC, there are ways to deal with.

  • XSLT-transformation in Java-Mapping with javax.xml

    Hi,
    we wanna use javax.xml for transformations in Java-Mapping.
    Inside the Java-mapping we read in XSL-files to transform a XML-stream. With XSLT 1.0 everything works fine - but with XSLT 2.0 we are getting runtime errors.
    Is it possible that javax.xml only supports XSLT 1.0?
    Regards
    Wolfgang

    Hi ,
    Jaxp 1.3 is available in this link -
    http://java.sun.com/webservices/jaxp/
    Use these jar files to process XSLT 2.0.
    Nanda

  • Is there any Sound card 5.1 include stereo mix that working with MacBook Air such as Creative Labs SoundBlaster X-Fi Surround 5.1 Pro Entertainment System ? and if there any another sound card can you tell me what is it please ? Thank you.

    Is there any Sound card 5.1 include stereo mix that working with MacBook Air such as Creative Labs SoundBlaster X-Fi Surround 5.1 Pro Entertainment System ? and if there any another sound card can you tell me what is it please ? Thank you.

    Okay, I did my best searching and I couldn't find anything that matched all your descriptors. I did do a search on both decoder numbers. SB0256 returned very little results, but with SB0466, I was able to find this ebay listing:
    http://cgi.ebay.com/ws/eBayISAPI.dll...6_fvi%3D&_rdc=
    This card isn't a Champion like you suggested. And with my complete lack of knowledge, I don't know what I/O dri've bay means. But since it is PCI and the decoder matches the number you gave me, this card should be adequete, right?
    Whether it works or not, my search indicated it might be very hard for me to find that card (or any PCI card for that matter). Everything I saw was out of stock. I know this is a forum for Creative, but are there any other manufacturers that will allow me to accomplish my goal, either with current cards, or discontinued cards? Thanks again
    Oh, and I will vote on that thread. I probably won't wait for them to release the decoder since I need it now, but I still believe Creative should be giving the customer what they want

  • Jar files download problems in Java Webstart with JRE 1.6

    We have encountered a few problems in Java Webstart with JRE 1.6
    In JRE 1.5, the jar files are getting downloaded onto the client
    machine with it's original names.
    Example :
    Server File Name : acm.jar
    Client File Name : RMacm.jar
    But in JRE 1.6, the jar files are getting downloaded with improper file names.
    Example :
    Server File Name : acm.jar
    Client File Name : 4fb074cc-66fc7407
    Moreover the path itself seems to be invalid.
    Example Path :
    JRE 1.5 path:
    C:\Documents and Settings\Administrator\Application
    Data\Sun\Java\Deployment\cache\javaws\https\D17.16.23.11\P443\DMtest\DMwebStart
    JRE 1.6 path:
    C:\Documents and Settings\Administrator\Application
    Data\Sun\Java\Deployment\cache\6.0\12
    Due to this, we are facing Classpath problems.
    What changes do we have to make to the code, for Java
    Webstart to work ?
    We are using JBoss 4.0.4 and JDK 1.5 in the Server
    On the client machine, we have IE 6 and JRE 1.6.01
    Help would be appreciated.

    Ask your Java Web Start question at:
    http://forum.java.sun.com/forum.jspa?forumID=38

  • Question about mapping a JAVA Interface with Flex

    I am using Granite Data Services (Java backend) with my Flex
    client.
    The Java server has an Interface called
    public interface IService {String getServiceName();}
    The flex client makes a remote service call on the server
    POJO which returns any implementation of the specified interface.
    On the flex side I have an interface
    [Bindable]
    [RemoteClass(alias="com.*****.proxy.pojo.IService")]
    public interface IService{function getServiceName():String;}
    As shown i am binding it to the server interface.
    From the client I make a call to the server and handle the
    result as shown below
    var serviceInstance:IService =
    (remoteO.testInterface.lastResult as IService);
    Alert.show("Service Name :
    "+serviceInstance.getServiceName());
    The call reaches the server and the remote method is being
    called however the Alert is not working.
    Please Help !!

    //Start other thread closeT
    System.exit(0)
    //code for thread closeT
    //wait 10 s
    Runtime.getRuntime().halt()
    Gil

  • Java Mapping with Stream API

    Hi,
      Can you please let me know when java mapping with STAX will be supported in Netweaver XI?
    Regards
    Sudhir

    Hi Sudhir,
      STAX is Stream API for XML. It works similar to SAX but is a pull based model. It can also work with multiple XSD's...
    XI support of STAX will moslty be supported when XI supports Java EE 5. We can say that this will be supported very soon...
    http://www.xml.com/pub/a/2003/09/17/stax.html presents the overview of STAX.
    Hope this helps
    Regards
    Kiran..

  • UME java mapping with ABAP

    Hi Experts
    I need to keep the users of my AS Java syncronized with some user in ERP.
    Thats means, when some user change some information in ABAP, i need to get this information and change in AS Java too, like email or password...
    I can't use CUA, and i can't use that function that syncronized ABAP user in AS Java automatically. There is another way to do it?
    Could somene help me?
    Best Regards
    Marcos Brandã

    Hi Martin
    Thanks for your response,
    When i was talking about the function that syncronized the user in abap and java, i was talking exactly about use ABAP user store as a source for UME. This solution doesn't wirk because the customer do not when activate this. He is worried about the performance and the information of the user in 2 diferent location, there is a lot of users in ABAP user store and he don't want this solution.
    I need to get just specific user to reply in Java stack user store. I kown how can i do it without get user password, but this do not resolve to me. I need the same user credencials in both systems.
    I will see th SPML / Idm and what kind of problems this solution brings to me, if this solve my problem, i will try to use it.
    There is another way, instead this two way? maybe get the encripted password, decript it and save in java user store with encription mecanism of ume?
    Best Regards
    Marcos Brandao

  • How to debug Java adventure with jdb

    Hi,
    I'm learning J2ee and I'd like to use and debug
    Java adventure. I tried to find some information but found nothing.
    What I tried to debug , is to start the j2ee server by adding the following options into the bin/asadmin.bat file:
    -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
    This it doesn't work because the j2ee server is started with the javaw.exe virtual machine. So I'm stuck here.
    My first question: 1- what visual debugger is great to debug J2ee apps ??
    I'd like to known what are the steps to:
    2- how to start the j2ee server in order to attach the jdb or a visual
    debugger ?
    3- when starting the j2ee server, what do i have to do in order to step
    into the code source of Java adventure and follow function calls ?
    4- how do I have to start the jdb to attach to the J2ee server ?
    5- Any useful tip to debug J2ee apps ! :-)
    Thanks in advance !
    Waltereo

    Hi,Hello
    I'm learning J2ee and I'd like to use and debug
    Java adventure. I tried to find some information but
    found nothing.
    What I tried to debug , is to start the j2ee server by
    adding the following options into the bin/asadmin.bat
    file:
    -Xdebug
    ug
    -Xrunjdwp:transport=dt_socket,address=8000,server=y,sus
    end=nThat looks OK.
    This it doesn't work because the j2ee server is
    started with the javaw.exe virtual machine. So I'm
    stuck here.javaw.exe implies you are on a win32 machine. The default
    debugging transport on win32 is shared memory... but you specify
    a socket connection on the debugee command line above. This
    means you need to specify sockets on the debugger side as well.
    For example:
    jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8000
    Note the port number (8000) matches the value you specified
    when starting the debugee.
    >
    My first question: 1- what visual debugger is great
    to debug J2ee apps ??For a list of debugging tools, check this web page:
    http://java.sun.com/products/jpda/using.html
    Many of these products work well in a J2EE environment.
    Most of them are either free, or come with an introductory
    "try before you buy" offer.
    I'd like to known what are the steps to:
    2- how to start the j2ee server in order to attach
    the jdb or a visual
    debugger ?You are on the right track with the flags/options you
    mentioned.
    3- when starting the j2ee server, what do i have to
    do in order to step
    into the code source of Java adventure and follow
    low function calls ?The code you want to examine needs to be compiled
    with the "-g" flag added to the javac command line.
    When -g is specified, javac will save information
    in the .class files that is used later during debugging.
    4- how do I have to start the jdb to attach to the
    J2ee server ?See above...
    For more coverage on this topic, refer to:
    JPDA Connection and Invocation Details
    http://java.sun.com/j2se/1.4.2/docs/guide/jpda/conninv.html
    5- Any useful tip to debug J2ee apps ! :-)That is a bit outside the scope of this forum... sorry.
    Any useful tips will depend on what J2EE app server you
    are using. Most of the well-known servers come with
    a debugging guide. For example, take a look at:
    Debugging J2EE Applications in the SunOne Application Server
    documentation:
    http://docs.sun.com/source/817-2171-10/dgdebug.html
    Thanks in advance !Best Regards...

  • LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.

    Hello, LV 8.2.1 notes indicates the following bug fix:
    43SAIR2A  Fixed an issue where LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.
    I am running this version, and still have this behavior.  Is there anything I may be missing, and/or certain circumstances that may still be causing this?
    thanks in advance,
    Darren

    Darren:
    I looked at the CAR ID that you mentioned and the issue has been resolved in LabVIEW 8.2.1. To verify something similar, I ran the attached VI and things worked just fine. Please feel free to send me the steps to follow to reproduce the issue you are running into in 8.2.1.
    Regards,
    Rudi N.
    Attachments:
    MixedGraphs.vi ‏15 KB

  • How to use java integrate with ondemand

    Hi All,
    As i'm new to integration, can anyone help me to use java integrate with ondemand that inserts some records in ondemand and deletes some records from ondemand in secheduled interval basis.?
    Thanks in advance..!
    regards
    sowm

    Greetings,
    hi forum...
    how to use Java WebStart with EJB ? examples ?Well, for starters these are complementing, not 'cooperating', technologies. I presume, since EJB's do not - directly, at least - communicate with a web browser, that you intend for "Java WebStart" to somehow invoke an EJB?? Java WebStart is a technology for running client-side (Java) applications from the web browser - perceptively, the application resides on the server, but technically it, like an applet, is downloaded to the client and run there. Unlike an applet, however, it is not constrained by "sandbox" restrictions and does not have to be re-downloaded each time it is invoked - though the process allows for automagically updating the client-side with new versions of the application. ;) So, with this in mind, to "use Java WebStart with EJB" means little more than deploying an EJB client application with Java WebStart as the distribution channel.
    thanks
    minduRegards,
    Tony "Vee Schade" Cook

  • I have coverage with mixed formats -  some with PAL ( we think 4:3 ratio) and some HD. When I chose

    I have coverage with mixed formats -  some with PAL ( we think 4:3 ratio) and some HD. When I chose our sequence settings to begin with, is there a way of preventing some shots with bars either at left and right or top and bottom?

    Choose PAL 4x3 and scale down the rest.

  • Using Java Dictionary With Oracle

    Can Someone tell how can i configure my java dictionary with oracle...Currently if a create a table from my IDE and then deploy it it  deploys to the Default SAP DB ...how do  i directrly create  tables in oracle by just  specifying the Deploy option ...
    And further  on  I want my web Dynpro application to talk with oracle db..how do i acheive this..
    Please Help!!

    Hi, 
             Does this mean that the additional features of The Java Dictionary (bufferring etc ) can only be implemented if we ONLY connect to the SAP DB---- YES
    If I have to utilize the services of Java Dictionary in my application i can only use The SAP DB database -- YES
    You deploy a dictionary project to create a table in the DB.
    When it is a DB created and used by Web AS ,it is possible to create tables in that DB with dictionary project using the standard connection parameters specified in visual admin.
    Java Dictionary purpose is to create a DB abstraction by providing a standard interface to create tables whatever the DB used by WebAS maybe.
    Regards
    Bharathwaj
    Edited by: Bharathwaj R - Hope this makes it clear !

Maybe you are looking for

  • Can't transfer contacts from ipod touch to ipad mini!!

    Hi My son has several contacts on his ipod touch (5th gen). I simply want to move these to the new ipod mini we've just bought him. I've followed all the articles on the Apple support pages but can't figure out how to do this. Synced old ipod via itu

  • Error creating AIR file: could not generate timestamp

    I have been getting this error the last few days. Error creating AIR file: could not generate timestamp: sun.security.validator.BalidatorException:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find v

  • Could not get IOR from Domino Server while provisioning Lotus Notes

    Hi all, There are two servers that have OIM installed, development server and test server. From development server, we can provision to Lotus Notes just fine. But for test server everytime when provision to Lotus Notes. There will be an exception Not

  • HP LaserJet Pro 200 m251nw - Printing Gray instead of Black

    HI, Hoping someone can help. I'm currently using a HP LaserJet Pro 200 m251nw printer, just over a year old, and it all of sudden started printing gray where it should be 100% black. From what I can see all the other colors seem to work fine.  I saw

  • Scanner Software for Mac?

    I've been using Nuance PaperPort for years on my PC and absolutely love it.  If anyone is familiar with that program and could recommend something comparable for use on a Mac, I would appreciate it.  PaperPort is a document management software that w