Sample for JTable & DragnDrop ?

Hi Folks,
did someone illustrate an example (or seen) that shows the use of Drag&Drop and a JTable? #
Thanks in Advance
cheers

Try this as a starting point http://java.sun.com/products/jfc/tsc/articles/dragndrop/index.html
It uses a JTree but it should point you in the right direction

Similar Messages

  • Sample for A/R invoice and Incoming Payment

    Hi,
    Have any samples for create A/R invoice and incoming payment by SDK?
    Which related tables are used?
    Thanks!
    Regards,
    On

    On,
    If you look at the SDK Help Documentation, specifically at the Documents, Document_Lines and Payments Objects for the DI API, the help discusses the tables involved as well as gives samples of common documents.
    Eddy

  • XSLT samples for XML- ABAP mapping

    Hi all,
    Does anyone have a XSLT samples for XML->ABAP mapping ?
    regards

    first create XSLT program by copy pasting the below given code and give the program name as "Y_TEST"
    <b>XSLT code</b>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:output indent="yes"/>
      <xsl:template match="NewDataSet">
        <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
          <asx:values>
            <OUTTAB>
              <xsl:for-each select="Table">
                <OUTTAB1>
                  <AIRPORTCODE>
                    <xsl:value-of select="AirportCode"/>
                  </AIRPORTCODE>
                  <CITYOFAIRPORTNAME>
                    <xsl:value-of select="CityOrAirportName"/>
                  </CITYOFAIRPORTNAME>
                  <COUNTRY>
                    <xsl:value-of select="Country"/>
                  </COUNTRY>
                  <COUNTRYABBRIVATION>
                    <xsl:value-of select="CountryAbbrviation"/>
                  </COUNTRYABBRIVATION>
                  <COUNTRYCODE>
                    <xsl:value-of select="CountryCode"/>
                  </COUNTRYCODE>
                  <GMTOFFSET>
                    <xsl:value-of select="GMTOffset"/>
                  </GMTOFFSET>
                  <RUNWAYLENGTHFEET>
                    <xsl:value-of select="RunwayLengthFeet"/>
                  </RUNWAYLENGTHFEET>
                  <RUNWAYELEVATIONFEET>
                    <xsl:value-of select="RunwayElevationFeet"/>
                  </RUNWAYELEVATIONFEET>
                  <LATITUDEDEGREE>
                    <xsl:value-of select="LatitudeDegree"/>
                  </LATITUDEDEGREE>
                  <LATITUDEMINUTE>
                    <xsl:value-of select="LatitudeMinute"/>
                  </LATITUDEMINUTE>
                  <LATITUDESECOND>
                    <xsl:value-of select="LatitudeSecond"/>
                  </LATITUDESECOND>
                  <LATITUDENPEERS>
                    <xsl:value-of select="LatitudeNpeerS"/>
                  </LATITUDENPEERS>
                  <LONGITUDEDEGREE>
                    <xsl:value-of select="LongitudeDegree"/>
                  </LONGITUDEDEGREE>
                  <LONGITUDEMINUTE>
                    <xsl:value-of select="LongitudeMinute"/>
                  </LONGITUDEMINUTE>
                  <LONGITUDESECONDS>
                    <xsl:value-of select="LongitudeSeconds"/>
                  </LONGITUDESECONDS>
                  <LONGITUDEEPERW>
                    <xsl:value-of select="LongitudeEperW"/>
                  </LONGITUDEEPERW>
                </OUTTAB1>
              </xsl:for-each>
            </OUTTAB>
          </asx:values>
        </asx:abap>
      </xsl:template>
    </xsl:stylesheet>
    <b>just create a type 1 program and paste the below given code.</b>
    report y_consume_webservice .
    data: wf_user type string .
    data: wf_password type string .
    types: begin of outtab1 ,
       airportcode(6)  ,
       cityofairportname(50),
       country(30)  ,
       countryabbrivation(10),
       countrycode(6)  ,
       gmtoffset(10)  ,
       runwaylengthfeet(15),
       runwayelevationfeet(15),
       latitudedegree(10)  ,
       latitudeminute(10)  ,
       latitudesecond(10)  ,
       latitudenpeers(10)  ,
       longitudedegree(10)  ,
       longitudeminute(10)  ,
       longitudeseconds(10)  ,
       longitudeeperw(10) ,
       end of outtab1 .
    data: outtab type  table of outtab1.
    data: wf_o like line of outtab .
    data: g_okcode like sy-ucomm .
    data: my_container   type ref to cl_gui_custom_container .
    data: g_dock type ref to cl_gui_docking_container .
    data: mygrid type ref to cl_gui_alv_grid .
    data: wf_field_cat type lvc_t_fcat .
    data: wf_field_cat_wa like line of wf_field_cat ,
          wf_is_layout type lvc_s_layo .
    data: wf_fld_cat type slis_t_fieldcat_alv .
    data: wf_fld_cat_wa like line of wf_fld_cat .
    data: wf_repid like sy-repid .
    data: int_tab_name type slis_tabname .
    data: xslt_err type ref to cx_xslt_exception .
    constants:
    * encoding for download of XML files
    encoding     type string value 'utf-8' .
    data: rlength type i,
          txlen type string  .
    data: http_client type ref to if_http_client .
    data: wf_string type string .
    data: wf_string1 type string .
    data: wf_proxy type string ,
          wf_port type string .
    selection-screen: begin of block a with frame .
    parameters: uri2(132) type c lower case .
    selection-screen skip 1.
    parameters: user(50) lower case,
                password(50) lower case ,
                p_proxy(100) lower case default 'proxy.xxx.com' ,
                p_port(4) default '80'.
    selection-screen: end of block a .
    at selection-screen output.
      loop at screen.
        if screen-name = 'PASSWORD'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    start-of-selection .
    clear wf_string .
    concatenate
    '<?xml version="1.0" encoding="utf-8"?>'
    '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
    '<soap:Body>'
    '<GetAirportInformationByCountry xmlns="http://www.webserviceX.NET">'
    '<country>' uri2 '</country>'
    '</GetAirportInformationByCountry>'
    '</soap:Body>'
    '</soap:Envelope>'
    into wf_string .
    clear :rlength , txlen .
    rlength = strlen( wf_string ) .
    move: rlength to txlen .
    clear: wf_proxy, wf_port .
    move: p_proxy to wf_proxy ,
          p_port to wf_port .
    call method cl_http_client=>create
      exporting
        host          = 'www.webservicex.net'
        service       = '80'
        scheme        = '1'
        proxy_host    =  wf_proxy
        proxy_service =  wf_port
      importing
        client        = http_client.
    http_client->propertytype_logon_popup = http_client->co_disabled.
    wf_user = user .
    wf_password = password .
    call method http_client->authenticate
      exporting
        proxy_authentication = 'X'
        username             = wf_user
        password             = wf_password.
    call method http_client->request->set_header_field
      exporting
        name  = '~request_method'
        value = 'POST'.
    call method http_client->request->set_header_field
      exporting
        name  = '~server_protocol'
        value = 'HTTP/1.1'.
    call method http_client->request->set_header_field
      exporting
        name  = '~request_uri'
        value = '/airport.asmx'.
    call method http_client->request->set_header_field
      exporting
        name  = 'Content-Type'
        value = 'text/xml; charset=utf-8'.
    call method http_client->request->set_header_field
      exporting
        name  = 'Content-Length'
        value = txlen.
    call method http_client->request->set_header_field
      exporting
        name  = 'SOAPAction'
        value = 'http://www.webserviceX.NET/GetAirportInformationByCountry'.
    call method http_client->request->set_cdata
      exporting
        data   = wf_string
        offset = 0
        length = rlength.
    call method http_client->send
      exceptions
        http_communication_failure = 1
        http_invalid_state         = 2.
    call method http_client->receive
      exceptions
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3.
    clear wf_string1 .
    wf_string1 = http_client->response->get_cdata( ).
    replace all occurrences of
        '<' in wf_string1 with '<' .
    replace all occurrences of
    '>' in wf_string1 with '>' .
    replace all occurrences of
    'xmlns=' in wf_string1 with 'xmlns:xsl=' .
    try .
        call transformation (`Y_TEST`)
                source xml wf_string1
                result     outtab = outtab.
      catch cx_xslt_exception into xslt_err.
        data: s type string.
        s = xslt_err->get_text( ).
        write: ': ', s.
        stop.
    endtry .
    break-point .
    Try this and give me your feedback.
    Regards
    Raja

  • Free Items as Sample for Demonstration

    Hi All,
    How to create an order for Free of Cost item which is to be dispatched as Sample for Demonstration purpose.
    This time we are creating it from ZOR2 but not finding it convinient.
    Thanks
    Ankit Airun

    Hello Ankit,
    <b>Free of charge delivery (samples) – Document type CD (Standard SAP)</b>
    1.     A free of charge delivery is used to send samples or free products to your customer.
    2.     This sales document type is only relevant for delivery and NOT invoicing.
    3.     Doc type – FD, item category group – NORM ; item category - KLN; schedule line cat. – CP ,delivery type – LF and remember there is no invoicing as samples are not meant to be billed.
    The item category 'KLN' is not relevant for pricing and billing to make sure the customer is not billed for the items sent i.e. samples.
    4.     again it would be advisable to set a delivery block for the sales order (like for doc type KN) so that no delivery can be made until this block is released by an authorised person.
    <b>Reward if helps</b>
    Regards
    Sai
    Message was edited by:
            Sai Giridhar

  • HT203433 After reading the sample for Hard Measures and buying and downloading, the downloaded book was missing 9 chapters. Anyone know how to fix this?

    After reading the sample for Hard Measures and buying and downloading, the downloaded book was missing 9 chapters. Anyone know how to fix this?

    Hi Charles...
    Try re downloading the iBook >  Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Any suggestions for choir and Gregorian voice samples for EXS24?

    I need good choir and Gregorian voice samples for the EXS24 and have not found much to choose from on the internet. Spectrasonics' Symphony of Voices is $500 and is not EXS24 format although they claim because it is Akai format, EXS24 should read it. Still, it's a lot of cash to drop on a sample set without it being in EXS24 format. I need choir and Gregorian voices that will work well for a gothic sound. Can anyone suggest anything? Thanks.

    The Spectrasonics set is very, very good, and it converts into the EXS (from the Akai, at least) quite nicely.
    Whether or not it's worth that kind of doe is only something you can decide. I never regretted buying that library though. The Pop stacks are worth it alone if you ever need "Enya" type vocal pads. I still haven't found anything better.
    And the specialized stuff, like the Gregorian chants, is all extremely well done.

  • I can't find the Demo Sample for Oracle AIA FP 2.5

    Hi,
    Can someone please help me find the Demo Sample for Oracle AIA FP 2.5? What I found is the Demo Sample for Oracle FP 11g, are there any ways to deploy it given that the version I'm using is AIA 2.5?
    Thanks,
    Eric
    Edited by: 865059 on Jun 10, 2011 3:30 AM

    I've checked out the logs, I found out that I was not able to build the DeployDemo.xml successfully though it says "BUILD SUCCESSFUL".
    The deployment failed when the script is trying to deploy the CustomerService.ear
    /FS/oracle/product/aia/samples/AIADemo/scripts/DeployDemo.xml:70: The following error occurred while executing this line:
    /FS/oracle/product/aia/samples/AIADemo/scripts/AIADemoCoreDeploy.xml:82: The following error occurred while executing this line:
    /FS/oracle/product/aia/samples/AIADemo/scripts/DeployWebServices.xml:18: Deploy error: Operation failed with error:
    jdbc/soademoDS not found

  • Mouse motion listener for JTable with JScrollpane

    Hi All,
    I have added mouse motion listener for JTable which is added in JScrollPane. But if i move the mouse, over the vertical/horizontal scroll bars, mouse motion listener doesn't works.
    So it it required to add mousemotionlistener for JTable, JScrollPane, JScrollBar and etc.
    Thanks in advance.
    Regards,
    Tamizhan

    I am having one popup window which shows address information. This window contains JTable with JScrollPane and JButton components to show the details. While showing this information window, if the mouse cursor is over popupwindow, it should show the window otherwise it should hide the window after 30 seconds.
    To achieve this, i have added mouse listener to JPanel, JTable, JButton and JScrollPane. so if the cursor is in any one of the component, it will not hide the window.
    but for this i need to add listener to all the components in the JPanel. For JScrollPane i have to add horizontal, vertical and all the top corner buttons of Scroll bar.
    Is this the only way to do this?

  • Code Samples for SDK programming in Java

    I need a complete set of Code Samples for SDK programming in Java, like the one that is available in VB and .Net.
    For Example, if you look at the following directory of machine where SDK is installed,
    C:\ProgramFiles\SAP\SAP Business One SDK\Samples\COM DI\VB.NET
    we have following Sample programs in C Sharp, VB6, VB.Net
    01.BasicOperations
    02.MetaDataOperations
    03.UsingSBObob
    04.SerialAndBatch
    05.OrderAndInvoice
    06.ObjectsSchemas
    07.Permissions
    08.LoadFromXML
    09.BudgetEditor
    10.Messages Service
    11.Basic Company Settings
    12. Report Layout Service
    13.SaveXML
    14.ItemCycleCount
    15.ApprovalStagesAndTemplateServices
    16.Alert Management Service
    Iam looking for Samples like what is available above so that we can understand JCO better.

    Hi Sridharan,
    The only JCO samples I know of are posted in the [thread|;.
    Regards,
    Vítor Vieira

  • Xslt sample for entities to keyboard character

    We need the xslt sample for entities replacement text. For instance I have to convert the entities ‘&lpar;’  to keyboard character ‘(’.

    Hi,
    Here's a very simple one... If the param1 matches with any value in the input it will return true...
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:param name="param1"/>
      <xsl:template match="/">
      <xsl:value-of select=".//*/text() = $param1"/>
      </xsl:template>
    </xsl:stylesheet>
    Cheers,
    Vlad

  • Any sample for Message with Attachment  for OC4J-10.1.3?

    Does any one know where I can find sample for Message with Attachment for oc4j 10.1.3. ORacle web service site how-to pages has no any sample for this. I saw this a new chapter is added to Oracle Web Service USer Guide, but no sample to test.
    Thanks
    TZhang

    Does any one know where I can find sample for Message with Attachment for oc4j 10.1.3. ORacle web service site how-to pages has no any sample for this. I saw this a new chapter is added to Oracle Web Service USer Guide, but no sample to test.
    Thanks
    TZhang

  • I am new to Muse so I am following the tutorial for Katie's Cafe.  I downloaded the sample files.  The problem is not all the files are in the folder as are on the tutorial.  The colour sample for instance is not there.  The CC Getting Started Katies.muli

    I am new to Muse so I am following the tutorial for Katie's Cafe.  I downloaded the sample files.  The problem is not all the files are in the folder as are on the tutorial.  The colour sample for instance is not there.  The CC Getting Started Katies.mulib file is also not there so you cannot automatically download all the necessary library files.  Can anyone help?

    found it in another area
    Where do I find the cc getting started Katies.mulib File ?

  • Unable to reset sample for the equipment task list.

    Unable to reset sample for the equipment task list. Example: Equipment task list has been created on 01.10.2007 & inspection lot is created on 10.12.2007 which requires the changed in the inspection characteristics

    Hi Sandeep,
    You may change the Inspection charecterstucs and save the Task List.
    After that u have to reassign that task list to the Lot. for that Trasaction code is QAC3 give the lot no. and enter
    , without doing anything save it. now go to QA02 and reassign the task list and sampling procedure. and save it.
    Now u may do RR as per ur new charecterstics.
    Regards,
    Neeraj Bhadauria

  • Custom samples for read aloud books

    I have uploaded a fixed layout read-aloud book and it needed a custom sample before it could go into the IBookstore. Imade one and reuploaded but now it says I still need a sample for the origina l as well as the preview. What am I doing wrong? In the asset guide it says something about type="preview" I assume that means that I have to insert something in the metadata of the preview to say it is a preview Is this right? If so can anybody tell me exatly what I need to insert.
    Thanks in Advance
    Bagsybaker

    You're not doing anything wrong.  I used iTunesProducer and got the same message.  So I called the people at iTunesConnect and tech told me it says that but it showed on his end.  A week later my Children's ebook was in the iBookstore along with my sample being available.

  • Flash only samples for flash 10 lib

    hi where can i get the flash only samples for LCCS i had some samples but i lost it. in new sdk i downloaded i dont find it. can i have the flash fla files

    Hi,
    There are four flash only SDK examples we provide. They are
    FlashSimpleChat, FlashUserList,FlashWebCamExample and ScreenShareFlashOnlyExample
    You can get them all under the sampleApps folder of the downloaded SDK. Example like FlashUserList has fla file inside it.
    Hope this helps
    Thanks
    Hironmay Basu

Maybe you are looking for

  • Refresh of FPM SEARCH Component  from Program

    Hi ABAPers, I am facing a problem with the Search UIBB (IF_FPM_GUIBB_SEARCH). The selection works fine: I can select the lead-selection, and the result is correctly provided to another UIBB. Within this second UIBB the data may be changed. In this ca

  • Configure WSUS for SCCM 2007 to received patchs and deploy

    Dears, I have installled SCCM 2007 and WSUS server in another server now i want to confiure for patching. how to do that and and ensure SCCM 2007 server receiving patchs. Please assist. [email protected]

  • Computer restarting under Photoshop CS6.

    When running Photoshop CS6, my computer will randomly restart and then on reboot will have difficulties coming back to full life (need to restart a couple more times generally). I have tested my RAM with Memtest (saw that in a forum) without reportin

  • How to see iCloud Photos on iPhone?

    Hello, So, two days ago I took the plunge and activated iCloud Photos, primarily for the backup, but also for consistency across devices. When I flipped the switch, my iPhone warned me that all photos would be remove (I'd read about this). I said "OK

  • Lan searching

    hi! i am planning to develop an application which finds the live hosts on a local area network and then lists the shared folders on each machine. basically i want to search for files and folders on lan plzzz.... help