How to draw in class from out side of it ???

Hi
Im trying to create :
class MySomething extends Component {
public MySomething() {}
public void paint(Graphics g) {
g.drawString("MySomething",10,10);
but when i call it from a applet it doesnt draw in the applet.
Thanks for all the help

Cross-posted:
http://forum.java.sun.com/thread.jspa?threadID=606488

Similar Messages

  • WEB reports can it possible to access from out side domein

    Hi, i want  information whether WEB reports can be access from

    Hi all,
    WEB reports can it possible to access from out side domein. If yes please tell me how..

  • How to load java class from jsp page?

    hi all!
    Does anyone know how to load java class from jsp page?
    I try to load java class from jsp page.
    Is it possible to load java class fom jsp page?
    thanks and have a good day!

    What I mean is How to load/open java class file from jsp page?
    I think we can open Applet from jsp page by using
    <applet code=helloApplet.class width=100 height=100>
    </applet>
    but, how to open java class which is an application made by Frame?
    thanks and have a good day

  • Manage multiple computers from out side

    Hi ,
    i want to manage 2 computers from out side my network. Ihave time machine, dynamic ip, wha ti wanted is able to log in from out side to this 2 computers. what is the best option ?
    thanks in advnace

    power mac, you could use other software like timbuktu or logmein. If you wanted to you Apple Remote Desktop, you would have to set up VPN so the mac you would be using to control the other ones is part of the network.
    Regards.

  • While connecting to the default instance from out side of the server it's reaches to Named instance ?i

    Hi All,
    We have two named instance in "test" server. the names like test\a & test\b... The tcp\ip for test\a is dynamic and for test\b is default port 1433... Now customer requested to install the default instance...we had an issue with installation
    that is the default port number is in use so, the default installation failed and then i changed the settings in registry to use the dynamic port for default instance and then i manually start the sql servers...seems all are good...but when i connecting this
    default instance from out side of the box through SSMS it's pointing to the named instance which one having the default port number(test\b).
    We can change the port number for test\b and assign that port to default instance...but the applications which are connecting to the test\b those are using the default port number...so, we don't want to disturb the connectivity...
    is there any way to fix this issue with out changing the port number for test\b ?
    it is urgent...we have to fix this issue ASAP.. 
    Thanks in Advance,
    rup

    Hi rup,
    Glad to hear the issue is resolved.
    As your post, if SQL Server is configured to use dynamic port,
    it is difficult for application connectivity because the port number selected changes every time that the Database Engine is started.
    From your description, you have changed the dynamic port number to static port number. To avoid a common pitfall, please also ensure that 
    you have deleted the entry (0 or some random port) for dynamic port in SQL Server Configuration Manager. For more details, please review this
    blog.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • How to call Java class from Forms 6i?

    Hi friends,
    I need to call a Java class from my Forms 6i application.
    (It runs under WIndows XP. It's a client/server application and I have only the client and the Form builder installed on my PC)
    I don't know almost anything about Java's world so your help would be very useful for me.
    Could you tell me exactly what i have to do?
    I've read in metalink several Notes, but they supposed that the Java architecture is already installed in the computer.... I only have the default installation of Developer 6i... so I would need to know:
    - How to install/configure the neccesary to execute Java classes without problem
    - How to invoke the .class from Forms 6i.
    Thanks a lot
    Jose.

    And also this one:
    Problem Description
    Installed Forms 6i Rel 2 on a MS Windows machine. When trying to Import the Java
    Classes getting the errors
    PDE-UJI0001 Failed to create the JVM
    Solution Description
    You need to to install JDK 1.2.2 to run the Java Importer. And set the PATH's
    and classpath's correctly.
    Explanation
    1. Download and install the JDK 1.2.2.
    Possibly available at: http://java.sun.com/products/archive/
    2. Assuming the JDK 1.2.2 is installed in c:\jdk1.2.2 directory and the JRE in
    C:\PROGRA~1\JAVASOFT\JRE\1.2 directory; ORACLE_HOME=C:\Dev6iR2.
    Set the PATH to
    set PATH=c:\jdk1.2.2\bin;C:\PROGRA~1\JAVASOFT\JRE\1.2\bin;C:\PROGRA~1\JAVASOFT\JRE\1.2\bin\classic;%PATH%
    ( If you are using ias9i then the JDK 1.2.2 comes with the ias installtion ,
    in this case please set the PATH to
    D:\ias9i\Apache\jdk\bin;D:\ias9i\Apache\jdk\jre\bin;D:\ias9i\Apache\jdk\jre\bin\classic;%PATH% )
    3. Set the CLASSPATH to set CLASSPATH=%CLASSPATH%;C:\Dev6iR2\TOOLS\COMMON60\JAVA\IMPORTER.JAR;.
    (If you do not set the CLASSPATH correctly you will get the error
    PDE-UJI002 Unable to find the required java importer classes)
    4. Now run the Forms Builder by using the command.
    C:\Dev6iR2\bin\ifbld60.exe
    Now the Java Importer Should Run fine.
    Francois

  • Not able to sign in in FBA from out side the server.

    Hello All,
    I have created https enabled web application and sitecollection using power shell. After creating web application, I have enabled claimed based authentication using below mentioned code :
    $wa = get-SPWebApplication https://tenant-test02.mydomain.ch
    $wa.UseClaimsAuthentication = $true
    $wa.Update()
    I have enabled FBA on my sharepoint foundation 2013. I am using default login page for login mechanism. While accessing pages from the SharePoint server, login mechanism works successfully. But when I am trying to open same site from out side the network,
    it shows the login page but its showing error message when clicking on "Login" button.
    From the co-relation Id I am getting below error message.
    "Cannot get Membership Provider with name "mycutomprovider". The membership provider for this process was not properly configured. You must configure the membership provider in the .config file for every SharePoint process"
    Any suggestion ?

    Hi Suhil,
    According to your description, my understanding is that the error occurred when you accessed the site with FBA from outside.
    Did you add the membership provider settings to the machine.config or to each web.config files?
    If not, please refer to the link below to implement this:
    http://chrisbarba.com/2013/07/16/sharepoint-2013-forms-based-authentication-fba/
    If you access the extended web application from outside, then please check if the extended zone has been configured to use the form based authentication.
    http://technet.microsoft.com/en-us/library/cc261814(v=office.15).aspx#section3
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to call java class from pl/sql procedure ?

    Hello everyone,
    My query is..
    There is one pl/sql stored procedure which is doing some business logic and storing data in some columns of one table, suppose the table name is 'ABC' .. and the rest of columns of table ABC are getting updated using java class. Now my problem is whenever I insert data in ABC using store proc.. i have to call that java class so that it will update the rest columns ( why java class for updating the columns in ABC is ..because that logic cant be done from pl/sql proc.. it has to be done using java )
    and the other thing is.. oracle is in one machine and java is in another .. :(
    hope ..u can help me out !!
    Thank in advance !!

    but that updation have to be done from java code only.. we are using GIS tools .. have to create some shape files and update the column with that shape file.. so creation of shape file has to be done from java code only..
    so how to call java class file which is on another machine and oracle in another..

  • Reading excel  sheet from out side of the server though sql developer.

    Hi ALL,
    Is it possible to read the excel sheet from the out side of the oracle server.
    If it possible please send me the sample code.

    Duplicate thread.
    Reading excel  sheet from local system though sql developer
    Also a FAQ
    SQL and PL/SQL FAQ

  • How to instantiate a .class from a JSP?

    Hi,
    probably it's a simple problem, byt I'm new in JSP and I couldn't work it out.
    I'm converting a SSJS Netscape Application to JSP. My needing is to write a Java .class containing only static methods, to call them from the JSP pages.
    For trying, I wrote a simple class that I call from a JSP page, but I get this error:
    Error: 500
    Location: /JSP24H/cap01/Simple2.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for
    JSPC:\tomcat\work\localhost_8080%2FJSP24H\_0002fcap_00030_00031_0002fSimple_00032_0002ejspSimple2_jsp_0.java:80:
    Incompatible type for =. Can't convert void to java.lang.String.
    v = GenFunction.messaggio();
    ^
    This is the JSP instantiating the Java class:
    <HTML>
    <HEAD><TITLE>A Simple JSP</TITLE></HEAD>
    <BODY>
    <FONT COLOR="blue" FACE="Trebuchet">
    <CENTER>
    <%@ page import = "GenFunction" %>
    <% out.println("My name is Charly !" + "<br>"); %>
    <%
    String v = " ";
    v = GenFunction.messaggio();
    out.println( v );
    %>
    </CENTER>
    </FONT>
    </BODY>
    </HTML>
    And this is the class instantiated from JSP:
    public class GenFunction {
    public static void main (String args[]) {
    public static String messaggio() {
    String a;
    a = " Hello world !";
    return a;
    In order to be sure about what I'm doing, I opened a DOS window and I called the class within the following:
    public class call_Class {
    public static void main (String args[])
    String v;
    GenFunction x = new GenFunction();
    v = x.messaggio();
    System.out.println(v);
    When I instantiate the class from DOS it's all right, why not from JSP. It seems to be returning a void value (I tried with casting too but without success).
    Thanks !

    Do you have multiple versions of classes in the server CLASSPATH somehwhere? If you have changed the class, and not bounced the server, try bouncing the server(may be using cached class)
    -Mak

  • How to extend a class from super package?

    Say I have a dir a\
    in dir a\ there is a dir b\
    in b\ there is a class called DerivedClass
    in a\ there is a class called ExtendedClass
    how do I extend ExtendedClass from DerivedClass?

    package a.b;
    import a.ExtendedClass;
    public class DerivedClass extends ExtendedClass{
        //define class members
    This is interesting. But the question is, how does java know where is package b??     By the classpath variable - the classpath is set to one directory above 'a'. When you say
         a.ExtendedClass, since the classpath is set to the immediate parent of a, it searches the child directories
         for a directory called 'a' and upon finding it, searches for a .class file 'ExtendedClass'.
         Similarly when you say a.b.DerivedClass, the search begins in the parent directory for a directory called a and then
         a directory 'b' inside it on finding which it searches for DerivedClass.class
    Alternatively you could have defined DerivedClass to be in package 'b'.     
         package b; //note the difference. Its b and not a.b
         import a.ExtendedClass;
         public class DerivedClass extends ExtendedClass{
             //define class members
         }in which case, you should set the classpath to
    1. a's parent directory
    2. a itself
    The parent directory cp is still required to locate a.ExtendedClass
    The fully qualified name of DerivedClass is b.DerivedClass
    Thus if #1 alone were present, since 'b' is not directly inside the parent directory,
    b.DerivedClass would never be found
    Hence the #2 is required-the search should start from the directory 'a' (as directory 'b' is inside 'a').
    therefore, a package is a directory.No, package is a very java specific thing and though logically package names should match directory names, they
    arent the same.
    cheers,
    ram.

  • How to call java classes from javascript?

    i have a button which calls javascript i need to access a class to update the values in the database.. how do you call the java code from within the javascript?
    the class is stored under tomcats classes directory and is accessed:
    com.Database.Employee
    the method is called : UpdateEmployeeDetails
    the button
    <input type="button" value="Save" onclick="submitForm('save')" />the javascript
    <script language="javascript">
            function submitForm(process){    
                document.myForm.action="update.jsp";
                document.myForm.submit();
    </script>

    is it not possible?
    do i have to refresh the page and read in the values like...
    <%
    String ename = request.getParameter( "EmployeeName");
         session.setAttribute( "ename", ename);
    %>and then call the class from here?
    looking around ive come across ajax but i dont know how to use it and what you need to install and if its compatable with tomcat and jsp?
    is ajax better or not really worth it?
    i have anything up to 100 fields that need saving at one save click

  • How to send Subtopic Message From Server-Side to Client ?

    I’m new at flex and i have a new question about Flex
    Message Service.
    How to send messages from Server-Side Java Code with
    Subtopic?
    For example.
    I customed a Flex Message Adapter in Tomcat Server , with
    this Adapter , i can send message to Client with following code .
    ---------------------Send message to Client------------
    MessageBroker msgBroker =
    MessageBroker.getMessageBroker(null);
    String clientID = UUIDUtils.createUUID(false);
    AsyncMessage msg = new AsyncMessage();
    msg.setDestination("CustomMsgServiceDes");
    msg.setClientId(clientID);
    msg.setMessageId(UUIDUtils.createUUID(false));
    msg.setTimestamp(System.currentTimeMillis());
    msg.setBody(clientID + "this is my message from server! \n");
    msgBroker.routeMessageToService(msg, null);
    ---------------------Send message to Client------------
    But i want send a message that have Subtopic to the Client ,
    How to do ?
    Thank you for reply.

    There's a white paper that talks about this subject -
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=8f1eb6ea

  • How to combine the classes from 2 jar files into 1?

    Hi there
    I have got 2 jar files with the same name but the classes that they contain are different. So, I want to combine those 2 files into 1. Could anyone please tell me how to add the classes in a jar file to another jar file?
    Thanks for your help!
    From
    Edmund

    The jar utility allows you to extract files as well as put them into a jar. This is in the java docs.
    You might have to hand modify the manifest file if it was hand modified in the first place. All you should have to do is copy the text from one file to another. The manifest will have the same name so you will have to extract to different dirs so it isn't overwritten.
    Steps:
    -Create dir1 and dir2
    -Extract jar1 into dir1, Extract jar2 into dir2.
    -Manually examine manifests and combine if needed.
    -Copy files from one dir to another.
    -Use jar tool to create new jar.

  • How to run select query from one SID to fetch record from another SID?

    I have two SID, one is AAA and another is BBB and the connection name is A1 and B1 respectively. I want to run one select query from A1 connection to fetch record B1. Can anyone help me how I can connect from one SID to another SID?

    Hi 869357,
    You can also use the copy command. (Works with limited types)
    try:
    help copyRegards,
    Turloch

Maybe you are looking for

  • Crashes and disappears!

    Hello Im new to this...put my sony cam corder using firewire, to transfer mini DV tapes image/sound comes through and saved into clips. When I click on clip to move it the program crashes and dissapears! tried re-instaling same error. Tried for hours

  • Partial delivery without GR Based IV in split valuation scenario

    Dear, We are using split valuation for our materials. I'm reading on http://help.sap.com/saphelp_di46c2/helpdata/EN/47/61017e49f011d1894c0000e829fbbd/frameset.htm the following sentence: In the case of partial deliveries for a purchase order, you can

  • PS6 hangs with a message waiting for Bridge

    I recently moved to a 64-bit machine.  Initially after installing PS6 things worked fine.  This morning when I opened it, it hung with a message about waiting for Bridge.

  • Dynamic Navigations between views

    Hi, I have 10 views in my web dynpro application. Based on the user roles I want to navigate between differnet views. For one user there might be different sequence and for other there might be other sequence. Please let me know how to dynamiclly nav

  • Can't save javascript code on WAD

    Hi experts, I used javascript object on WAD, but seems after I changed the java script code, it doesn't affected on server. because after the change, the source code shown the original code but not changed. does it caused by server cache or other som