Arabic in Applet

How can i get Arabic Support in a form applet running thru JInitiator. What Java fonts should i use.
Thank U

hallo brother,
for me both look similar..... :))

Similar Messages

  • Communication between JApplet and Applet on the same web page

    Hi Freinds
    I have a JSP page containing two applets as follows :-
    <jsp:plugin type="applet" code="TreePageJavaClass.class" codebase="/MYOA" width="200" height="300" name="Applet1">
    </jsp:plugin>
    <jsp:plugin type="applet" code="TreePageJavaClass2.class" codebase="/MYOA" name="Applet2" width="200" height="300">
    </jsp:plugin>
    First applet extends JApplet class and has a tree constructed using swing.
    Second applet extends Applet class.
    Now I want to call a method in second applet on selecting a particular tree node on first applet. I can call method on second applet from first applet when both extends Applet class (not JApplet)
    So please tell me what's the problem here and how it can be solved.
    Thanks

    There is a Middle Eastern version of Adobe Dreamweaver CS4-ME, with full support
    of Hebrew, Arabic, Farsi and other languages,
    see http://www.fontworld.com/me/dreamweaverme.html

  • Ls shows ??.html after creating file with arabic name using java applicatio

    Hi,
    I have a java application which is taking attachments and saving to the file system. when somebody attaches any file with the file name in arabic, the ls command shows ??.html , ????.html etc. The application is also not able to find the file later, cos it expects the arabic named file. How can I accomplish this task (" how can i rename a text file with an arabic name")
    Any help would be highly appreciated
    Many thanks in advance
    Ushas Symon

    I found a sample class that also uses HttpServlet and it won't work on my computer Either:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    public class Circle extends HttpServlet
        public void doGet(  HttpServletRequest request,
                            HttpServletResponse response)
                                throws ServletException, IOException
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            out.println( "<BODY><H1 ALIGN=CENTER> Circle Info </H1>\n");
            try
                String sdiam = request.getParameter("diameter");
                double diam = Double.parseDouble(sdiam);
                out.println("<BR><H3>Diam:</H3>" + diam +
                "<BR><H3>Area:</H3>" + diam/2.0 * diam/2.0 * 3.14159 +
                "<BR><H3>Perimeter:</H3>" + 2.0 * diam/2.0 * 3.14159);
            catch ( NumberFormatException e )
                out.println("Please enter a valid number");
            out.println("</BODY></HTML>");
    }As for IE I tried setting all of my security to the lowest settings I have but it didn't work. I just noticed though that the IE explorer bar at the bottom states :
    Exception null.
    When the applet is first started. Not sure what to make of that.
    I don't think it's a dependancy error because when I make a reference to something that the compiler can't find I get a different error. Or if I miss importing something it just refuses to compile.
    I'm wondering if there's something wrong with my Java or the Servlet classes?
    Thanks
    Ga'an djin

  • .Oracle*Terminal frmweb  error in 11.5.10.2 Vison after enabling Arabic.

    Dear Frioends,
    I installed 11.5.10.2 VISION Instance and for enabling Arabic Language i followd the Note (Oracle Applications NLS Release Notes, Release 11i (11.5.10.2) [ID 316804.1]) and the section Installing Translations Using AutoPatch
    In OAM enabled Arabic language.
    Update multilingual tables.
    Applied Patch using adcrptop.sh from NLS Media(Arabic)
    Logging in wih English works fine but
    while logging in with Arabic language, html pages are working fine but for any java applet it gives the error
    .Oracle*Terminal frmweb <some arabic words>.
    Let m know what could be the reason?
    Regards,
    DB

    Hi,
    Regenerate the Arabic menus/forms via adadmin and check then.
    What does this query return?
    SQL> select NLS_LANGUAGE
    from fnd_languages
    where installed_flag in ('B','I');Regards,
    Hussein

  • Text in applet

    hello !!
    my problem is i want to write a arabic text in my applet and show it with no probleme !!
    Message was edited by: gotterez
    gotterez

    That can be done. See this tutorial:
    http://java.sun.com/docs/books/tutorial/i18n/index.html

  • Arabic letters appear as _ in java Application

    Hi All;
    We have one of our web based application that is using Java plugin (JRE 1.3.1) where Arabic letters appear as "_"
    I tried to download a newer version of i18n.jar/font.properties.ar with no luck. only few letters appear (actually 4 only) but the rest appear as _
    any help will be appreciated

    Or use a different font. (This is an applet, right?) I don't know how you ensure that your client actually has a font that can render Arabic characters, though.

  • Japanese Characters in a Windows Applet.....

    I know this might seem like the Greek Character discussion but the problem is a bit different because of the applet's limited font selection.
    Here's the basic issue:
    I need to be able to display a variety of languages in an applet environment, including Japanese, Cyrillic (which mostly works), Hebrew, Arabic, and just about anything else. Some character sets (like Cyrillic) show up, others, like Japanese, just appear as boxes.
    Now the question, how can I get the font I need to display the text properly in an applet environment? Is there an INI file setting somewhere that I can fiddle with?
    Any help would be greatly appriciated! Thanks,
    ->David Priebe

    Check out the link below -- it's a five page document that should answer most if not all of your questions:
    http://www.onjava.com/pub/a/onjava/2001/04/12/internationalization.html
    V.V.

  • Change the applet language!

    hi all,
    how can i change the character set of an applet! to another language! arabic for example............??!!

    try:
    String Language="en"; // English
    String Country="US";
    setLocale(Language,Country);
    for country code, see http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html
    for language code, see http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt
    for more info, look under Internationalization in the JDK doc.
    V.V.

  • Java arabic enabled! IMPORTANT!

    Hi All,
    two questions:
    1-How can i make my java program supports arabic language (read & write)?
    2-Is there a java editor and compiler where i can use both English & Arabic?
    thank u...

    Hi Espy,
    Brian: Do you mean how do we support "Right To Left" languages? All systems that I know about always support "Left To Right" languages as a subset of anything else they
    support.
    Tarek: Yes, that is what I meant. Sorry for the confusion. I am trying to take Arabic input from my applet. But I am facing major bugs when the applet runs on Windows 95 if
    it does not support Arabic. Some glyphs show as squares when they combine with other glyphs. and there is a problem with the leading space, such as I write in to the
    JtextField, the string starts moving left!
    OK, I understand. We support Arabic with the Java 2 platform starting with release 1.2. If your applet is running on a browser that does not have a JavaTM 2
    Virtual Machine1 (JVM) then you will not be able to do Arabic. A second point is that we support Arabic using the Swing GUI toolkit. We do not support it in the AWT toolkit. So you will be experiencing problems if you are trying to use AWT. If you are having problems with a Swing applet under Java 2, let me know and we can try to look at your problem some more.
    The reason we need compilers is that computers neither speak nor understand English, French, Arabic or any other language familiar to the carbon-based life forms known as"human beings". Instead computers understand languages that look like this:
    FFFF0000 00000010 00000008 00000000 00000000 00000000 00000000 00000000 00000000 00000000 4E560000 422DFDD6 34EBA0BA 84EBA0160 4E5E4E75 846D6169 6E000000
    4E560000 6E005E20
    This is called machine code. To make matters worse, just like different people use different languages, so too do different computers use different machine languages. Therefore the same program may be expressed in completely different ways on different kinds of computers.
    I hope this will help you.
    Thanks
    Bakrudeen
    Technical Support Engineer
    Sun MicroSystems Inc, India

  • Problem with threads within applet

    Hello,
    I got an applet, inside this applet I have a singleton, inside this singleton I have a thread.
    this thread is running in endless loop.
    he is doing something and go to sleep on and on.
    the problem is,
    when I refresh my IE6 browser I see more than 1 thread.
    for debug matter, I did the following things:
    inside the thread, sysout every time he goes to sleep.
    sysout in the singleton constructor.
    sysout in the singleton destructor.
    the output goes like this:
    when refresh the page, the singleton constructor loading but not every refresh, sometimes I see the constructor output and sometimes I dont.
    The thread inside the singleton is giving me the same output, sometime I see more than one thread at a time and sometimes I dont.
    The destructor never works (no output there).
    I don't understand what is going on.
    someone can please shed some light?
    thanks.
    btw. I am working with JRE 1.1
    this is very old and big applet and I can't convert it to something new.

    Ooops. sorry!
    I did.
         public void start() {
         public void stop() {
         public void destroy() {
              try {
                   resetAll();
                   Configuration.closeConnection();
                   QuoteItem.closeConnection();
              } finally {
                   try {
                        super.finalize();
                   } catch (Throwable e) {
                        e.printStackTrace();
         }

  • Open web pages from an applet

    I'm developing an applet that has to open some web pages.
    The only way I know is to use the method showDocument that
    needs and URL. So, how to pass parameters to the web page?
    I don't want to put them in the URL: everyone can see
    "secret data"!
    Help me, please.

    Take a look at this example that uses a JEditor pane to hold the HTML page.
    //Create a new JEditor Pane
    jep = new JEditorPane( );
    //Ensure the pane is not editable
    jep.setEditable(false);  
    //Use this to get local HTML file
    URL fileURL = this.getClass().getResource("Manual/Manual.htm");
    //add the html page to the JEditorPane
    jep.setPage(fileURL);Ok the core line of code here is this.
    URL fileURL = this.getClass().getResource("Manual/Manual.htm");The standard method for accessing a html file via a URL is thus. As you can see its very similar.
    URL fileURL = new URL("http://www.comp.glam.ac.uk/pages/staff/asscott/progranimate/docs/Manual/Manual.htm");this.getClass().getResourse() will return the file location of the class you are working with.
    By doing the following you can access manual.html in a folder called Manual that sits in the same file location as the class file you are using.
    URL fileURL = this.getClass().getResource("Manual/Manual.htm");I hope this helps.
    Andrew.

  • Unable to load database driver from my applet's jar file

    I'm trying to set up an applet that will talk to a MySQL database. I have no problem connecting to the database as I'm developing the code ("un-jarred"), but when I create a jar file of my code to test through a web browser, I cannot connect to the database due to the usual ClassNotFoundException. I have included mysql-connector-java-3.1.12-bin.jar (the current driver) in the jar, but I don't know if I'm supposed to supply some info through an attribute to the applet tag to let it know that the jar contains the driver it needs or if I have to call the driver differently in my code.
    Any help is appreciated, thanks.

    The simplest approach is always the best. :)Abso-lutely.
    Awesome, that worked perfectly. I Included the extra
    jar file in the applet tag and now my applet makes
    some sweet lovin' to the database.And you have succeeded where thousands have failed. Congratulations.

  • Applet java file not refreshing in browser

    I have an applet that I am updating and I am not seeing the corresponding update when I open the web page. I can manually download the java class file and look inside it and it definitely is the updated file. I have deleted the browser history. (I am running tests with Firefox 3, IE7, and Safari 4 public beta). Is there something else I need to do to make sure the browser pulls in the latest version of the class file referenced in the html?
    Here is the code:
    <HTML>
    <HEAD>
       <TITLE>A Simple Program</TITLE>
    </HEAD>
    <BODY>
       <CENTER>
          <APPLET CODE="SendRequest.class" WIDTH="500" HEIGHT="150">
          </APPLET>
       </CENTER>
    </BODY>
    </HTML>The applet refers to a hard coded URL to read through a urlconnection. It is always reading a file and showing content, but it is not showing the right file. If I change the name of the referenced file in the java program, it looks like the browser has cached the referred file, rather than throwing and error and saying the file doesn't exist.
    Here is the java
    import java.applet.*;
    import java.awt.*;
    import java.net.URLConnection;
    import java.net.URL;
    import org.w3c.dom.Document;
    import java.lang.String;
    import java.io.*;
    public class SendRequest extends Applet {
        @Override
        public void paint(Graphics g) {
            g.drawRect(0, 0, 499, 149);
            g.drawString(getResponseText(), 5, 70);
        public String getResponseText() {
            try {
                URL url = new URL("http://myserver.com/stats/logs/ex20090603000001-72.167.131.217.log");
                URLConnection urlconn = url.openConnection();
                BufferedReader in = new BufferedReader(
                                    new InputStreamReader(
                                    urlconn.getInputStream()));
                String inputLine;
                String htmlFile = "";
                try {
                    while ((inputLine = in.readLine()) != null)
                        htmlFile += inputLine;
                    in.close();
                    return htmlFile;
                } catch (Exception e) {
                    return "Can't get the string.";
            } catch (Exception e) {
                return "Problem accessing the response text.";
    }Any help would be appreciated. I heard that some files may cache more persistently than others, but I don't fully understand the details.
    Thanks,
    Jim

    Check this [document loader example|http://pscode.org/test/docload/] & follow the link to sandbox.html for tips on clearing the class cache. That relates specifically to caching a refused security certificate, but class caching is much the same. As an aside, getting a console can be tricky in modern times (unless the applet fails completely). It is handy to configure the [Java Control Panel|http://java.sun.com/docs/books/tutorial/information/player.jnlp] to pop the Java console on finding an applet (Advanced tab - Settings/Java Console/Show Console).
    Of course there are two better tools for testing applets, especially in regard to class caching. AppletViewer and Appleteer both make class refresh fairly easy. Appleteer is the better of the two. I can tell you that with confidence, since I wrote it. ;-)

  • How to print Arabic characters in Oracle BI Publisher report

    Dear Experts,
    Kindly suggest me how to print arabic characters in BI Publisher.
    Regards,
    Mohan

    see link
    https://blogs.oracle.com/BIDeveloper/entry/non-english_characters_appears

  • EJB 3.0 - Communicate an Applet with a Session Bean

    Hello
    I'm developing an EJB 3.0 app (eclipse and glassfish tools bundle), and I have an applet that has to use remote session beans.
    QUESTION: Is it possible for the applet to connect to EJB?
    QUESTION: By creating a J2EE application client project, can I use @EJB annotations to inject the session bean directly to the applet, avoiding the JNDI lookup?
    (since I imagine that the anwser to the second one is NO, I do the following consideration)
    Given an application client project, I imagine that this application can run remotely on a client machine/JRE. Then this application can use Annotations/injection facilities whenever it runs on a J2EE client container (which I assume consists of a set of libraries provided by the application server vendor, Glassfish in that case). Could this application be deployed using Java Web Start? If so, why can't it be deployed as an applet? (both options run in a client JRE, don't they?).
    QUESTION: In either case (applet or JWS), how do I have to package the JAR file (using Eclipse) so that it contains the needed libraries for accessing the EJB? Which are those libraries?
    At the time being, I'm trying to implement a sample application that follows the "Applet doing JNDI lookup" approach. I have:
    - an EAR project
    - an EJB project (containing an Entity Bean and a Stateless Session Bean with a @Remote interface)
    @Remote
    public interface HelloRemote {
         public String hello(String name);
    @Stateless
    public class Hello implements HelloRemote {
         @Override
         public String hello(String name) {
              return "Hello "+name+"!!";
    }- an Application Client project (containing the applet code):
    public class ClientApplet extends JApplet {
         public void init(){     
              try {
                   Context jndiContext = getInitialContext( );
                   HelloRemote server = (HelloRemote) jndiContext.lookup(HelloRemote.class.getName());
                   setContentPane(new JLabel(server.hello("Gerard")));
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         private Context getInitialContext() throws NamingException{
              Properties props = new Properties();
              props.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
              props.setProperty("org.omg.CORBA.ORBInitialHost", "myhost");
              props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
              return new InitialContext(props);
    }- a static web project (with a sample web page that contains the applet object the corresponding applet JAR file)
    I tried to export the Application Client project as an "application client JAR", in the hope that the java EE libraries bundled with glassfish (listed as libraries of this project) would be packaged too.
    No success, so now I'll try to copy all the JAR files (one by one) into the +\WebContent\+ folder of the Web Project, and add references to each of them in the archive="" attribute of the +<applet>+ HTML tag. Although this might work, I suspect that I am missing the good/easy way of doing it. Any suggestions?
    Thanks in advance,
    Gerard
    Edited by: gsoldevila on May 6, 2009 7:09 AM

    An Applet can communicate with an EJB via JNDI lookup but I would (personally) use an intermediate Servlet to handle this. Client to Servlet communication is http whereas to ejb is iiop - which might be blocked.
    Injection only works in managed classes (EJB, Servlet, Listeners..) and an Application Client main class. So yes you could use an app client for handling resource injection.
    m

Maybe you are looking for

  • Questions, Suggestions, Bugs - results from 7-day workshop

    Last week we (AMIS that is) finished yet another JHeadstart workshop with one of our customer’s development teams. In this workshop we focused on Struts, BC4J and both JSP and UIX. (so no Toplink this time). By the way: we used JHeadstart 9.0.4.5 in

  • How can i find a total of minutes from and to a certain number

    I need to track the amount of time to and from a certain number on my cell phone. How do I do that?

  • Hp laserjet 3055 won't scan in windows 8

    I have a HP Laserjet 3055 All In One printer/scanner/copier/fax/cusinart and it will print on my new Lenovo desktop with Windows 8 but will not scan.  It is hooked up at the computer and the HP device by USB.  Little help for a Luddite out there?

  • Can't see sync folder in LR

    I would like to keep current year picture files in the sync folder and be able to edit them in LR. However, it doesn't show under my folders list for LR. Is there a way to do this? Update: finally got this to work.

  • Time Capsule won't stay on

    My Time Capsule will light up amber, but quickly shuts down. Ideas?