Using Grid Component in Java

Hi all,
I have to develop a program using Java.
This is my first project of Java. I haven't got any experience on GUI design of Java.
In my project, I have to use a lot of grid. How can I use the "Grid Component" in Java?
I don't know exactly. But I have been to use Borland Grid Component. I would like to know more about grid component and is there any other one concerning with it?
How can I get the components of Java from the Internet?
Could you help me to refer to Web site addresses?
Wih Thanks,
wtdahl.....

Here's a good point to start looking for GUI stuff
http://java.sun.com/products/jlf/ed2/book/index.html
I don't know Borland Grid but I assume JTable might fit. Usually there's no need to download components from the Internet. As you can see from the link above and from the API there are a lot of components - you just need to customize them

Similar Messages

  • How to use MyFaces component with Java Creator 2

    Please advise for me the way to use Myfaces component with Java Creator 2. Thanks

    Apologies for the late reply, but currently what exists generally for MyFaces integration with Creator is on this blog:
    http://wiki.java.net/bin/view/Javatools/CustomComponentLibraries
    You might also want to post the same question on the nbusers alias on netbeans.org, referencing Visual Web Pack
    Regards,
    -Brad Mayer

  • Using grid component for layout

    I'm using the grid component to display six panel, 3 per
    line. Everything seems fine except that I thought if user resized
    the browser the six panel would resize but they don't. Even if I
    start the app in a size that can't fit the original size of the
    panels, I get scroll bars instead of re-sizing the panel. Is grid
    the wrong component for this? I've attached a sample code.

    Grid might be the the wrong component. Try VBox and HBox with
    height and width set to 100%
    Tracy

  • How use Ajax grid component

    sir master
    sir what is the Ajax grid component and how i use this
    please give me sample
    thank's
    aamir

    The following links may help you:
    http://blogs.nitobi.com/andre/index.php/2006/09/02/ajax-grid-for-java-studio-creator-and-jsf/
    http://java.sun.com/developer/community/askxprt/2006/jl0828.html

  • How to Use COM Component in a Java Bean

    Dear Sir,
    How can I use a COM Component in a Java-Bean . I am having a COM Component for reading Weighment Reading on a Serial Port and want to use this Component in a Java-Bean . I would also like to call the methods of this COM Component inside my Java-Bean . COM Component is a dll file .
    Please guide me how to go ahead . If possible kindly provide some sample code for the same .
    With Thanks and Regards
    B V Mittal

    You need a Java to COM bridge like Jacob. Try searching this forum for more information, I've answered this question several times before.
    Dom.

  • How to use XML / XPath in JAVA (in 1.4) which third part component to use?

    How to use XML / XPath in JAVA (in 1.4)
    I'm absolutely novice in XML
    but I need to query XML using XPath
    As I understand XPath become avalible only in Java 1.5
    But I use 1.4 (project requirement)
    Which third part component could you recomend?

    Can anyone help me with this XPath query
    I get result [title: null]
    import java.io.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.w3c.dom.*;
    import org.jaxen.*;
    import org.jaxen.dom.*;
    import org.jaxen.saxpath.*;
    import java.util.*;
    public class TestX {
         public void ggg() {
              try {
                   File f = new File("journal.xml");
                   DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                   org.w3c.dom.Document doc = docBuilder.parse(f);
                   XPath xpath = new DOMXPath( "/journal/article/title" );
                   List result = (List) xpath.evaluate(doc);
                   System.out.println(result.get(0));
              } catch (Exception e) {
                       e.printStackTrace();
         public static void main(String[] args) {
              TestX tx = new TestX();
              tx.ggg();
    }journal.xml
    <journal>
        <article id="article.1">
            <title>Art1</title>
            <author>
               <first>Bob</first>
               <last>McWhirter</last>
            </author>
            <text>
            </text>
        </article>
        <article id="article.2">
            <title>Art2</title>
            <author>
               <first>James</first>
               <last>Strachan</last>
            </author>
            <text>
            </text>
        </article>
    </journal>

  • Passing Complex Object into Grid Component

    OK here is what i am trying to do.
    I have a grid component, and I wanted to display on the grid,
    a list of ship objects. Think of this like a cruise liner.
    I am retrieving these objects from a java/hybernate/spring
    adapter using remote object, and it works ok. I get back an
    arrayCollection, then I build a new array, populatate it with
    Actionscript ship objects, which has an embedded port object.
    Ship has attributes like Name, id, comments etc. And it has
    an embedded homeport object also.
    The port, has name, country and comments too.
    I can get the object to come back, and its being built
    correctly. I have ship objects and each one has its own port
    object, I see in the debugger the objects and thier embedded
    objects and the embedded object values. So I know the constructor
    is working fine. Here is the problem.
    I set the dataprovider attribute to match the array of
    completed ships, and I can get the grid, to display all the ship
    data, but not the port data.
    So Here is my code:
    <mx:DataGrid id="ShipListDataGrid" width="978"
    height="190" dataProvider="{initDG}"
    creationComplete="loadAllShips()" selectedIndex="0" >
    <mx:columns>
    <mx:DataGridColumn headerText="Name"
    dataField="name"/>
    <mx:DataGridColumn headerText="Class"
    dataField="clazz"/>
    <mx:DataGridColumn headerText="Comments"
    dataField="comments"/>
    <mx:DataGridColumn headerText="Port Country"
    dataField="port.country" />
    </mx:columns>
    </mx:DataGrid>
    Now the colums name, clazz, comments all work perfectly, as
    they are attributes of ship. However, port.country does not work,
    it just shows a blank column, even though that is the correct
    notation to get to that data field, for the attribute of that ships
    port home country. Its just a string, so for the port called miami,
    the country is "USA". This does not display.
    However if I remove port.country, and only put in port, then
    it shows that whats in that column displays as Object : Port.
    So it seems that the grid knows theres an object in there.
    But not what to do with it?
    I have created a masterViewList and a masterDetails
    component, and the viewList is the grid, and the details is the
    details section of the ship. So there it shows a form, and the form
    shows all the details of the ship selected in the list above. Heres
    the interesting thing. using a label field, I can change the
    selected list item on the grid, and show the ship.port.country in a
    label on the bottom, so it can transverse the ship object, but just
    not seemingly in the grid.
    What can I do? Why does it work with a label field, and not
    in the grid? Why will the grid not show an embedded string
    attribute for an embedded object, but a label or text box will?
    What am I doing wrong?

    You will need to use a label function for this.
    For example:
    <mx:DataGridColumn headerText="Port Country"
    dataField="{calcPortCountry}" />
    private function calcPortCountry(item:Object,
    col:DataGridColumn):String
    return item.port.country;

  • Opening of PDF using PAR component

    Hello
    I'm trying to display a pdf in the portal. The data for the pdf has to come from  the backend. My question is as follows:
    We've developed a ADOBE print form in R/3 and developed a FM which calls this form.
    1. What should be the data type of the parameter that is returned to the portal after executing the FM. Should it be XSTRING or something else?
    2. How do we open the pdf in portal.
    There are certain posts from Detlev and Prakash Singh which speaks on this. But I could not figure it out. Can somebody please give a sample CODE for opening the pdf?
    Note: I'm  using PAR component for the display.
    There is a mention of some weblog of Prakash :
    Create an excel file from JAVA using HSSF api
    But I'm unable to locate this weblog. Can anybody please help me out as I'm stuck.

    Forgot to mention that I dont want to use iText api's.
    Thanks
    Aditya

  • Error while recording process using a component with a custom data type

    Hello,
    I created a component that returns a CheckAttachmentResult object. This object contains an int named resultCode and a String named resultMessage. In the CheckAttachmentResult class, I do have a getter and a setter function for both values.
    When I use the component, I can retrieve the CheckAttachmentResult object, see the values that are set (i.e. resultMessage and resultCode) and work on them (for instance build a condition on the resultCode).
    However when the current process goes into a subprocess after having used this component, I get the following error:
    Failed evaluating outgoing routes for action=template:ReceptionDtpBriefingV2/branch:main-branch/pool:POOL/swimlane:Extraction du DTP/action:Check DTP attachments: java.lang.NullPointerException  at com.adobe.idp.auditworkflow.dsc.service.storage.ProcessRecordingStorageImpl.persistDocume ntVariables(ProcessRecordingStorageImpl.java:409)
        at com.adobe.idp.auditworkflow.dsc.service.storage.ProcessRecordingStorageImpl.serialize(Pro cessRecordingStorageImpl.java:390)
        at com.adobe.idp.auditworkflow.dsc.service.storage.ProcessRecordingStorageImpl.persist(Proce ssRecordingStorageImpl.java:151)
        at com.adobe.idp.auditworkflow.dsc.service.AuditWorkflowServiceImpl.auditEvent(AuditWorkflow ServiceImpl.java:62)
        at sun.reflect.GeneratedMethodAccessor1278.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
        at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
        at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
        at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
        at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:342)
        at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doRequiresNew (EjbTransactionCMTAdapterBean.java:284)
        at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
        at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
        at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
        at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:389)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
        at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
        at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
        at org.jboss.ejb.Container.invoke(Container.java:873)
        at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
        at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
        at $Proxy169.doRequiresNew(Unknown Source)
        at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:143)
        at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
        at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
        at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
        at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
        at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
        at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
        at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:109)
        at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
        at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
        at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
        at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
        at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
        at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:91)
        at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 5)
        at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
        at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
        at com.adobe.workflow.audit.WorkflowAudit.invokeCallback(WorkflowAudit.java:471)
        at com.adobe.workflow.audit.WorkflowAudit.breakpointRouteEvaluationCompleted(WorkflowAudit.j ava:268)
        at com.adobe.workflow.engine.PEUtil.evaluateRules(PEUtil.java:425)
        at com.adobe.workflow.engine.SynchronousBranch.getNextActionOrStallOnFailure(SynchronousBran ch.java:801)
        at com.adobe.workflow.engine.SynchronousBranch.updateBranchInstanceStatus(SynchronousBranch. java:649)
        at com.adobe.workflow.engine.SynchronousBranch.execute(SynchronousBranch.java:887)
        at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBea n.java:2773)
        at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncInvokeProcessCommand(ProcessEngineBMT Bean.java:704)
        at sun.reflect.GeneratedMethodAccessor503.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
        at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
        at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
        at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
        at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
        at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
        at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
        at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
        at org.jboss.ejb.Container.invoke(Container.java:873)
        at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
        at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
        at $Proxy202.asyncInvokeProcessCommand(Unknown Source)
        at com.adobe.workflow.engine.ProcessCommandControllerBean.doOnMessage(ProcessCommandControll erBean.java:156)
        at com.adobe.workflow.engine.ProcessCommandControllerBean.onMessage(ProcessCommandController Bean.java:99)
        at sun.reflect.GeneratedMethodAccessor457.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
        at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j ava:475)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
        at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterc eptor.java:101)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
        at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)
        at org.jboss.ejb.Container.invoke(Container.java:873)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerI nvoker.java:1379)
        at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
        at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904 )
        at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)
        at org.jboss.mq.SpySession.run(SpySession.java:333)
        at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
        at java.lang.Thread.run(Thread.java:595)
    It turns out that this error is related to the recording of the process. When I stop the recording, this error disappears. Do you have any idea on what goes wrong ? Did I miss something or made something wrong ?
    I attached the component.xml file of the component to this post.
    Thank you in advance
    Steve

    This seems to be recorded in CAR#405941.  The whole thing is a bit strange but I will try to go over the potential workarounds as best as I can.  I tested a lot of these myself and here is what I found.
    1. Make sure the custom control you have made was created in LabVIEW 2012 or you save it to a previous version.  If you save it to a previous version you might also need to open the .ctl in LabVIEW 2012 and resave it (I needed to do this).  I tried creating my own control in 2012 as well as saving the control to a previous version, both worked but I did not end up with the same result (I don't understand this but I wanted to mention it so that you knew).
    2. It seems that you are able to make the shared variable programmatically by modifying the community example to fit your needs.  If you do not need to create many variables this may be the best option if it works for you.
    I would also try adding the variable from the LabVIEW project you are working on.  This was not a direct troubleshooting step but there are multiple ways to do things in LabVIEW and sometimes one of them works while the other does not.
    Edit: Community Example is here https://decibel.ni.com/content/docs/DOC-16863
    Matt J
    Professional Googler and Kudo Addict
    National Instruments

  • Commenting a Line in ABAP Editor when using SAP GUI for java

    Hi,
    In ABAP editor we can highlight the line which are to be comment and use cmd+< sign to comment those lines. What will be the command to be used to achieve the same functionality when using SAP GUI for JAVA on an iMac.

    Hello Kedar,
    please check with SAP GUI for Java 7.20 rev 5 before submitting a bug report.
    Also please verify, that cmd-< and cmd-> are not assigned as "Keyboard Shortcuts" in the "Keyboard" control panel of "System Preferences".
    Bug reports can be submitted with the [SAP Message Wizard|http://service.sap.com/message], for SAP GUI for Java please use component BC-FES-JAV.
    Best regards
    Rolf-Martin

  • Grid Component

    Hi, we are in need of a Java Grid Component with all of the below requirments, can you please suggest me on this.. Can you suggest where i can buy or download ??
    * GUI interface
    * Horizontal scroll - at least 50 columns
    * Vertical scroll - at least 2500 rows
    * Capability to freeze column and row headers
    * Insert/Delete rows and columns at any point within the spreadsheet
    * Perform functions such as cut/copy/paste, hide/unhide columns, search for value, enter and calculate formulae
    * Programmatically work with cell addresses and cell content, entire rows and entire columns
    * Capability to label column headers
    * DEFINE formula for a given cell programmatically in addition to user defined formulae
    * Color coding the background as well as the foreground (text)
    * LOCKing/protection cells
    * Provide sorting capability
    * Print/Print Preview and formatting capability
    * Zoom capability
    * Setting Alignment for cell or group cells
    * Assigning CHECK BOX to cells at design/run time and programming it.
    * Assigning List box to cells at design/run time and programming it.
    * Specifying maximum length , Data type for each cell at design/run time and programming it.
    * Ability to get Sub Total/Total for a column.
    * Grouping on particular column.
    thanks
    venus_bug

    try the grid at www.java4all.tk
    ciao,

  • Multi-lingual Translator component in java?

    hello all,
    I want to make a Multi-lingual Translator component in java
    which can be used to convert any existing web site(developed
    using any technology asp/jsp etc) to any foreign language
    viz german, spanish,italian and other major foreign
    languages.
    Please let me know how do i proceed in java with respect to
    the following?:
    1. It has to be developed as a component in java such that
    it can be included in any existing web site as a control
    which simply gives the users the option of converting
    either the current web page from english to any other
    foreign language or simply the entire web site from
    english to any other foreign language
         How to develop it as a component so that it can be
    independently merged into any existing web site(whether
    asp or jsp) as a control? which technology should i be
    using here EJB's or Applets or any other?
    I personally think it can be a applet because with EJB's
    container/application server is required.
    what do you all suggest?
    2. I don't want to use any free translators that are
    available freely on net these days, because a lot of them
    re-directs to their own translation page and includes
    their own banners and or advertisements etc., which may
    not be feasible with us as we have to include this
    utility on our company's web sites
    3. How much time it should take approximately to develop?
    4. If there's any free tool available however without the
    limitations as mentioned above in point 2, then i am not
    averse to using it please let me know if such a tool is
    available.
    5. Please also let me know if there exists already a multi-
    lingual component in java with source code freely
    available anywhere on net, then please give me the link.
    This will help me save a lot of time in developing it.
    Please let me know the answers to above of my queries and
    u"ll be doing a great deal of help here.
    Thanks in advance
    sd76

    JS supports UTF-8... assuming the browser has the proper fonts.
    // _lang.jsp
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Language Test</title>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </head>
    <body bgcolor="#ffffff" background="" text="#000000" link="#ff0000" vlink="#800000" alink="#ff00ff">
    <%
    request.setCharacterEncoding("UTF-8");
    String str = "\u7528\u6237\u540d";
    String name = request.getParameter("name");
    // OR instead of setCharacterEncoding...
    //if(name != null) {
    //     name = new String(name.getBytes("ISO8859_1"), "UTF8");
    System.out.println(application.getRealPath("/"));
    System.out.println(application.getRealPath("/src"));
    %>
    req enc: <%= request.getCharacterEncoding() %><br />
    rsp enc: <%= response.getCharacterEncoding() %><br />
    str: <%= str %><br />
    name: <%= name %><br />
    <script language="Javascript">
    alert('<%= name %>'); // should show correctly
    </script>
    <form method="POST" action="_lang.jsp">
    Name: <input type="text" name="name" value="" >
    <input type="submit" name="submit" value="Submit POST" />
    </form>
    <br />
    <form method="GET" action="_lang.jsp">
    Name: <input type="text" name="name" value="" >
    <input type="submit" name="submit" value="Submit GET" />
    </form>
    </body>
    </html>

  • Urgent ..How to use Tree component in a web based interface

    I want to make a Java web based windows explorer type interface.
    For that i want to use tree component .
    Is it possible for me to do this.
    Can anybody suggest me how to do ?

    Hi,
    I assume you plan to do this in a browser and you plan to use JTree. When using an applet, you'd have to make sure that the latest Java Plug-In is available on the client.
    If you not plan to use JTree, you could use a Tree component which is not based on swing such as the one at http://www.calcom.de/eng/dev/cctree.htm
    In this case still the browser would have to be 'Java enabled' by any kind of plug-in
    Ulrich

  • Visual Studio Grid Component that is sortable and updatable

    Hello, 
    We have a need to pull a group of records from SQL Server into a grid component on a web site. Once the data is in the grid we'd like to be able to sort it a couple of different ways. We also need to write that data back to the database (Updates, not inserts).
    We can get the grid component to pull the data and sort it but if we try and update the sorted data after making changes, it corrupts the data. The updated data goes into the wrong records (probably in the unsorted order).
    If we don't sort, it works fine. If we do sort it's no good. Is there a trick to getting this to work? Do we need to use a different component? I'm not the developer so I'm sorry if I'm a little vague on technical details but I think it ought to be something
    easily achievable. 
    Thanks in advance for any help!
    Matt

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because you got the issue during web site programming, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Why doesn't  list component identify grid component

    Hi,
    I have couple of doubts.
    1. I put <grid> component inside of <List>
    component . Surprise! The <List> component is not identifying
    the <Grid> component. Is this bug of Flex Or it's property of
    Flex <List> component.
    What I have to do to make <Grid> visible even I put
    inside of <List> component.
    2. what is an equilanat of <Table> in Flex. Ofcourse it
    may be DataGrid. Suppose If I use DataGrid I have lot of
    restrictions.
    These are the problems I am facing with <DataGrid>
    ( i ) Is this possible to put radio button / link bar as one
    of column in a row. I mean how to put radio button / link bar as
    row in array
    ( ii ) Is it possible to make columns in a row as variable
    sizes i.e. suppose if DataGrid header has size=100. Is it possible
    to make column of next row size as 200.
    anybody help me in this regard. I am eagarly waiting for
    reply.Because I have been strugling to solve this problem for last
    4 days.
    Regards,
    Siva Kumar

    A custom itemRenderer will be the solution to several of your
    issues(1,i).
    For 2., there is no exact equivalent of an html table. Look
    at Grid, TileList, or consider making your own component.
    for ii), no, all cells in a columns must be the same size.
    Tracy

Maybe you are looking for

  • Unable to restart the Microsoft Software Protection Platform service from command line - Win81 MS Office 2013 SP1

    I'm unable to restart the Microsoft Software Protection Platform service on a Windows 8.1 laptop for MS Office 2013 SP1 (32-bit) using the following command: cscript ospp.vbs /osppsvcrestart (issued from C:\Program Files (x86)\Microsoft Office\Office

  • Traffic light on the basis of last month

    Hi guys, I have a question about the traffic light in the model Visual Composer. I would like to have a traffic light besids a table or graphic that wil be shown the status ( Green, red, yellow!) on the basis of the last month. In the table or in a g

  • Mac zip files won't open in Windows PC

    I have been right clicking and compressing raw .mov video files to send from the UK to Australia via wetransfer. I am using a Macbook Pro with Mountain Lion. Each set of zipped files is between 3GB - 8GB in size and they (compress) and zip and send f

  • Arabic text not showing properly (chat & presenter)

    Hi, We've two issues with Arabic text: 1- In the chat window when you type a sentence (say السلام عليكم ورحمة الله it appears backward الله ورحمة عليكم السلام) 2- When using Presenter in PowerPoint any Arabic word when exported appears in reverse and

  • Trouble with a PDF opening correctly from a link

    When I click the link to a certain pdf on a web page, a new window opens but I get the error message "The file is damaged and could not be repaired." I click OK, then close that window. I go back to the link, click on it again, and sometimes the pdf