Java Swing and WIndows User Localles

HI,
We need to develop a java applet/application which can be switchable at run time to accept and display characters in multilanaguages. This java applet will run on a windows 2000 server with multilanguage pack installed. Is it possible to dynamically switch languages at run time. The machines default localle and operating system installation is US English.
We have tried some tests with traditional chinese and UI components in Swing but with no success in displaying or inputing valid chinese characters. Has anyone attempted a simliar thing and have any insights that may help.
Thanks in Advance,
Jono

Yes. It's called JList. Have a look at the tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/index.html

Similar Messages

  • Java Swing and windows listview control

    Hi,
    many programming languages have the listview control, to which you can define diferents kinds of data's organizers as Icon, Detail, List, etc.
    Somebody knows if java swing have a component as the listview ?
    thanks

    Yes. It's called JList. Have a look at the tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/index.html

  • How do I extract 1 page of a pdf file? How do I send that as a original for mac and windows users?

    How do I extract 1 page of a pdf file? How do I send that as a original for mac and windows users?

    This is not really a Numbers question.  I will provide an answer but suggest you make the question relavent for the forum where you post.
    1) Open the PDF in Preview
    2) select the menu item "View > Thumbnails"
    3) select the page you wnt to share
    4) copy (by using the key combination <command> + c OR select the menu item "Edit > Copy"
    5) select the menu item "File >  New From Clipboard"
    6) save as a new name
    7) share the new file

  • Os x serve 4 and windows users

    Hello,
    just migrated one of my servers to Yosemite 10.10.1 and Server 4.0.
    the objective is a share files between mac and windows users within a group (meaning all of them can see, read and write all files within the sharepoint).
    the directory is shared with AFP and SMB, the group of users has read/write access on the directory (users and group are managed in OD).
    I added ACLs on the directory : the group of users is full control on the sharepoint. And I propageted all permissions to subfolders and files.
    Everything works fine for Mac users, but not for Windows users : when they open a file they got a message saying that the file is already opened by an another application. Same issue if the windows user write a new file on the server.
    If i look at the permission on a subfolder, there is the full control for the group. If I look at a file (whatever from a mac or windows), there is a special access.
    I think the problem is there, but how to solve.
    Does somebody knows any magic command line to force propagation of ACL and permissions to files ? or any tips to solve that issue ?
    Thanks for any help
    Regards, Thomas

    Hi
    OK I have tried pritty much all the suggestions so far...the MAC has no problem connecting to the PC (there's no surprise! - it worked straight away but the PC cannot connect to the mac - here's what happens:
    I have the correct IP address and when I enter in the IP address and my short username, the PC prompts me with a username and password box as you would expect...but when I enter in the details, it just throws up another username and password dialog box and has changed the username to PCCOMPUTER/the-username-I-just-entered - so I click ok again, and it just throws the dialog box up again. I feel like I am so close, yet so far to connecting the PC to the Mac - it seems to get stuck in a loop at the last moment. Any ideas what could solve the problem?
    It doesn't seem to be a firewall problem as I turned them all off - and still got the same problem.
    Any other ideas?

  • Forms Authentication Error: User '' does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed

    I created a custom security extension following the steps listed in the Readme_Security Extension Sample. It works fine if I login as the user that is specified AdminConfiguration section of the rsreportserver.config file but if I
    log in as another user, I get this error: User '' does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed.  I've added the user to both System Administrator
    and System User roles to try to get it to work but still no luck.
    Does anyone know how to fix this?
    Thanks.

    Hi MetronM,
    The issue is due to that user have no permission to access the report server. In report manager, Reporting Services includes predefined roles that we can assign to users and groups to provide immediate access to a report server. Each role defines a collection
    of related tasks.
    You can refer to the following steps to assign corresponding role to the user.
    Open report manager.
    Click “Folder Setting” button. 
    Click “New Role Assignment” icon.
    Type the user name and select the corresponding role.
    There is an article about Granting Permissions on a Native Mode Report Server, you can refer to it.
    http://technet.microsoft.com/en-us/library/ms156014.aspx
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Java Swing and Flash

    Is it possible to create flash components (swf files) and include them in a Swing JFrame and be able to post data from and to it.
    For example, if the swf gui is showing a list of items, the list is coming from the Java application and then the SWF file gets included in a Swing JFrame. When user chooses an item from the list and clicks a button then the results is passed back to the Java application.
    Has anyone done something similar to this? How is this possible? Code samples would be appreciated.

    May be you can try out JFlash ...
    https://jflash.dev.java.net/
    They support only upto Flash 2 player... and it is still under development i guess...

  • Performance issue Java Swing under Windows 7

    Hello,
    we have MDI Java Swing application running under Window7. We got a big problem with performance in MDI Windows using AERO.
    Exist any way for Java to tell Win7 that it should not use Aero??
    Thank you,
    David.
    Edited by: 969767 on 6.11.2012 3:33

    If you try to open properties dialog for application (or app shortcut) there you can see "Compatibility" tab and there is check box "Disable visual themes". If we disable this theme our java swing app is very better performance under Windows 7. We need to disable visual theme via java code, if it is possible...
    Thanks.

  • Swing and windows system tray

    could anyone please tell me whether it is possible to have a java swing application running on a windows machine, minimise into the system tray?
    Thank-you.

    AFAIK no. This is because the system tray is rather platform specific. I believe it is possible to have your app tuck itself neatly away in a corner of your desktop, and obviously you can minimise to the task bar. However without soem kind of native addition (maybe a custom launcher?) you can't minimise to the system tray.
    Sorry
    :-(

  • Leopard server and windows users

    We run a mac + pc environment with some users on macs, many on pcs, and our office server is a windows exchange for email etc. As a multi-location consulting firm, we need to set up a good collaboration system that is hosted internally (to preserve confidentiality) and allows us to create a web-based knowledge creation, sharing and collaboration environment. We have looked at some of the new web services offers, but all are hosted by the providers.
    We are considering buying a mac leopard server and have the following questions:
    1/ will windows users be able to use the wiki, chat, calendaring and podcast facilities from their laptops without any problems, and will they have the same easy user interface?
    2/ does the wiki server enable group collaboration like:
    2a/ sending out email notifications on new posts (without changing our exchange server)
    2b/ allowing groups to create project and team specific areas
    3/ The problem we face is one of adoption. If we can make this as easy as facebook, then lots of people will migrate within 48 hours. But is this possible with the leopard server?
    4/ finally, we are based in Singapore and our offices are all in Asia? Do we need a lot of experienced Apple-savvy technical people to create any of these applications, or is leopard server as easy to use as a mac is for a home user?
    Any thoughts or inputs would help. FYI, alternatives we are evaluating are jive software's clearspace or basecamp or zoho's web based suites.
    thanks / Suresh
    Message was edited by: suresh Venugopalan Shankar
    Message was edited by: suresh Venugopalan Shankar

    suresh Venugopalan Shankar wrote:
    1/ will windows users be able to use the wiki, chat, calendaring and podcast facilities from their laptops without any problems, and will they have the same easy user interface?
    Yes, the web based interfaces work just fine for both OS's, the chat server is using jabber (clients on about every OS) and the calendaring is using the standards based iCalendar format.
    2/ does the wiki server enable group collaboration like:
    2a/ sending out email notifications on new posts (without changing our exchange server)
    2b/ allowing groups to create project and team specific areas
    I don't know of functionality to send out e-mail notifications on new posts, but you can subscribe to RSS feeds of things posted in the blog section of the wiki server. I'd need a little bit more information to understand what you're looking for as far as creating project and team specific areas.
    3/ The problem we face is one of adoption. If we can make this as easy as facebook, then lots of people will migrate within 48 hours. But is this possible with the leopard server?
    On the front end most of this stuff is very easy to use, and is in my opinion even simpler than facebook and such.
    4/ finally, we are based in Singapore and our offices are all in Asia? Do we need a lot of experienced Apple-savvy technical people to create any of these applications, or is leopard server as easy to use as a mac is for a home user?
    It's pretty easy to set the server up as long as you read the documentation. There's also a lot of resources online if you have problems (like this forum). It would probably be helpful to have someone familiar with LDAP systems and at least some command line usage on the server, but like I said, the documentation is pretty good. You can go read it to get an idea at http://www.apple.com/server/macosx/resources/
    Hope that helps out some.

  • Java Swing and Socket Programming

    I am making a Messenger like yahoo Messenger using Swing and Socket Programming ,Multithreading .
    Is this techology feasible or i should try something else.
    I want to display my messenger icon on task bar as it comes when i install and run Yahoo Messenger.
    Which class i should use.

    I don't really have an answer to what you are asking. But I am developing the same kind of application. I am using RMI for client-server and server-server (i have distributed servers) communication and TCP/IP for client-client. So may be we might be able to help each other out. My email id is [email protected]
    Are you opening a new socket for every conversation? I was wondering how to multithread a socket to reuse it for different connections, if it is possible at all.
    --Poonam.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Java swing and threading issue

    i am trying to update swing components from some thread. at my first try, i noticed this was a disaster. upon further research, i found out about the single-threaded model of swing events (i.e. event dispatching thread).
    i did more research and could NOT find a good example on how to update swing components from other threads. many examples were showing too much.
    can someone post a simple example on here? i just want to see how to properly update a swing component from a non-swing class using threading.

    I think its a simple example:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=621226
    Let us know what you think.

  • Wrong image refresh in java applet AND Windows 7

    I'm managing since few days a java applet that takes an image from an industrial product and shows it in a browser (simple web server).
    There is following issue: the image is not correctly loaded and refreshed in its own window if just opened but only if the applet is running on Windows 7. The issue is solved as soon as I reduce the window to icon (minimize) and then resize it. I'm looking into java documentation on how to manage the image rendering, maybe I have to override some update or redraw method more, but it is taking time and I'm still learning. NOTE that the window opened does show the issue only when the windows size is not completely shown in the monitor.
    Meanwhile I'm wandering if some of you faced and solved similar problem.
    Thank you in advance,
    Elena

    Thank you Nitin for your quick reply!
    These are the calling of the functions in the code. As you can see, before to show the image, we are managing a zoom/unzoom by mouse wheel and an addition of writings data on the image itself. All is working fine except on W7:
    public void paint(Graphics g)
         //System.out.println("[ImageFrame::paint my paint!!!]");
         this.PaintImage(g);
    public void update(Graphics g)
         // System.out.println("[ImageFrame::update]");
         this.repaint();
    public void PaintImage(ImageInfo imageInfo, float fps)
         if (imageInfo != null)
              if (this.getImageInfoRef() == null){
                   this.setVisible(true);
              this.setTitle("Image Viewer (" + imageInfo.bufferedImage.getWidth() + "x" + imageInfo.bufferedImage.getHeight() + ") ");
              this.resizeImageFrame((int) (imageInfo.bufferedImage.getWidth() * zoomFactor), (int) (imageInfo.bufferedImage.getHeight() * zoomFactor));
              this.lastFps = fps;
              this.setImageInfoRef(imageInfo);
              //System.out.println("this.getWidth(): " + this.getWidth() + " this.getHeight(): " + this.getHeight() + " zoomFactor: " + zoomFactor);////
              this.PaintImage(this.getGraphics());
    public synchronized void PaintImage(Graphics g)
         ImageInfo locImageInfo = getImageInfoRef();
         if (locImageInfo != null)
              try
                   this.resizeImageFrame((int) (locImageInfo.bufferedImage.getWidth() * zoomFactor), (int) (locImageInfo.bufferedImage.getHeight() * zoomFactor));
                   BufferedImage bufferedImage = this.resizeBufferedImage(locImageInfo.bufferedImage, zoomFactor);
                   this.overlayCodeInfo(bufferedImage, locImageInfo.decInfoStruct, zoomFactor);
                   this.overlayPointerInfo(bufferedImage, locImageInfo.scaling, zoomFactor, this.crossX, this.crossY);
                   this.overlayFrameRateInfo(bufferedImage, this.lastFps);
                   Image img = Toolkit.getDefaultToolkit().createImage(bufferedImage.getSource());
                   boolean retdraw;
                   retdraw = g.drawImage(img, frameUpperBondarySizeX, frameUpperBondarySizeY, this);
              catch (Exception ex)
                   System.out.println("[ImageFrame::PaintImage] Exception: " + ex);
    Thank you again
    Elena

  • Java, Cygwin, and Windows.... oh my.

    So the problem can be summarized as follows. I have a call out to the operating system from Java to obtain the value of “vmstat” which returns a value from every “x” seconds based on the refresh rate. To do This I use a command similar to this
    Runtime rt = Runtime.getRuntime();
    String[] comm = new String[] {"vmstat","1"};
    Process proc = rt.exec(comm);
    I can then loop around capturing the output and parsing it. Simple.... This approach works on Linux, Mac OS, HP-UX, AIX and Solaris however it fails under Windows. It sits there and simply waits. Now this appears to be a common problem based on the number of postings on it. This article(http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html) suggests a number of approaches to solve the problem. I’ve tried them all and the good news is that they appear to work for a single atomic call that returns all of its output then exits. However commands such as “vmstat/iostat/sar” etc. return output periodically based on their refresh rates and don’t seem to work at all.
    There are plenty of hits in google but no one really seems to suggest a solution. Now Im sure this worked in the past and Im almost certain that I haven’t changed the code.
    I’ve tried calling
    java myexec cmd /c "c:\\cygwin\\bin\\ls.exe"
    Which returns the first line of the directory and then exits.
    java myexec cmd /c "c:\\cygwin\\bin\\ls.exe"
    simply hangs.... whilst
    java myexec cmd /c dir
    Works fine.... So my believe its the combination of java and cygwin and the way io is redirected. If anyone has a chance to look at it.... I’ll be very grateful. Code for simple testcase below.
    import java.util.*;
    import java.io.*;
    class StreamGobbler extends Thread {
    InputStream is;
    String type;
    StreamGobbler(InputStream is, String type) {
    this.is = is;
    this.type = type;
    public void run() {
    try {
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    while (true) {
    if (is.available() == 0) {
    try {
    Thread.sleep(10);
    } catch (InterruptedException ie) {
    continue;
    line = br.readLine();
    if (line == null) {
    System.out.println("Error");
    } else {
    System.out.println(line);
    } catch (IOException ioe) {
    ioe.printStackTrace();
    public class myexec {
    public static void main(String[] args) {
    try {
    String osName = System.getProperty("os.name");
    System.out.println(osName);
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec(args);
    // any error message?
    StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), "ERROR");
    // any output?
    StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "OUTPUT");
    // kick them off
    errorGobbler.start();
    outputGobbler.start();
    // any error???
    int exitVal = proc.waitFor();
    System.out.println("ExitValue: " + exitVal);
    } catch (Throwable t) {
    t.printStackTrace();
    Edited by: dgiles on Apr 3, 2009 6:27 AM

    Apologies for the code tags.... now included below
    +"I’ve tried calling+
    +java myexec cmd /c "c:\\cygwin\\bin\\ls.exe"+
    +Which returns the first line of the directory and then exits.+
    +java myexec cmd /c "c:\\cygwin\\bin\\ls.exe"+
    +simply hangs"+
    should read
    "I’ve tried calling
    java myexec cmd /c "c:\\cygwin\\bin\\ls.exe"
    Which returns the first line of the directory and then exits.
    *java myexec cmd /c "c:\\cygwin\\bin\\vmstat.exe*"
    simply hangs"
    I agree with the comments about the quality of the example.... it was a quick and dirty hack. It dosen't take away from the issue that it works on every combination except windows and cygwin....
    Any other thoughts?
    import java.util.*;
    import java.io.*;
    class StreamGobbler extends Thread {
      InputStream is;
      String type;
      StreamGobbler(InputStream is, String type) {
        this.is = is;
        this.type = type;
      public void run() {
        try {
          InputStreamReader isr = new InputStreamReader(is);
          BufferedReader br = new BufferedReader(isr);
          String line = null;
          while (true) {
            if (is.available() == 0) {
              try {
                Thread.sleep(10);
              } catch (InterruptedException ie) {
              continue;
            line = br.readLine();
            if (line == null) {
              System.out.println("Error");
            } else {
              System.out.println(line);
        } catch (IOException ioe) {
          ioe.printStackTrace();
    public class myexec {
      public static void main(String[] args) {
        try {
          String osName = System.getProperty("os.name");
          System.out.println(osName);
          Runtime rt = Runtime.getRuntime();
          Process proc = rt.exec(args);
          // any error message?
          StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), "ERROR");
          // any output?
          StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "OUTPUT");
          // kick them off
          errorGobbler.start();
          outputGobbler.start();
          // any error???
          int exitVal = proc.waitFor();
          System.out.println("ExitValue: " + exitVal);
        } catch (Throwable t) {
          t.printStackTrace();
    }

  • Java Swing and Microsoft Excel

    How do you open a Microsoft Excel  file from swing?
    please give a example.

    Hi,
    try these APIs:
    [http://poi.apache.org/]
    [http://jexcelapi.sourceforge.net/]
    Once you get the content of the files, it's up to you how you display it in your swing application.
    Demos and tutorials can be found on these sites as well.

  • Java time and windows Regional Option

    I want to return a time,so ,how is set on window's regional option.
    I set time on windows Regional Option so - 13:38:29, bat java return another format 1:38:29.
    for example. time is 13:40 PM on windows.
    Calendar date=Calendar.getInstance();
    date.get(Calendar.HOUR); this returns 1 not 13.
    What to do to return 13 not 1.

    Google (or even just the search box on this forum) is your friend:
    http://forum.java.sun.com/thread.jspa?forumID=16&threadID=318720
    http://forum.java.sun.com/thread.jspa?forumID=16&threadID=244377
    http://forum.java.sun.com/thread.jspa?forumID=16&threadID=544738
    http://forum.java.sun.com/thread.jspa?threadID=626159&messageID=9468678

Maybe you are looking for

  • Issues in Sales Order for Customs invoice.

    Hi Experts, Have created a S/O 'A' is for a part at no charge, with value on Sales Order = 0.00 Woth refernce to this SO we created the delivery 'B' and then the customs invoice 'C' through VF01 with billing type ZF8. The Customs Invoice brings in a

  • Upgrade cucm 4 to 9.1

    Dear All  I have three server (one publisher and two subscribers) , i would like to upgrade CUCM from 4.2 to 9.1 to two UCS 7000 business edition M3 , and i read Jump-flash cut steps to UCS pdf , my Questions : - to upgrade three servers publisher an

  • J2EE Engine cannot be started. SAP CRM EHP1 Dialog Instance Installation

    Hi All, During Installation of a DI on a Linux host, I encounterd a problem. An error occured during " start dialog instance". The ABAP enginee is started successfully where as the JAVA Enginee cant be started. During investigation I found from the l

  • Remote Launch

    Hi all I am wondering if anyone knows how I can launch an app on my Mac Mini e.g XBMC or EYETV from the ipad. It would be brilliant if there was a way to open launchpad from the ipad and then just click the application I want to open. Reason I am hop

  • Loans Mgt: per maturity different GL account needed

    Hello What is the technical solution (customizing) for the following requirement? For loans with a term / maturity < 1 year (field in the master data of the CML loan) the GL account for the asset/liability (depending on loan given/taken) is 1111 "Sho