Help needed on implementing a custom control

Hi
Am developing a control which resembles like Flash timeline or windows movie maker timeline.
It will have multiple nodes in vertical aligned and a slider.
like
=Node1==================|====
=Node2==================|====
=Node3==================|====
'|' is the vertical slider.
1) The nodes count is dynamic
2) The nodes are added to a scrollpane
3) The control should be resizable in horizontal & vertical
4) The nodes can be dragged and dropped
here the problem is the slider should reside top on the nodes and can move horizontally.
Here glasspane is useless, bcoz we can't do the node drag and drop.
Please suggest some architecture to implement this.
Regards,
bee

Why are you still creating a custom TableModel? Did you not see the advice to use the DefaultTableModel in your last posting?
There is absolutely no reason to spend time creating your own custom TableModel. The DefaultTableModel will do everything you need and more.
You should never invoke the fireXXX of the AbstractTableModel from outside the actual model. This tells me you are not using the proper design.
I gave you a link to the Swing tutorial in your last posting as well. Have you read the tutorial yet? The easiest solution is to create a text field that limits the number of characters you can enter and then use this text field to create a default cell editor. But if you haven't read the tutorial you won't understand what I'm talking about.

Similar Messages

  • HELP: How to implement Model Predictive Control in LabVIEW?

    Hi, everyone
    I have a problem on realizing model predictive control algorithm in LabVIEW 7.1.1.
    What I have now is a linear model predictive control algorithm designed with Matlab -- Model Predictive Control Toolbox. Under simulation in SIMULINK, it works well.
    Now I need to implement this algorithm with hardwares such as sensors and actuaors by LabVIEW.  Initially, I try to use the NI Simulation Interface Toolkit (SIT) 2.0 connect the simulink module with my LabVIEW interface to get the model calculation out of matlab, then send them into LabVIEW. It failed, because SIT can only help me design a simulation interface in LabVIEW based on Matlab model. Not the parrallel working mode I need. I am wondering,  does any  people here have experience dealing with the similar problems? 
    Thanks! Appreciate your time and help!

    Thanks Jarrod.
    With your suggestion, I tried LabVIEW simulation module. It seems the Model Predictive Control (MPC) block I developed in Matlab/SIMULINK cannot be supported by LabVIEW simulation translator. 
    The parrallel mode means I want to use the input from DAQ card as the input for MPC block (Basically, it is just a control algorithm with I/O), and I would like to use the output from MPC block as my actuator output to external device. However, when I use Simulation Interface Toolkit to import my MPC block from Matlab to LabVIEW. It is completely sealed. I mean I cannot pull the I/O ports out from this block in LabVIEW. That is the problem where I am now.
    BTW: I found there is optimization function in Simulation module of LabVIEW.  But Why I cannot find that function in my Simulation module (LabVIEW 7.1.1 + Simulation Module 1.0) ?
    Do I need to upgrade my LabVIEW to 8.0, since I heard about several powerful math functions there. And I am hoping with these math tools, I could realize MPC by myself in LabVIEW.
    Anyway, Thanks a lot for your help!!!

  • Help needed in creating a Customer in SD

    Hi,
    I am trying to create a customer using the FM  'BAPI_CUSOTMERCREATEFROMDATA1'. Without Providing Reference Customer nbr, i am not able to create. Is there no means to create a customer without giving Reference Customer.
    All helpful answers will be rewarded.
    Regards,
    Udaya

    Hi Udaya,
    I have checked for the FM you have mentioned. That does not exist in my system. Anyway I could successfully create a customer using the FM BAPI_CUSTOMER_CREATE.
    This is the FM which lets you create a customer without the need of any reference. If it is configured in XDN1 that your account group has external number, please provide a number to your customer in the initial screen after you execute your BAPI.
    Let me know if you have any further concerns,
    Regards,
    Ramakanth

  • Help needed for translation of custom objects

    Hi All,
    We are currently in the process of upgrading from 11i to R12.1.3. We have a lot of custom reports and forms which needs to be translated based on language preference set at user level. The approach we have taken is as follows:
    1. Created one unique look up type for each of the custom objects.
    2. Each lookup code is mapped to a field of the custom object (report or form).
    3. Entered the translation for each of the lookup codes using Globe icon (Translation Form) available on the lookup form.
    4. When the user logs into his account, we are filterting out the record specific to user environment language using the condition:
    language of fnd_lookup_values = usernev('lang') and getting the translated labels for each of the fields in the custom object.
    Now what we would like to understand is if there is any other better way of doing translation based on user preferred language.
    We have heard about Oracle Translation Manager (OTM) but not sure how the same can be used in our case. Also we would like to know how Oracle does translation for the languages that are enabled in a particular instance. We would like to know if a similar approach can be followed for custom objects as well.
    Thanks & Regards,
    Sreenivasa M

    Implode wrote:
    We had the arrayList/collections lecture today.
    I asked the teacher about sorting objects and he started explaining hashmaps and then he mentioned another thing which we will only be learning next term, I'm sure we must only use what we have learned.
    How exactly can this be done. I have asked a few questions in the post already.
    ThanksWell, there was probably a gap in the communication. Hash maps (or hash tables, etc.) are instance of Map. Those are used to locate a value by its unique key. Generally, to speed up access, you implement a hashing function (this will be explained hopefully in class). Think of name-value pairs that are stored where the name is unique.
    Contrast this with items that are sorted. Any List can be sorted because its elements are ordered. An ArrayList is ordered, generally, by the order you inserted the elements. However, any List can be given its own ordering via Comparable or Comparator. You can't do this with an ordinary Map. The purpose of a Map is speedy access to the name-value pairs, not sorting. The List likewise has different purposes, advantages, disadvantages, etc. List can be sorted.
    A Map is generally similar to a Set. A Set is a vanilla collection that guarnatees uniqueness of each element (note, not name-value pairs, but simple elements). There is one concrete class of Map that can be sorted, TreeMap, but I doubt your professor was referring to that. The values or the keys can be returned from the Map and sorted separately, but again, I doubt he was referring to that.
    Take a look at the Collections tutorial here on this site or Google one. It is fairly straightforward. Just keep in mind that things (generally) break down into Set, Map and List. There are combinations of these and different flavors (e.g., Queue, LinkedHashMap, etc.) But if you can learn how those three differ, you will go a long way towards understanding collections.
    (Oh, and be sure to study up on iterators.)
    - Saish

  • Help needed on weblogic portal source control under CVS

    Hi,
    Is that good or bad to put all the portaldomain under CVS control? eg.
    my portal domain directory structure under development environment is
    like the following:
    c:\myportaldomain --|
    |--beaApps
    |---portalApp
    | |---------myportalApplication
    |
    |---portalApp-project
    I think the stuff I need to put under CVS are "myportalApplication"
    and "portalApp-project" directories.
    However, I want to organize the CVS directory structure like the
    following:
    c:\myportalmodule --|
    |--src
    |--docs
    |--"myportalApplication"
    |--"portalApp-project"
    So this means: after I checkout from CVS, I need to copy the two
    directories "myportalApplication" and "portalApp-project" from
    c:\myportalmodule into corresponding sub-directories under
    c:\myportaldomain, before I can do any development and testing. also,
    if I make some changes on c:\myportaldomain, and I want to checkin, I
    need to copy those files back to c:\myportalmodule. I tried to use
    directory softlink, but it windows NT just offer shortcut, which
    doesn't work.
    Can somebody give some education how to integerate the weblogic portal
    with CVS source control systems?
    Thanks very much

    Hi Rene,
    Thanks for the very helpful info.
    I think maybe I have a idea how to set up the dev environment now,
    basically I will organize the CVS repository and weblogic directories
    in the same way.
    c:\myportalmodule--|
    |---myportaldomain
    | |---beaApps
    | |---portalApp
    | | |---------myportalApplication
    | |
    | |---portalApp-project
    |--src
    |--docs
    |--build.xml
    So before everybody can checkout any code from CVS, he need to
    configure a new domain named "myportaldomain" in c:\myportalmodule
    directory. Since the CVS and his domain have the same directory
    structure, so when he do the fully checkout, the files will actually
    be put into the right place, and he can checkin his files easily.
    one annoying thing is that, since there are other files (such as
    startPortal.bat,etc )generated by domain configuration wizard in
    c:\myportalmodule\myportaldomain, which are not in CVS repository. so
    everytime, we do a checkout, CVS will issue the warnings saying those
    files are in CVS repository. Please advise is there any potential
    problems or issues with this setup? Thanks for your help!!!!!
    "René Zanner" <[email protected]> wrote in message news:<[email protected]>...
    Hi,
    we did a similar thing, but we put the whole beaApps directory in the CVS, because
    we had more applications and also modified some things inside the tools application
    of BEA...
    With CVS you can do a 'partial' checkout of your module, that means you do not
    need to copy the folders back and forth, but you can check in and update directly
    in you domain directory.
    The command for a partial checkout is:
    cvs co -d <name of destination folder> <module name>/<path to your folder>
    Once checked out here, you can work with the files like in the complete checkout.
    HTH,
    René
    [email protected] (mouse) wrote:
    Hi,
    Is that good or bad to put all the portaldomain under CVS control? eg.
    my portal domain directory structure under development environment is
    like the following:
    c:\myportaldomain --|
    |--beaApps
    |---portalApp
    | |---------myportalApplication
    |
    |---portalApp-project
    I think the stuff I need to put under CVS are "myportalApplication"
    and "portalApp-project" directories.
    However, I want to organize the CVS directory structure like the
    following:
    c:\myportalmodule --|
    |--src
    |--docs
    |--"myportalApplication"
    |--"portalApp-project"
    So this means: after I checkout from CVS, I need to copy the two
    directories "myportalApplication" and "portalApp-project" from
    c:\myportalmodule into corresponding sub-directories under
    c:\myportaldomain, before I can do any development and testing. also,
    if I make some changes on c:\myportaldomain, and I want to checkin, I
    need to copy those files back to c:\myportalmodule. I tried to use
    directory softlink, but it windows NT just offer shortcut, which
    doesn't work.
    Can somebody give some education how to integerate the weblogic portal
    with CVS source control systems?
    Thanks very much

  • Help needed to use Source code control system

    Hi all
    I am working on Suse 9.2 and I use JSP and Servlet in my project.I like to use Source Code Control System (SCCS) . But I have no idea about that.I need some help to initiate my project.
    Thanks in advance.
    -jegan

    I don't know this "SCCS" but I advice you to use Subversion as it is widely used open source standard.

  • WAD Help:  Need for one dropdown to control two characteristic InfoObjects

    All,
    I have a dashboard built in WAD that contains several charts.  There are several data providers and I have created a few simple dropdowns to apply filters.  Here lies my problem: 
    For one specific characteristic, "business unit", in one data provider the InfoObject is "0material_zgbu"(nav attribute of 0material).  In another data provider, the InfoObject is "0prft_ctr_zgbu" (nav attribute of 0prft_ctr).
    What is the best way to make the dropdown selection apply a filter to both characteristics?  Can I force a dropdown to control two characteristics?
    Should I create a hidden dropdown to control the 2nd and somehow pass the selected value to it using code?
    Any help or advice will be greatly appreciated.
    Thanks
    Rodney
    (fyi.... I am using version 2004s)

    If you feel both Drop Down Boxes will have Same values... then you can display only one Drop Down Box. Once you select any Value, you can trigger a command which will display values for both Data Providers.
    Let me know if you need any further explanation.
    Note: this will work only if both Drop Down Boxes has same Charecterstics Values.
    Nagesh Ganisetti.
    Assign points if it helps.

  • Help needed removing contants from Custom Form

    Folks,
    Please forgive this beginners question, but how do I get the hardcoded text out of my custom form?
    I would like to put it all in one place to make future GUI changes easier.
    I have seen in 'User Library.xml' things like this:
    <Field name='global.firstname'>
      <Display class='Text'>
        <Property name='title' value='_FM_FIRSTNAME'/>
        ....When this section of the form is displayed '_FM_FIRSTNAME' magically becomes "First Name". This is what I want to be able to do, but for the life of me I can't find where (or how) '_FM_FIRSTNAME' is defined.
    I tried the following in my custom form
    <defvar name='GAVIN_FN_SpecialField01'>
      <s>The Text I Want to See</s>
    </defvar>
    <Field name='global.specialfield01'>
      <Display class='Text'>
        <Property name='title' value='GAVIN_FN_SpecialField01'>
        ....But when the form is displayed the text in front of the field is "GAVIN_FN_SpecialField01" and not "The Text I Want to See".
    Can someone offer any advise?
    Regards,
    Gavin

    I have a supplementary question.
    My message catalogs are now in place and working for simple things like field names.
    I would like to use them in a Select control. Is that possible?
    I have this loaded as my custom message catalog:
    <Configuration name='Gavin Message Catalog' .... >
      <Extension>
        <CustomCatalog id='Gavin Message Catalog' enabled='true'>
          <MessageSet language='en' country='US'>
            <Msg id='_GAVIN_FN_FAV_DRINK'>Favourite Drink</Msg>
            <Msg id='_GAVIN_FN_FAV_DRINK_VALUE1'>Tea</Msg>
            <Msg id='_GAVIN_FN_FAV_DRINK_VALUE2'>Coffee</Msg>
          </MessageSet>
        </CustomCatalog>
      </Extension>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
    <Configuration>And I have the following in my custom form:
    <Field name='global.gavin_fav_drink'>
      <Display class='Select'>
        <Property name='title' value='_GAVIN_FN_FAV_DRINK'>
        <Property name='valueMap'>
          <appendAll>
            <String>Leaf Based</String>
            <ref>_GAVIN_FN_FAV_DRINK_VALUE1</ref>
            <String>Bean Based</String>
            <ref>_GAVIN_FN_FAV_DRINK_VALUE2</ref>
          </appendAll>
        </Property>
      </Display>
    </Field>The use of '_GAVIN_FN_FAV_DRINK' for the field name works perfectly.
    The use of '<ref>GAVINFN_FAV_DRINK_VALUE1</ref>' results in the text "_GAVIN_FN_FAV_DRINK_VALUE1" appearing in the drop down box rather than the desired "Tea".
    Can someone help me this this please.
    Regards,
    Gavin

  • Help needed for implementing master details region on the search page

    Hi All,
         I am new to Jdeveloper and OAF. I need to develop a sales order search page, for which the VO query is
         SELECT ch.order_number order_number
         , ch.attribute97 order_detail
         , ch.attribute14 sold_to
         , ch.attribute50 business_group
         , ch.source_doc_type source_doc_type
         , ch.line_number line_number
         , ch.transaction_amount transaction_amount
         , ch.split_pct||'%' split_percentage
         , jrs.NAME resource_name
         , jrr.resource_number resource_number
         , ch.processed_date processed_date
         , cq.NAME quota_name
         , ch.attribute34 transaction_type
         , ch.attribute35 order_type
         , ch.attribute51 product_line
         , ch.attribute54 city
         , ch.attribute55 state
         , ch.attribute56 district
         , ch.attribute57 area
         , ch.attribute61 salesrep_number
         , ch.attribute62 region
         , ch.attribute64 sales_org
         , ch.attribute68 terr_order_type
         , ch.attribute58 market_indicator
         FROM cn_commission_lines_all cl
         , cn_commission_headers_all ch
         , cn_quotas_all cq
         , jtf_rs_salesreps jrs
         , jtf_rs_resource_extns jrr
         WHERE cl.direct_salesrep_id = cl.credited_salesrep_id
         AND cl.commission_header_id = ch.commission_header_id
         AND cl.quota_id = cq.quota_id
         AND ch.direct_salesrep_id = jrs.salesrep_id
         AND jrr.resource_id = jrs.resource_id
         AND (NVL(ch.source_doc_type,'X') = 'EVEREST' OR NVL(ch.source_doc_type,'X') = 'SAP')
    AND (NVL(ch.attribute50,'X') = 'EMG' OR NVL(ch.attribute50,'X') = 'LSCA')
    I have 3 query parameters business_group, source_doc_type and sales order number.
    The results region should look like,
    Header region with order_number,order_detail,sold_to,business_group and the source_doc_type columns.
    The remaining fields go into the details region.
    Highly appreciate if anyone could help me on this.
    Regards,

    Hi,
    When I have a messagestyle layout for my header, I am not able to find the items in this region for the querycriteriamap. I need to populate the header region with values entered in the search region.
    For example: I create the OrderNumber messagestyledtext item in the messagecomponent layout of the header region. In simplesearchmappings, for the querycriteriamap, I am not able to find this item in the drop down for Results Item property.
    Please help me to understand.
    Regards,

  • Flex 3 :Help needed in implementing View States

    Hi 
    I am new to Flex , i am trying to understand View States , tried for one hour but got confused .
    (Basically by seeing the examples i understood the concept , but failed to implement ) 
    Please help .
    Assume my requirement is at the load of the page , i want to show an Login Button and a Chnage State Button (common button) only .and when the Change State button is clicked on ,i want to show the Register Button .
    So for this i made two Forms , and a common button .
           <mx:Form id="RegForm">
                <mx:Button label="RegFormButton" id="RegFormButton"/>
            </mx:Form>
            <mx:Form id="loginForm">
                        <mx:Button label="LoginButton" id="loginButton"/>
            </mx:Form>
    <!-- A common button for both the States-->
      <mx:Button label="Change State"
                  click=""/>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" currentState="Register">
    <mx:states>
    <mx:State name="Register">         
    <mx:SetProperty   target="RegForm"   value="Register"/>
    </mx:State>
    <mx:State name="loginForm">
    <mx:SetProperty   target="loginForm"   value="Login"/>
    </mx:State>
    </mx:states>
    ( I think some how i can write the Logic to chnage to the current state to loginForm when user clicks with some inline code , but please tell me At the start of the page please tell me why I am not able to show the Register.

    sorry for posting a dumb question .
    I realized my mistake .

  • Help needed in implementing Cisco Unity SSO using SAML

    Hello,
    I am aware that Cisco Unity 8.x  has a SSO checklist that requires:
    - Cisco Unity
    - MS AD on Win2003/8
    - Open AM
    - Apache Tomcat 7.0
    We already have a single sign-on solution at our organization that uses the Novell Access Manager (NAM). Would we be able to do Federated solution between another SSO product and the OpenAM on the Cisco Unity product. In this architecture all we will do is setup Open AM  as Service Provider (SP) fronting the Cisco Unity Apps and then do a SAML 2.0 protocol with an Identity Provider (IdP)  which would the NAM.
    The idea is that we have single Identity Provider  (IdP). I have a difficult time understanding why setting up SSO for Cisco Unity app requires installing a full suite of OpenAM SSO. I imagine most companies have their SSO solutions that have been implemented using products such as Oracle AM, Tivoli etc and all they would need to do is federate with the Cisco App, instead of of setting up a parallel SSO suite.
    Thanks in advance!

    Instead of registering the plug-in can u try placing it in the plugins folder under Oracle_IDM1/server folder.
    at times restart is required. esp when the server is running in production mode.
    Regards
    user12841694

  • Help needed for creating a SQLLoad control file

    I have 2 fields in my flat file
    If field1 = field2 load only field1 into tn and aux = NULL
    else if field1 != field2 load field1 into tn and field2 = aux
    Here is what I have so far - I need help with the "Where"
    -- ActiveNumbers.dat
    -- Steve J
    load data
    INFILE 'active.date'
    INTO TABLE tmp_ac_active
    APPEND
    FIELDS TERMINATED BY '|'
    (tn CHAR(10), aux CHAR(10))
    Thanks in advance
    Steve

    Thanks Joel
    Using the document you provided here is what I came up with. I notice this is 9i documents - I'm on 8. Does the SQLLoader work the same in both versions?
    This is the first time I've used this tool - No one here has even heard of it. (Well except for the DBA)
    load data
    INFILE 'active.date'
    -- Loads tn and aux if they do not match
    INTO TABLE tmp_ac_active
    WHEN tn != aux
    (tn CHARTERMINATED BY WHITESPACE,
    aux CHAR TERMINATED BY WHITESPACE)
    -- Loads only TN if both are the same
    INTO TABLE tmp_ac_active
    WHEN tn = aux
    (tn POSITION (1:10) CHAR)

  • Help needed to load a viewer control in Access

    Hi,
    I'm having a problem viewing a Crystal Report in Access.  The code looks like this:
    Dim crApp As New CRAXDRT.Application
    Dim crRep As CRAXDRT.Report
      'load a standalone report created in the designer
        Set crRep = crApp.OpenReport("c:\fax\database\reports\PO.rpt")
      CRViewer91.ReportSource = crRep
      ' print preview
      CRViewer91.ViewReport
    I'm loading CRADXDRT from CRADXDRT9.DLL.  The report viewer control is called "Crystal Report Viewer Control 9, which i believe is coming from CRVIEWER9.DLL.
    When I step through my code, CRADCDRT seems to load fine, however when I execute the CRViewer91.ViewReport step, the program seems to execute the code, but doesn't display any report.
    My question is:  am I using the correct control?  I have CR9 and 11 on my system.  I also have VB, which I believe also has a version of CR.  I'm trying to use 9, which is what the report was written in. 
    Thanks for your help.

    No it is not. The crviewer was part of the RDC which is now retired. The last version to ship the RDC was 11.5.
    See the [statement of direction|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bd35e5-c71d-2b10-4593-d09907d95289] for more details.
    Ludek

  • Help needed: Search function for custom Repository Manager

    Hi there,
    i'm writing my own Repository Manager for EP 6.0 SP2 PL4.
    I've serious problems getting the search function running. I'm using the 'new', Netweaver-based API.
    I think, there are some general questions to answer:
    - My Repository Manager exposes lots of custom 
       properties to the system. I create the properties
       for example using following code:
       IProperty newProp = new StringSingleValueProperty(
         PropertyName.getPropertyName(
                  "{}" + myAttName),
         myAttVal,                         PropertyFlags.constructFlags(
                  true, false, true, false)
        Is there any convention for the propertie's name?
        I think it has to be written in lowercase only?
        Can I use ANY namespace I want instead of the
        empty default namespace? (For example:
    - After indexing my resources (of course, containing my
       custom properties), the TREX-Monitoring screen for my
       index shows all my custom properties in the 'Document
       Properties' area, but all uppercase chars are escaped
       somewhat. Is this OK?
    - Trying to use the index above to search for particular
       resources in my repository by my custom properties
       fails all the time ('no docs found...'); searching for
       any system property works fine. What's the reason?
    - How can I force the (Property-) search uses my
       custom namespace-manager's methods
       isQueryPropertyNameUnderstood() and
       getQueryBuilder()
       to perform a 'pure' property search by the repository
       manager? It seems that the TREX always handles the
       queries by itself, because my methods are never called.
    Thanx for you help,
    Daniel

    I created a new manager and copied the classes exactly from the "simple" example and I see similar behavior. Actually, when I do this, folders are recursively copied, but not files. Again, browsing and viewing of files work fine. Again, I am not seeing any unexpected exceptions.
    The only thing that changed were the names and namespaces. Nothing else at all was changed.
    This makes me think I am missing some configuration somewhere or there is something special about the example project that the wizards are not creating. The only difference I see in the project file is an additional nature (com.tssap.selena.cmf.PatternNature), but I am not sure that is relevant.
    Wow, I am really stumped.
    -Alex

  • Need help- need to read a customer table from the payroll schema

    Hi gurus,
    I need to read an amonunt from a customer table in the payroll schema. Is it possible to input TABLE XXXX in the schema, or is impossible to read from a customer table?Do I need to create a report to upload the amount in an infotype?
    Thanks in advanced for for support!

    You should create your own custom operation (based on operation TABLE) to read your custom table from a Payroll PCR.
    If your custom table's name is longer than 5 characters, you may be required to use operations VAOFF and/or VALEN prior to your custom operation in the PCR.

Maybe you are looking for