Displaying Korean in Frame style standalone application

I have desktop application and its user interface implemented in Frame class. I want to display/enter text in korean lang. I have
res-ko_KR.properties file contains korean equivalent texts. I also used native2scii with UTF-16 encoding on the prop file. However application doesn't show korean text. The app is running on Windows 2000 regular english edition and has korean fonts and IME installed.
Do I have to set font to Frame object or something like that?
I read on Font.Properties but just couldn't summerize how to use it and not sure if this a way to approach my problem.

I'm not sure why "Java in a nutshell" would say it's complex or confusing. But then that's the only O'Reilly book I've bought and didn't like. I prefer Bruce Eckel's "Thinking In Java"
In any case, let's look at images:
First, reference the "How to use Images" sectin of the Java Tutorial at http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html
The way I'd do it is to construct an ImageIcon class using
public ImageIcon(String filename)
Now, ImageIcon and Image are not derived from Component, so you can't put them into a Frame. BUT, you can put a JLable into a JFrame and the JLable can have an image. So you construct a new JLable like this:
ImageIcon myIcon = new ImageIcon("/images/duke.gif")
JLabel myLabel = new JLabel(myIcon);
Then put myLabel into your JFrame
myJFrame.getContentPane().add(myLabel);
(or put it in whatever layout manager and panel you are using within yoru JFrame)
That should do it. If you're going to be putting your code into a jar file then there is an additional bit of code that needs to be added. If you search for "Images jar" you'll find lots of discussion. Or you could go to my site at www.brouelette.com and look at the code for "One Hour Wumpus" to see the ImageLoader that I use that works in or out of a jar file.
Good luck.

Similar Messages

  • Standalone application questions

    Hi,
    Question 1:
    I have a data acquisition application using Labview. Four analog channels are recorded on HDD and displayed on waveform chart continuously.
    Development application runs fine but standalone application on DELL laptop has problems: waveform does not show proper Grids; sometimes vertical and horizontal grid lines are broken. There is no problem recording data but only problem is displaying waveform.
    The same standalone application used to run without any problem but after some minor modification, it behaves strange.
    Any suggestions to fix the waveform display problems will be greatly appreciated.
    Question 2:
    �VI Property > Customize Windows Appearance > Show abort button� unchecked will disappear ABORT
    button from VI. .After standalone application compilation and installation, the ABORT button was visible. How hide the ABORT button on the standalone application.
    Question 3:
    Can I replace Labview default RUN button with custom button, I want to hide Labview default RUN button and want to make a separate RUN button. Can I access property node or local variable of that RUN button?
    Thanks in advance,
    Kishor

    About question 1.
    I had some strange behaviour with charts and transparent backgrounds.
    Perhaps it's something like this...
    About question 2.
    Perhaps you have made a build script that has the properties set. After
    changing the VI, loading the build script might overwrite the VI settings.
    About question 3.
    You should modify the VI to wait for a button to be pressed (a while, 10 MS
    wait, and a button). Let the VI start automatically (run when opened). This
    has the same effect.
    Regards,
    Wiebe.
    "Jeremy Braden" wrote in message
    news:[email protected]..
    > 1. The VI may have been corrupted after your minor changes. Do you
    > have an old copy of the good code. You can also copy the block
    > diagram of th
    e bad VI to a new VI and build an executable from the new
    > VI. Also do you see the same behavior with the classic waveform
    > chart? What happens if you build a new LV executable with dummy
    > information going to the chart?
    > 2. The tests I ran showed that you can make the abort button
    > invisible with the steps you mentioned. Do you think that you may
    > have not saved your changes?
    > 3. You cannot replace the run arrow. Atleast not from a nice
    > integrated published solution sort of way. There are no properties
    > for the run arrow.

  • Displaying JPG's in standalone-applications

    Hy all!
    Does somebody know where I need to save a JPG so that a standalone-application can load it?
    I always get a NullPointerException when executing the following code:
    public SpaceBallFrame() {
    Graphics g = getGraphics();
    Image gameOverPic = Toolkit.getDefaultToolkit ().getImage("gameover.jpg");
    boolean b = g.drawImage(gameOverPic,50,100,this);
    I tried all folders which made sense but it didn't work.
    Thanks for help
    Boni

    Does somebody know where I need to save a JPG so that a standalone-application can load it?By using the following:
    Image gameOverPic = Toolkit.getDefaultToolkit ().getImage("gameover.jpg");
    The program assumes that the JPG file is in the same directory as your class file.
    The reason your program doesn't work is probably because drawing an image is usually done in a paint method. Try something like this (where the gameOverPic is defined as a globally accessible object):
    Image gameOverPic;
    public SpaceBallFrame() {
    gameOverPic = Toolkit.getDefaultToolkit ().getImage("gameover.jpg");
    public void paint(Graphics g) {
    g.drawImage(gameOverPic,50,100,this);
    V.V.

  • This content cannot be displayed in a frame

    Hi all
    i use Jdev12c, windows8.1
    I generate task form from human tasks and deploy them on application server.in my workspace i initiate a process in popup form and then save or submit it.then i see it in my task list after i click on task , it should show detail in below frame but doesn't show anything.
    I try all browsers just IE11 said "This content cannot be displayed in a frame" and show me a link that open my task in new tab.
    by the way, i can see my task detail in app server correctly but when i use my local pc by typing server ip:portNum/bpm/workspace as URL it doesn't work.
    also, when i use webform as UI instead of ADF forms it works correctly.
    you can see server log as below:(it concern me about security issue)
    <oracle.bpel.services.common.ServicesLogger> <ServicesLogger> <__log> <<.> WorkflowService.getWorkFlowContext() - The application with context path: /workflow/Project3 is unsecured. It is strongly recommended to secure task details applications. >
    <org.apache.myfaces.trinidadinternal.taglib.FacetRefTag> <FacetRefTag> <doStartTag> <CANNOT_FIND_PARENT_COMPONENTREF>
    <org.apache.myfaces.trinidadinternal.taglib.FacetRefTag> <FacetRefTag> <doStartTag> <CANNOT_FIND_PARENT_COMPONENTREF>
    <org.apache.myfaces.trinidadinternal.taglib.FacetRefTag> <FacetRefTag> <doStartTag> <CANNOT_FIND_PARENT_COMPONENTREF>
    <oracle.adf.controller> <AdfcExceptionHandler> <handleException> <NO_EXCEPTION_HANDLER>
    javax.faces.FacesException: An established connection was aborted by the software in your host machine
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1104)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:176)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.bpel.services.workflow.client.worklist.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:70)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
    Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
      at sun.nio.ch.SocketDispatcher.write0(Native Method)
      at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
      at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94)
      at sun.nio.ch.IOUtil.write(IOUtil.java:65)
      at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
      at weblogic.socket.NIOSocketMuxer$NIOOutputStream.writeInternal(NIOSocketMuxer.java:1064)
      at weblogic.socket.NIOSocketMuxer$NIOOutputStream.write(NIOSocketMuxer.java:983)
      at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:622)
      at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:587)
      at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:472)
      at weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput.java:301)
      at weblogic.servlet.internal.ChunkOutputWrapper.flush(ChunkOutputWrapper.java:193)
      at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:135)
      at weblogic.servlet.internal.ServletResponseImpl.flushBuffer(ServletResponseImpl.java:201)
      at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:202)
      at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:202)
      at com.sun.faces.context.ExternalContextImpl.responseFlushBuffer(ExternalContextImpl.java:859)
      at javax.faces.context.ExternalContextWrapper.responseFlushBuffer(ExternalContextWrapper.java:813)
      at javax.faces.context.ExternalContextWrapper.responseFlushBuffer(ExternalContextWrapper.java:813)
      at javax.faces.context.ExternalContextWrapper.responseFlushBuffer(ExternalContextWrapper.java:813)
      at javax.faces.context.ExternalContextWrapper.responseFlushBuffer(ExternalContextWrapper.java:813)
      at javax.faces.context.ExternalContextWrapper.responseFlushBuffer(ExternalContextWrapper.java:813)
      at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:268)
      at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
      at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
      at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:338)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
      at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)
      at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)
      ... 49 more
    <oracle.adf.view> <RichExceptionHandler> <_logUnhandledException> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6>
    javax.faces.FacesException: An established connection was aborted by the software in your host machine
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1104)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:176)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.bpel.services.workflow.client.worklist.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:70)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
    Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
      at sun.nio.ch.SocketDispatcher.write0(Native Method)
      at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
      at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94)
      at sun.nio.ch.IOUtil.write(IOUtil.java:65)
      at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
      at weblogic.socket.NIOSocketMuxer$NIOOutputStream.writeInternal(NIOSocketMuxer.java:1064)
      at weblogic.socket.NIOSocketMuxer$NIOOutputStream.write(NIOSocketMuxer.java:983)
      at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:622)
      at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:587)
      at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:472)
      at weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput.java:301)
      at weblogic.servlet.internal.ChunkOutputWrapper.flush(ChunkOutputWrapper.java:193)
      at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:135)
      at weblogic.servlet.internal.ServletResponseImpl.flushBuffer(ServletResponseImpl.java:201)
      at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:202)
      at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:202)
      at com.sun.faces.context.ExternalContextImpl.responseFlushBuffer(ExternalContextImpl.java:859)
      at javax.faces.context.ExternalContextWrapper.responseFlushBuffer(ExternalContextWrapper.java:813)
      at javax.faces.context.ExternalContextWrapper.responseFlushBuffer(ExternalContextWrapper.java:813)
      at javax.faces.context.ExternalContextWrapper.responseFlushBuffer(ExternalContextWrapper.java:813)
      at javax.faces.context.ExternalContextWrapper.responseFlushBuffer(ExternalContextWrapper.java:813)
      at javax.faces.context.ExternalContextWrapper.responseFlushBuffer(ExternalContextWrapper.java:813)
      at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:268)
      at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
      at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
      at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:338)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
      at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)
      at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)
      ... 49 more
    <Jan 18, 2015 2:25:43 PM IRST> <Error> <HTTP> <BEA-101019> <[ServletContext@131300604[app:BpmApplicationADF module:/workflow/Project3 path:null spec-version:3.0]] Servlet failed with an IOException.
    java.io.IOException: An established connection was aborted by the software in your host machine
      at sun.nio.ch.SocketDispatcher.write0(Native Method)
      at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
      at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94)
      at sun.nio.ch.IOUtil.write(IOUtil.java:65)
      at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
      Truncated. see log file for complete stacktrace
    >

    this seems to be DNS issue. In PS6 you could login EM and in your deployed processes click your process (left pane) and scroll down to Component Metrics and open you HT. Check the host name whether it is written with a domain name or IP. It could be a localhost there.

  • How to display korean text in file name

    Hi, I want to know how to make my system recognize and display Korean text in file names and such. My mp3 files are all a bunch of gibberish and they display that way in the itunes as well; the title, artist, and everything else.
    How can I fix this?

    Thanks. I tried that but the application wouldn't save any of the files for some reason.
    But it made me look for something else. In iTunes, I selected the song and right clicked, selected Convert ID3 Tags-->Reverse Unicode. Then it went to Chinese I think. I did the same thing again and it finally went to Korean.

  • MyRIO standalone application not working, but works well when connected to PC (NI vision + webcam)

    Hi,
    I have a program that can detect motion that occurs in my room using a webcam and will send a picture to my gmail account if motion detected. The program works fine when myRIO is connecting to PC (with the webcam connects to myRIO). However, after I created a standalone application, it's not working. Even the VIs within the first frame of the flat sequence (turn LED on) was not working. The standalone program will work if I disable all of the vision-related VIs. Any suggestions? Thanks!
     I got the driver installed and the webcam connected, so that shouldn't be an issue.
    Thanks in advance.
    -Robin

    I have a 30 GB version of the same. I also got some external speakers for it, UBL I think they are called. I find there is something very odd about whether you charge it up or not. It seems to over-charge sometimes, and then everything freezes. As for connecting to the PC, no chance. After an initial burst on another machine, and after installing itunes on this computer, there is no recognition of the one by the other at all. Plus freezing and locking up. Plus freezing the PC as well, it is very tedious. So no answers, only commiserations. I think Apple are doing a very poor job on this ! And their help facility seems quite hopeless !

  • Display an Image in a Java application !

    Hi all !
    Really i want to display an image in a java application , i know how to do it in applets but this method does not work in applications so please help me to do that in an application ,thanks .

    it is the same way as in applets.
    1. Open a frame with awt
    2. Define an Image (like: Image a=null;)
    3. Load this Image with the Toolkit....(just look which method to use)
    4. draw this image to screen with g.drawImage(...)
    Note the class drawing the image must implement ImageObserver.
    regards

  • JMS Standalone Application

    I am Developing JMS Standalone Application And Using Sun App Server 8.1 The Following I Have Created
    1. META-INF/application-client.xml
    2. source/jms/SimpleQueueSender.java
    3.source/jms/SimpleQueueReceiver.java
    The Following Is The Code In application-client.xml
    <application-client>
            <display-name>Simple JMS Standalone Application </display-name>
            <resource-ref>
                    <description>Simple Queue SenderReceiver</description>
                    <res-ref-name>jms/MyQCF</res-ref-name>
                    <res-type>javax.jms.QueueConnectionFactory</res-type>
                    <res-auth>Container</res-auth>
            </resource-ref>
            <resource-env-ref>
                    <description>SQR</description>
                    <resource-env-ref-name>jms/MyQueue</resource-env-ref-name>
                    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
            </resource-env-ref>
    </application-client>The Following Is The Code Used In SimpleQueueXXX(Either Sender Or Receiver )
    queueConnectionFactory = (QueueConnectionFactory)
                    jndiContext.lookup("java:comp/env/jms/MyQCF");
                queue = (Queue) jndiContext.lookup("java:comp/env/jms/MyQueue");when i run the the packaged jar file using appclient
    the following error is generated
    WARNING: ACC003: Application threw an exception.
    javax.naming.InvalidNameException: Real JNDI name cannot be empty for jms/MyQCF
    at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:475)
    at com.sun.enterprise.appclient.AppContainer.preInvoke(AppContainer.java:134)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:383)
    at com.sun.enterprise.appclient.Main.main(Main.java:99)
    Mar 9, 2006 7:16:40 PM com.sun.enterprise.appclient.Main <init>
    WARNING: ACC010: Make sure the server port is not disabled and that you are looking up a valid name
    Thanks In Advance , Please Help Me At The Earliest

    Yaa , I Have Resolved It By Writing sun-application-client.xml but now i am getting some another error , can look into this why does this come
    Mar 10, 2006 12:53:26 PM com.sun.enterprise.appclient.Main <init>
    WARNING: ACC003: Application threw an exception.
    java.lang.ClassNotFoundException:
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:388)
    at com.sun.enterprise.appclient.Main.main(Main.java:99)
    Thanks In Advance , Please Reply At The Earliest

  • Change colours of BSP standalone application

    Hi all,
    I want to run e-recruiting (bsp or webdynpro) as standalone application and need to change the colours of the GUI elements. The header picture should also be changed.
    Where can I do the changes? Do I do it in the portal theme editor even if I don't use portal to display the web application??
    Thanks in advance
    Karsten

    Hi Karsten,
    you do not need portal to create or change themes and to use it for your application.
    There is a good documentation which explains it:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ccb6bcf4-0401-0010-e3bc-ec0ef03e13d1
    Regards,
    Frank

  • Modify logon page for Standalone Application

    Hi,
    I need to modify logon page for a standalone web dynpro application ( not in enterprise Portal).
    I only find documentations for change it in EP, but nothing about standalone application.
    Some ideas?
    Thanks
    Andrea

    Hi Andrea,
             you can modify the design of the WD appln using the properties that is listed for each UI elements.
             You can also change the layout of the root container Element properties to Matrix layout to satisfy ur kind of design.
            For displaying different lanuages in a dropdown box.
    1) select DropdownbyKey UI Element.
    2) set this to context attribute.
    3) Go to Dictionary -- Local dictionary -- simple type --create new simple type.
    4) In the datatype select the Enumeration tab and give the different text and values.(In ur case give ur different type of languages.)
    5) Go to WD appln. select the attribute that u hav created and change its type to the corresponding simple type.
    6) select dictionary simple type>Local dictionary>package that u hav declared-->inside that select ur simple type and execute it.
    Hope this one satisfies ur query.
    Regards,
    Nagarajan.

  • Front Row 2 - Why a standalone application?

    Perhaps this thread can consolidate some of the various other complaints against Front Row 2 that seem to stem from the same issue that I, at least, perceive as being a big part of the problem: that FR2 is a standalone application in Leopard rather than a front-end interface for media-handling applications in the background, as it was in Tiger.
    So I'm just curious and would like to hear from those who may be more "in the know" why Apple made this move? Why is Front Row "better" as a standalone application? When in Front Row in Tiger, if you watched a movie, QuickTime would be handling it in the background. If you listened to music, it was iTunes that was handling it. If you watched a slideshow, iPhoto was responsible. If you were watching a DVD, DVD Player was doing the work. In Leopard, however, Front Row handles all these media files/types by itself, and I've only seen that as a negative so far.
    For example: in Tiger, a custom slideshow I had created in iPhoto would be displayed exactly as I had specified (including custom timings, photo framing, etc.) when viewing that slideshow in Front Row. In Leopard, not all those settings are carried over and the slideshow doesn't display as I've set it up (although it continues to display perfectly in iPhoto). In Tiger, all my album artwork in iTunes was displayed correctly in Front Row. In Leopard, the artwork of several albums will not display even though the album art is visible in iTunes (and via CoverFlow and QuickLook in Finder). And, of course, there's the issue that many report that music playing in FR2 will stop if FR2 is exited, or even when you just exit the music section of FR2. Why the disconnect? By having Front Row be a standalone application, it just opens the door for issues where the files/media isn't being correctly handed over from its proper application to what we see in Front Row.
    While I do mostly love the new interface of Front Row (although I miss the desktop fading into the background effect upon launch of FR2), I've seen it take a pretty significant performance hit. Some HD movie trailers that played flawlessly in Front Row on Tiger are sluggish and choppy on FR2 on the same hardware. These same trailers play just fine by themselves in QuickTime, however. Tiger's Front Row properly showed previews for all my slideshows and movies almost instantly, while FR2 takes quite awhile to create previews for everything - and isn't able to create previews at all for some files (Apple's own HD movie trailers, for example).
    Since FR2 is trying to handle all the media and filetypes by itself, rather than handing off the tasks to the proper applications in the background that can handle them more efficiently, it seems to become a bloated system hog. After spending about 15 minutes in FR2 going through various media, I noticed it seemed to slow down more and more. I exited to check Activity Monitor, and even though Front Row wasn't even running anymore, it was using almost 1GB of RAM. Evidently, all those previews it has to create (starting over each time you get into FR2, I might add) really start to take a toll over time with heavy use. For someone with a HTPC-Mac who wasn't accustomed to ever having to exit Front Row in Tiger - much less actually restart the machine because of it - it seems like a horrible step backwards.
    So again, I'm hoping someone can offer some insights into why Front Row was changed to a standalone application instead of being further enhanced as a front-end UI for the proper media applications running in the background. I understand why they wanted to change the interface to be AppleTV-like, but I don't understand the loss of features and the backwards step in performance.

    That's a benefit to the PPC users, of course, but I can't imagine that was a major influence on Apple's decision to do it. Would they really remove features and hinder overall performance just to cater to old hardware? That doesn't seem very Apple-like. Nor does it make much sense to handicap Front Row for everyone who does have a capable Intel Mac just so others can run it on old PPC machines (which likely can't get the best performance out of Front Row anyway, given the way it gobbles up system resources by bearing the burden of dealing with so many forms of media/files by itself all at once).
    Maybe the bigger picture - which is harder to see now only a few days after the launch of Leopard - involves better long-term development of Front Row features that will be easier to implement with it being a standalone application rather than a front-end UI. So while it will be great when/if the performance is improved and new features are added, it's little consolation to those who upgraded to Leopard (and I do love most of the rest of 10.5, really) but think we took a major step back with Front Row.
    Front Row isn't a big deal to those who use it infrequently, but for those who were somewhat dependent on it as a vital component of HTPC, these "little" issues add up and are pretty frustrating.

  • Problems displaying Korean fonts

    Hello,
    I have the latest version of Adobe Reader (9.3.4) and have installed the Korean font pack from Adobe Update link. However I am not able to display Korean fonts properly. Some are good but most are junk. But the same file can be displayed without any issue with google docs.
    Please help. I have inserted a screenshot with this message :
    as you can see, some fonts are good but some are garbage.
    Any help or leads would be much appreciated.
    Thanks
    balarka

    I have also tested the application in some PCs with Windows and the visualization problems are significantly lower.
    Regards.

  • Standalone application samples

    Where can I get standalone application samples (not applets) of Java programs?
    I don't need web servers or word processors, but simple small programs such as games for example...
    thank you.

    Copied the following app from http://java.sun.com/docs/books/tutorial/uiswing/
    * CelsiusConverter.java is a 1.4 application that
    * demonstrates the use of JButton, JTextField and
    * JLabel.  It requires no other files.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CelsiusConverter implements ActionListener {
        JFrame converterFrame;
        JPanel converterPanel;
        JTextField tempCelsius;
        JLabel celsiusLabel, fahrenheitLabel;
        JButton convertTemp;
        public CelsiusConverter() {
            //Create and set up the window.
            converterFrame = new JFrame("Convert Celsius to Fahrenheit");
            converterFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            converterFrame.setSize(new Dimension(120, 40));
            //Create and set up the panel.
            converterPanel = new JPanel(new GridLayout(2, 2));
            //Add the widgets.
            addWidgets();
            //Set the default button.
            converterFrame.getRootPane().setDefaultButton(convertTemp);
            //Add the panel to the window.
            converterFrame.getContentPane().add(converterPanel, BorderLayout.CENTER);
            //Display the window.
            converterFrame.pack();
            converterFrame.setVisible(true);
         * Create and add the widgets.
        private void addWidgets() {
            //Create widgets.
            tempCelsius = new JTextField(2);
            celsiusLabel = new JLabel("Celsius", SwingConstants.LEFT);
            convertTemp = new JButton("Convert");
            fahrenheitLabel = new JLabel("Fahrenheit", SwingConstants.LEFT);
            //Listen to events from the Convert button.
            convertTemp.addActionListener(this);
            //Add the widgets to the container.
            converterPanel.add(tempCelsius);
            converterPanel.add(celsiusLabel);
            converterPanel.add(convertTemp);
            converterPanel.add(fahrenheitLabel);
            celsiusLabel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
            fahrenheitLabel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
        public void actionPerformed(ActionEvent event) {
            //Parse degrees Celsius as a double and convert to Fahrenheit.
            int tempFahr = (int)((Double.parseDouble(tempCelsius.getText()))
                                 * 1.8 + 32);
            fahrenheitLabel.setText(tempFahr + " Fahrenheit");
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            CelsiusConverter converter = new CelsiusConverter();
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }Good luck.

  • Background picture n problem on display other JInternal frame

    beginer;
    this is my code below n i compile it n the picture display correctly, but it seems to hide other internal frame as well, what wrong with my code :(, the problem is been specified between ? symbols
    public class InternalFrameDemo extends JFrame implements ActionListener {
    JDesktopPane desktop;
    public InternalFrameDemo() {
    super("InternalFrameDemo");
    int inset = 50;
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    setBounds(inset, inset,
    screenSize.width - inset*2,
    screenSize.height - inset*2);
    Toolkit kit = Toolkit.getDefaultToolkit();
    Image icon = kit.getImage("ADD.gif");
    setIconImage(icon);
    //Set up the GUI.
    desktop = new JDesktopPane(); //a specialized layered pane
    createFrame(); //create first "window"
    setContentPane(desktop);
    setJMenuBar(createMenuBar());
    //Make dragging a little faster but perhaps uglier.
    desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
    ImageIcon image = new ImageIcon("abc.jpg");
    JLabel background = new JLabel(image);
    background.setBounds(0, 0, image.getIconWidth(), image.getIconHeight());
    getLayeredPane().add(background, new Integer(Integer.MIN_VALUE) );
    JPanel panel = new JPanel();
    panel.setOpaque(false);
    setContentPane( panel );
    protected JMenuBar createMenuBar() {
    JMenuBar menuBar = new JMenuBar();
    //Set up the menu item
    return menuBar;
    public void actionPerformed(ActionEvent e) {
    else {
    quit();
    protected void createFrame() {
    Books frame = new Books();
    frame.setVisible(true);
    desktop.add(frame);
    try {
    frame.setSelected(true);
    catch (java.beans.PropertyVetoException e) {}
    protected void quit() {
    System.exit(0);
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    catch (Exception e) {
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    InternalFrameDemo frame = new InternalFrameDemo();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Display the window.
    frame.setVisible(true);
    tanz.

    This might be what you are trying to do:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.plaf.*;
    public class TestInternalFrame extends JFrame
         ImageIcon icon;
         public TestInternalFrame()
              icon = new ImageIcon("????.jpg");
              JDesktopPane desktop = new JDesktopPane()
                 public void paintComponent(Graphics g)
                      Dimension d = getSize();
                      g.drawImage(icon.getImage(), 0, 0, d.width, d.height, null);
              getContentPane().add( desktop );
              final JInternalFrame internal =
                   new JInternalFrame( "Internal Frame", true, true, true, true );
              desktop.add( internal );
              internal.setLocation( 50, 50 );
              internal.setSize( 300, 300 );
              internal.setVisible( true );
         public static void main(String args[])
              TestInternalFrame frame = new TestInternalFrame();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.setSize(400, 400);
              frame.setVisible(true);
    }

  • How to use JDBC Connection Pools in a standalone application?

    Hi, there,
    I have a question about how to use JDBC Connection Pools in an application. I know well about connection pool itself, but I am not quite sure how to keep the pool management object alive all the time to avoid being destroyed by garbage collection.
    for example, at the website: http://www.developer.com/java/other/article.php/626291, there is a simple connection pool implementation. there are three classes:JDBCConnection, the application's gateway to the database; JDBCConnectionImpl, the real class/object to provide connection; and JDBCPool, the management class to manage connection pool composed by JDBCConnectionImpl. JDBCPool is designed by Singleton pattern to make sure only one instance. supposing there is only one client to use connection for many times, I guess it's ok because this client first needs instantiate JDBCPool and JDBCConnectionImpl and then will hold the reference to JDBCPool all the time. but how about many clients want to use this JDBCPool? supposing client1 finishes using JDBCPool and quits, then JDBCPool will be destroyed by garbage collection since there is no reference to it, also all the connections of JDBCConnectionImpl in this pool will be destroyed too. that means the next client needs recreate pool and connections! so my question is that if there is a way to keep pool management instance alive all the time to provide connection to any client at any time. I guess maybe I can set the pool management class as daemon thread to solve this problem, but I am not quite sure. besides, there is some other problems about daemon thread, for example, how to make sure there is only one daemon instance? how to quit it gracefully? because once the whole application quits, the daemon thread also quits by force. in that case, all the connections in the pool won't get chance to close.
    I know there is another solution by JNDI if we develop servlet application. Tomcat provides an easy way to setup JNDI database pooling source that is available to JSP and Servlet. but how about a standalone application? I mean there is no JNDI service provider. it seems a good solution to combine Commons DBCP with JNID or Apache's Naming (http://jakarta.apache.org/commons/dbcp/index.html). but still, I don't know how to keep pool management instance alive all the time. once we create a JNDI enviroment or naming, if it will save in the memory automatically all the time? or we must implement it as a daemon thread?
    any hint will be great apprieciated!
    Sam

    To my knoledge the pool management instance stays alive as long as the pool is alive. What you have to figure out is how to keep a reference to it if you need to later access it.

Maybe you are looking for

  • Error while Accessing the HCM process and forms

    Hi All, We have implemented HCm process and forms. Everything was working fine earlier but for past few days we are facing an issue after selecting an employee and clicks on the select process we are getting the following error. Kindly povide the sol

  • (New thread) HP SimpleSave md1000h External Hard Drive - Can't Access Files,

    New thread on same old unaswered issues from others. My desktop crashed.  It  needs new harddrive. I religiously backup my info everyweek on my simplesave md1000h However, before I buy a new computer or replace the harddrive on my old computer, I wan

  • Bad performance in web intelligence reports

    Hi, We use Business Objects with Web Intelligence documents and Crystal Reports. We are supporting bad performance when we use the reports specilly when we need to change the drill options Can someone telling me if exists some best practices to impro

  • 5800 XM FW v40 in North America

    any news when Firmware v40 will be out in North Amereca?? just hopping someone can share. thanks

  • Saving photos with Time Machine

    I want to be able to delete a lot of old photos from my computer after backing them up with Time Machine onto an external hard drive. I want to keep all of my old photos permanently on the external hard drive that I use when backing up. If Time Machi