Implementation of relation between button

I hope some one know spanish a can help me. My english is not to good.
Estoy haciendo lo siguiente:
Estoy haciendo un extends de un Jbutton. para implementar la idea de los programas de diagramaci�n, ejemplo Rational Rose.
ejemplo:
Use Case ------------> another use Case
lo que quiero hacer es eso poderlos relacionar graficamente.
Para lo cual uso el MouseMotionListener. y dibujo una l�nea desde el centro del boton hasta el el punto del mouse.
Todo Ok hasta ahi. El problema es que si no hago repaint, el programa me dibuja N lineas seg�n voy moviendo el mouse.
si le doy repaint se borran las lineas y cuando para el mouse ninguna linea se queda dibujada.
Creen que hay alguna manera de solucionar este problema.

My Spanish isn't the best, but is your problem keeping lines from diappearing on a repaint? If so, you probably need to overwrite the paintComponent method of the component the lines are drawn on. public void paintComponent(Graphics g) {
   super.paintComponent(g);
   //dibuja lineas aqui
}

Similar Messages

  • Define main objects for Drag & Relate between BW 3.1 and EP6

    hi all.
    We are trying to implement Drag & Relate between BW 3.1 and EP6.
    We have 2 different BW reports based on the same object "0MATERIAL". One of them should be a source and the other is the target. When creating the iViews for these reports the "main object" property has no values, therefor we don't see any symbol near the object we want to drag. The import of the "0MATERIAL" object from BW to the portal was successful.
    Is it related to customizing the BW system or the portal?
    thanks,
    Sagi

    I solved the problem - I added the BW alias before the main object name in the main object property. For example "BW.0MATERIAL" when BW is the BW system alias and 0MATERIAL is the object name.
    Sagi

  • Relation between Boactivity and a Y_Bo - New possible change not

    Hi;
    I have a problem and need your help please.
    I have an error with the implementation of the following Components.
    Application: MSC
    BC: Activity:
    Tileset: Y_BESBERTANA
    Tiles: Y_BESBERList, actdet1b, comnote
    BO: BOActivity, Bdoc: Activity_Object
    BO: ZWMBESBERMSA, Bdoc: ZWMBESBERMSA
    Relation between the two BOs above: Y_BESBERREL, Coll for Multiple ZWMBESBERMSA, Type: Normal
    The relation is then between Y_BESBERList and actdet1b.
    Creation and saving of this new entry is possible, but not changing and saving of an existing entry. Also not a before new created entry could be saved.
    When I want to save an existing entry, then I still get the message that the entry could be saved, but nothing were saved and the save button is still active. The event handler in the BO "ZWMBESBERMSA" "before save" was then also not reached, but also not one of the save rules of the objects activity or notes. At the BO "ZWMBESBERMSA" I have no save rule.
    Thanks and best regards
    Thomas

    First off, you need to understand how Oracle Forms interacts with an Oracle database. Forms natively handles all DML transactions for you. Meaning, if you have a Forms data block based on a database table, Forms will generate all the necessary DML to handle any changes that occur in that block. You do not need to write your own DML statements in code.
    so i will insert a one record into the block 'A' and i will press button which will insert particular record into particular table.Is Block "A" based on a table? How are you inserting the record into the table? If you are writting your own DML to insert the record this would explain why you are being prompted to save when you change records. As I mentioned, if your block is based on a table, Forms will know if you change a value within the block.
    How can i control insert statement with the respect to datablock change in the block.If your blocks are based on tables, let Forms handle the DML! don't do it yourself.
    In other words i want to unpost the posted data when user press 'no' in the database messageIf your block is based on a table, when you are prompted to save changes - answering 'NO' will automatically clear the current record of the data block (in essence - rollback the change).
    Craig...

  • Creating a master-detail relation between a view and a table

    Hi all,
    I have a problem with creating a master-detail relation between a database-view with lots of customer data and a small table with per customer a list of entities of our companies who may work for that customer.
    Somehow I seem to be unable to create a relation between these two. I can't find where I can make a foreign key using Toplink to implement the relationship. And neither can I get a Viewlink object doing the job using ADF Business Components.
    Somebody any suggestions on this problems?
    Regards,
    Birgit

    There is a key relationship between two fields which form the primary key in the main table of the view and two fields in the second table.
    I created a viewlink manually, but I still couldn't get the data correct i.e. a form with one record of a customer from the main view and a small table with all entities of our company who can make performances for that customer.
    I tried to find a manual or a how-to on this topic but I didn't find anything helpfull yet.
    Regards,
    Birgit
    After a couple more tries, I got the master-detail working. With all the fiddling I am not sure what caused the problem but I think the finally action was checking which fields of the view were marked as primary keys.
    Now everthing is up and running.
    Birgit
    Message was edited by:
    user492355

  • What are the Relations between Journalizing and IKM?

    What is the best method to use in the following scenario:
    I have about 20 source tables with large amount of data.
    I need to create interfaces that join the source tables into target tables.
    The source tables are inserted every few secondes with about hundreds to thousands rows.
    There can be a gap of few seconds between the insert of different tables that sould be joined.
    The source and target tables are on the same Oracle instance and schema.
    I want to understand the role of: 'Journalizing CDC' and 'IKM - Incremental Update' and
    how can i use it in my scenario?
    In general What are the relations between 'Journalizing' and 'IKM'?
    Should i use both of them? Or maybe it is better to deelte and insert to the target tables?
    I want to understand what is the role of 'Journalizing CDC'?
    Can 'IKM - Incremental Update' work without 'Journalizing'?
    Does 'Journalizing' need to have PK on the tables?
    What should i do if i can't put PK (there can be multiple identical rows)?
    Thanks in advance Yael

    Hi Yael,
    I will try and answer as many of your points as I can in one post :-)
    Journalizing is way of tracking only changed data in your source system, if your source tables had a date_modified you could always use this as a filter when scanning for changes rather than CDC, Log based CDC (Asynchronous in ODI, Logminer/Streams or Goldengate for example) removes the overhead of of placing a trigger on the source table to track changes but be aware that it doesnt fully remove the need to scan the source tables, in answer to you question about Primary keys, Oracle CDC with ODI will create an unconditional log group on the columns that you have defined in ODI as your PK, the PK columns are tracked by the database and presented in a Journal table (J$<source_table_name>) this Journal table is joined back to source table via a journalizing view (JV$<source_table_name>) to get the rest of the row (ie none PK columns) - So be aware that when ODI comes around to get all data in the Journalizing view (ie Inserts, Updates and Deletes) the source database performs a join back to the source table. You can negate this by specifying ALL source table columns in your PK in ODI - This forces all columns into the unconditional log group, the journal table etc. - You will need to tweak the JKM to then change the syntax sent to the database when starting the journal - I have done this in the past, using a flexfield in the datastore to toggle 'Full Column' / 'Primary Key Cols' to go into the JKM set up (there are a few Ebusiness suite tables with no primary key so we had to do this) - The only problem with this approach is that with no PK , you need to make sure you only get the 'last' update and in the right order to apply to your target tables, without so , you might process the update before the insert for example, and be out of sync.
    So JKM's provide a mechanism for 'Change data only' to be provided to ODI, if you want to handle deletes in your source table CDC is usefull (otherwise you dont capture the delete with a normal LKM / IKM set up)
    IKM Incremental update can be used with or without JKM's, its for integrating data into your target table, typically it will do a NOT EXISTS or a Minus when loading the integration table (I$<target_table_name>) to ensure you only get 'Changed' rows on the load into the target.
    user604062 wrote:
    I want to understand the role of: 'Journalizing CDC' and 'IKM - Incremental Update' and
    how can i use it in my scenario?Hopefully I have explained it above, its the type of thing you really need to play around with, and throroughly review the operator logs to see what is actually going on (I think this is a very good guide to setting it up : http://soainfrastructure.blogspot.ie/2009/02/setting-up-oracle-data-integrator-odi.html)
    In general What are the relations between 'Journalizing' and 'IKM'?JKM simply presents (only) changed data to ODI, it removes the need for you to decide 'how' to get the updates and removes the need for costly scans on the source table (full source to target table comparisons, scanning for updates based on last update date etc)
    Should i use both of them? Or maybe it is better to deelte and insert to the target tables?Delete and insert into target is fine , but ask yourself how do you identify which rows to process, inserts and updates are generally OK , to spot a delete you need to compare the table in full, target table minus source table = deleted rows , do you want to copy the whole source table every time to perform this ? Are they in the same database ?
    I want to understand what is the role of 'Journalizing CDC'?Its the ODI mechanism for configuring, starting, stopping the change data capture process in the source systems , there are different KM's for seperate technologies and a few to choose for Oracle (Triggers (Synchronous), Streams / Logminer (Asynchronous), Goldengate etc)
    Can 'IKM - Incremental Update' work without 'Journalizing'?Yes of course, Without CDC your process would look something like :
    Source target ----< LKM >---- Collection table (C$) ----<IKM>---- Integration table (I$) -----< IKM >---- Target table
    With CDC your process looks like :
    Source Journal (J$ table with JV$ view) ----< LKM >---- Collection table (C$) ----<IKM>---- Integration table (I$) -----< IKM >---- Target table
    as you can see its the same process after the source table (there is an option in the interface to enable the J$ source , the IKM step changes with CDC as you can use 'Synchronise Journal Deletes'
    Does 'Journalizing' need to have PK on the tables?Yes - at least a logical PK in the datastore, see my reply at the top for reasons why (Log Groups, joining back the J$ table to the source table etc)
    What should i do if i can't put PK (there can be multiple identical rows)? Either talk to the source system people about adding one, or be prepared to change the JKM (and maybe LKM, IKM's) , you can try putting all columns in the PK in ODI. Ask yourself this , if you have 10 identical rows in your source and target tables, and one row gets updated - how can you identify which row in the target table to update ?
    >
    Thanks in advance YaelA lot to take in, as I advised I would reccomend you get a little test area set up and also read the Oracle database documentation on CDC as it covers a lot of the theory that ODI is simply implementing.
    Hope this helps!
    Alastair

  • Find relation between tables

    Hi experts,
    How can I find the relation between tables? I mean, I can go to se 11 and compare each field of 2 tables manually, but it's very time consuming. Is there any possibilty to compare tables and find all the fields that can be found in both table?

    Go to SQVI transaction... Create a qucik view.. ztest.. give desc..etc
    Select data source as table join.... enter
    now one screen will come with blank data (blue scrren)
    in that application toolbar second button .. click that.. enter VBAK..
    click that again.. enter VBAP.. now an image will come with links b/w vbak and vbap.. you can use any no. of tables there....

  • Set a relation between two or more images

    Is it possible to create a relation between two or more images?
    For example: We have an image in three versions (rgb, cmyk, gray). If I find one of these, I would like to klick on a button like "show correspondend images". So I can see all versions of this images we ever saved.
    Any idea?
    Best regards!
    Roman

    I don't think Lightroom handles cmyk images.
    For rgb and gray, you can stack the images, or make the gray from a virtual copy of the rgb. In this way, simply unstacking the images results in your requested "show corresponding images".

  • Relation between data blocks

    i want to join two tables with one to one relation between them using oracle form developer 10g but the problem is that using the oracle developer you can only display only one record from the second table at the same time related with current record from the first table,but what i need is to display all the records from the first table with their related records from the second table.( i can make a view joining the two tables, but i want to know if there is a way to do it using the form developer).

    Hi!
    I don't think it's possible to implement using Forms relations. What you can try to do is to create KEY-EXEQRY trigger on your 'master' block with the following content:
    EXECUTE_QUERY;
    GO_BLOCK( 'detail' );
    EXECUTE_QUERY;
    GO_BLOCK( 'master' );
    On block 'detail' create PRE-QUERY trigger. Use :SYSTEM.LAST_QUERY to get WHERE clause from 'master' block to get set of PK or whatever which can be used in 'detail' block to query correspondent set of records, and modify 'detail' block 'WHERE clause' property.
    Another approach whould be to have your 'detail' block PK as a VARCHAR2 field and do something like this:
    :detail.PK := '# IN (' || your_where_clause || ')';
    It's just a rough idea without too much implementation details.
    Regards,
    Andrew Velitchko
    BrainBench MVP for Developer/2000
    http://www.brainbench.com

  • Relation between AA & ps

    hi experts,
    can anybody explain what is the relation between asset accounting and project systems modules? why do we implement project system module? what is the use?
    thanks & regards
    jay jay

    Hi Jay,
    Both large scale projects, such as building a factory, and small-scale projects, such as organizing a trade fair, require precise planning of the many detailed activities involved. The project manager has the job of ensuring that the project is executed efficiently, on time, and within budget - which he or she achieves by ensuring that the required resources and funds are available as and when needed.
    Projects are generally part of the internal processes of a company. To be able to control all tasks in project execution, you need an organizational form that is specific to the project and which is shared by all departments involved. Before you can carry out a project in its entirety, the project goals must be precisely described and the project activities to be carried out must be structured. A clear, unambiguous project structure is the basis for successful project planning, monitoring, and control.
    You structure your project per the following points of view:
    By structures, using a work breakdown structure (WBS)
    By process, using individual activities (work packages)
    Project managers usually distinguish between two types of project:
    Externally financed projects
    Customer projects
    Internally financed projects
    Overhead cost projects
    Capital investment projects
    The common  understanding between the PS and AA is that an asset is created once a project is completed successfully.
    The high degree of integration between the Project System (PS) and other R/3 application components means that you can plan, execute, and account for projects as part of your normal commercial procedures. This means the Project System has constant access to data in all the departments involved in the project.
    Hope this helps.
    Rgds
    Manish

  • Set relation between list and document library?

    I have a requirement that I want to show pop up/ modal dialog when I click on list item column "upload/Edit" (in EditForm.aspx) . In Modal Dialog I have to show upload button and also existed items if any. Here the attachments will store into document
    library's folder .The list item ID should be the folder name in document library.
    How do I set relation between list and doc lib ?
    Appreciate if suggests any links.
    Thank you.

    Hi Saurav,
    pls check below
    What version of SharePoint 2010 "SP 2010 Foundation or SP 2010 Server" you need to have SP 2010 server and to have the "User Profile service application".
    How do you configure the "User Profile service application" did you add the "Social Tagging Database"
    Create, edit, or delete a User Profile service application (SharePoint Server 2010)" 
    http://technet.microsoft.com/en-us/library/ee721052.aspx
    When you access to "Application Management>Manage service applications>User Profile Service Application>Manage User Permissions" validate if the all authenticated users Group have the "use Social Features" checked.
    Also validate in Central Administration in Farm Features if you have social tags and notes activated.
    http://sharepoint.stackexchange.com/questions/17546/tagging-feature-not-working
    https://social.technet.microsoft.com/Forums/office/en-US/c11cda96-091b-4b96-91bc-ccd8000238f4/tags-and-notes-sharepoint-2010-not-visible?forum=sharepointadminprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • What are the relation between JPA and Hibernate, JPA and TopLink?

    What are the relation between JPA and Hibernate, JPA and TopLink?
    Can JPA instead of Hibernate and TopLink?

    The Java Persistence API (JPA) is the object relational mapping persistence
    standard for Java. Hibernate and TopLink provide an Open source Object-relational mapping framework for Java.
    They provide an implementation for the Java Persistence API. In my opinion, both Hibernate and TopLink provide support to JPA
    and they can also be regarded as the complementary to JPA.
    Let's wait to see other person's opinions.

  • What is the exact relation between the OC4J, ESB

    Hi Buddies
    I just want to know relation between the OC4J, ESB.
    If we got any problem in oc4j that will reflect in ESB ...?
    if we set load balancing on OC4J that will reflect in ESB ...? I mean that will distrubute load which is there on ESB ..?
    Thanks
    Bollineni

    OC4J is basicaly a JVM for people to deploy applications. The ESB application is installed into a OC4J conatiner.
    what is you issue with oc4j
    You need to follow the enterprise deployment guide to implement clustering
    http://download.oracle.com/docs/cd/E10291_01/core.1013/e10294/toc.htm. But the short answer is yes.
    cheers
    James

  • Relation between BI AND BW

    What is the relation between Business Intelligence and Business Warehousing?Are both one and the same or is there any difference?If so please let me know

    Hi Vinayak,
    Below are some of the differences between BI and BW :
    1. In Infosets now you can include Infocubes as well.
    2. The Remodeling transaction helps you add new key figure and characteristics and handles historical data as well without much hassle. This is only for info cube.
    3. The BI accelerator (for now only for infocubes) helps in reducing query run time by almost a factor of 10 - 100. This BI accl is a separate box and would cost more. Vendors for these would be HP or IBM.
    4. The monitoring has been imprvoed with a new portal based cockpit. Which means you would need to have an EP guy in ur project for implementing the portal !
    5. Search functionality hass improved!! You can search any object. Not like 3.5
    6. Transformations are in and routines are passe! Yess, you can always revert to the old transactions too.
    SAP BW is now known formally as BI (part of NetWeaver 2004s). I am not sure if it is really being termed as BW 7.0 It implements the Enterprise Data Warehousing (EDW). The new features/ Major differences include:
    1)Renamed ODS as DataStore.
    2)Inclusion of Write-optmized DataStore which does not have any change log and the requests do need any activation
    3)Unification of Transfer and Update rules
    4)Introduction of "end routine" and "Expert Routine"
    5)Push of XML data into BI system (into PSA) without Service API or Delta Queue
    6)Intoduction of BI accelerator that significantly improves the performance.
    7)Load through PSA has become a must. I am not too sure about this. It looks like we would not have the option to bypass the PSA during data load.
    Thanks & Regards,
    Suchitra.V

  • Relation between URL and content in JSF navigation

    Hello,
    I've tried lots of JSF examples and there always occoured a strange kind of navigation to me:
    The URL you see in the browser's address bar has nothing to do with the actually displayed JSP. Instead of that, the URL is always pointing to the previously called JSP - where the call to the current JSP comes from.
    I know where this comes from:
    If the form tags don't define an action, they are pointing to the current page itself.
    And the actually called navigation case is chosen by a (hidden) post parameter.
    So the JSF controller servlet doesn't actually care, which URL is called - it just regards the mentioned parameter.
    This kind of navigation seems quite confusing, especcially since JSF claims to make navigation clearer.
    One of the basic demands of the web applications we are developing is, to have a clear relation between URL and page content.
    E.g. it must be possible to index the pages with search engines. Or to simply bookmark distinct pages in the browsers favourites.
    Another problem about this navigation concept is, that it always works with forms and with post method (you can't choose get method), even if you just have simple links - e.g. detail view of a single item after selecting it from a list of items. That way it's not possible to ever use the back button of your browser.
    I'm new to JSF, so my question:
    Is this the (one-and-only) navigation concept of JSF, or are there alternative concepts as well?
    I would be surprised, since the mentioned demands are basic web standard - although I didn't find any alternatives so far.
    Thanks,
    Chily

    Thanks for the answer!
    I'm not sure, if using a redirect on every single call is very achieveable and in the purpose of the JSF design.
    E.g. it is generating a lot of traffic overhead.
    (Identifying the navigation case by the page name instead of a hidden parameter would help a lot.)
    Or the history of the browser doesn't work with it, so you can't identify visited links.
    But anyways, there are also internal problems with it in most cases: I've inserted the <redirect/> tag in the navigation cases of a few examples. This just causes a call of the <to-view-id> page, without any parameters. So I probably have to add some non-standard-processing around the call to make it work:
    If e.g. I have the standard case of a list of items (let's say in a dataTable), which are identified by an id. And each item uses a commandLink to call it's detail view.
    * How do I get the identifier (id) as a parameter into the redirect URL?
    * And how do I access this parameter in the destination form bean to choose the item to be displayed? (see also http://forum.java.sun.com/thread.jspa?threadID=607505)
    Thanks for help,
    Chily

  • Relation between ODPI and OINV

    Hello all,
    I have a problem. I want to make a report in Crystal report. This report will show a list of invoice and downpayment which is related to this invoice. I dont know how to get downpayment which is use on invoice. I dont find relation between invoice and downpayment.
    Can you help me?

    Hi Vit,
    I used SQL Profiler to extract the query that is used to get the records when the ... button is pressed. I am not sure if this is what you're looking for, but here is the query:
    SELECT T0.* 
    FROM [dbo].[ODPI] T0
    WHERE (T0.CardCode = N'CARDCODE       ' 
    OR  T0.FatherCard = N'CARDCODE       ' 
    AND  T0.FatherType = N'P' )
    AND  T0.CANCELED = N'N' 
    AND  T0.DpmStatus = N'O' 
    AND  T0.DocCur = N'GBP' 
    AND  T0.PaidSum <> 0 
    AND  T0.DocStatus = N'C' 
    AND  T0.Posted = N'Y'
    Hope it helps,
    Adele

Maybe you are looking for

  • Problem with receiver jdbc CC

    Hi, Iam doing RFC to JDBC scenario.. The receiver JDBC adapte which i configured is giving me an error saying that "Unable to execute statement for table or stored procedure. 'HR_Employee' (Structure 'Statement') due to com.microsoft.sqlserver.jdbc.S

  • *** Still trying to get good HDV to DVD image quality

    Okay, so I thought I had a good solution, but I'm now back to square one. I'm shooting and editing in HDV with a Sony Z1U. I edit by using Final Cut Pro, 1 monitor and my 32" LCD tv (native resolution of 1366x768). While editing the image, and especi

  • Can I work in ID CS3 from version 4?

    I am a student and currently have CS2, I am looking to upgrade to CS4. I have to go to CS4 because I can no longer get CS3 at a student price, however everyone I work with and the university mac labs all still use CS3. I understand when using InDesig

  • Firefox doesnt seem to work with some sites, ie Linkedin cannot use drop downs etc works fine on IE or Google Chrome.

    When using certain sites like Linkedin Firefox seems to bug out, for example drop down menu's do not work and oddly enough when I reply to any email Firefox seems to be unable to register who I am replying too, this was fine until last weekend. I hav

  • How can an client-applet connect to server-DB?

    as the subject. I want the applet@client-side connect to DataBase@server-side, I am using Tomcat as engine & JDBC-mysql as tools where should the jdbc class placed in? WEB-INF/classes ? WEB-INF/lib ?? or others? now i am facing the problem that the a