Selecting Operations for Messages in Sequence Diagrams

Is there another way of assigning operations to messages in sequence diagrams apart from selecting the message, right-clicking and then selecting the operation from the list.
The reason is that I have quite a list of operations and I can't see the last couple in the list.
Any suggestions? ...Apart from having less operations... :)

The only way to specify the operation is via the context menu. We have two levels. On is the operation context menu. The second is the context menus that list each operation by visibility. Are you not able to see all of the operations under the visibility context menus as well?

Similar Messages

  • When select contact for message puts wrong name in

    When I send a new message I select the appropriate contact once I pick that name, then in the headlines that name does not come there it defaults to the same two contacts.

    The ONLY way to remove this data from your phone, is to restore your phone as a new device in iTunes, NOT from backup. You either do that, or you live with it. Currently, there is no way to edit this data on any iPhone.

  • Extracting return operation from a parallel sequence in a routing.

    Hi all
    I need to extract data on some existing parallel sequences in routings from R3. One of the fields i need is the return operation for each parallel sequence.
    I was hoping the data would be in PLFL which contains most of the sequence information I need. But alas it doesn't have the return operation.
    Checking with F1 and the tech button shows me that the field i want is PLFLD-VORNR2. But PLFLD is a structure that I can't get to.
    Does anyone know how to extract this info from the system?
    Regards
    Simon Pedersen

    Hi Simon,
    The field that you're looking for is PLFL-BKNT2 (for the return operation). Pay attention that in this field there's a number that is representing the operation node number, not the number that you see in the routing screen.
    Regards,
    Mario

  • Cannot select multiple messages in a sequence diagram

    In sequence diagrams, deleting multiple messages is tedious because multiple messages cannot be selected by using a selection rectangle.
    1) If the rectangle contains a single message, its object is also highlighted. So when multiple messages are selected, the corresponding objects are selected.
    2) If the selection rectangle overlaps a single line of the combined fragments box, the entire box is selected.
    I could same time if Studio used normal CTRL conventions. In other applications, holding down CTRL has two possible results.
    1) If the item to be selected is not highlighted, then that item becomes highlighted and is added to the selection group. Studio does this.
    2) If the item to be selected is already highlighted, then that item becomes non-highlighted and is removed from the selection group. Studio does not do this. So I cannot use a selection rectangle, then selectively use CTRL to remove unwanted items from the selection.
    Can anyone suggest a way of selecting multiple messages?
    As a side issue, does anyone know how to remove individual items from a selection?

    TreySpiva wrote:
    Have you tried using the Shift key when selecting?It's the same problem. Selecting one or more messages also highlights the sending and receiving objects associated with the messages. Pressing DELETE at this point would also delete the objects.

  • Message text in sequence diagrams not displaying in editor

    I split a large sequence diagram into smaller parts so that the parts could be included as graphics in a user manual.
    Here is how I split the diagram:
    1) Create the single large diagram. Name the diagram "SD".
    2) This diagram produces an SD_etlp and an SD_etld file.
    2) Copy these two files to different names. Eg SD_etlp_01 and SD_etld_01.
    2) Delete 10 messages from the bottom of the original diagram. Save.
    3) Copy the two files to SD_etlp_02 and SD_etld_02.
    And so on.
    So the diagram editor only sees the original file name. But this file is actually getting smaller and smaller. I can re-edit any of the saved files by changing their name back to the original file name as seen by the diagram editor.
    I produced about 10 smaller sequence diagrams without problem.
    On the latest sequence diagram in the editor, I lost all the message text. Everything else was fine. (I think I shortened the lifelines too much so they encroached on the actual messages. Note that I do not shorten lifelines in the editor, because these changes are not persistent. I edit the lifeline heights in the ETLP file.)
    Losing the message text should not have been a problem. Because I thought that all I had to do was return to one of the earlier diagrams and start again.
    However, on returning to all the previous saved diagrams, all the message text had disappeared from those diagrams as well. (I had already printed out those diagrams, so I haven't lost everything.)
    When I open the ETLD files, I can see all the missing message text for each diagram, for example:
    <name value="public void addNode( String Unnamed, String Unnamed )"/>
    Can anyone tell me how to show these messages on the diagrams?

    When I select "Show Message Numbers" , all text is displayed as "1:"
    If I right-click on an individual message, "Show Message Name" is not checked. If I check it, it says "Unnamed".
    I may have introduced a corruption as follows:
    1) One message text disappeared. This may have been due to the excessive amount of manual dragging on large diagrams (see later).
    2) I right-clicked on the message. Select "Show Message Name".
    3) The text "Unnamed" was displayed.
    ( I now know that "Unnamed" will be displayed for any message, even when message text is displayed :)
    4) I typed "public void logout( )"
    5) This produced the correct text on the diagram.
    Some effects of this were:
    1) In the model, a message was added to the contents of "Messages", named "public void logout()". All the other messages are simply called "Message".
    2) There is an entry in ".QueryCache" file:
    nodeType_="Message" name="public void logout( )" id="DCE.14D184C9-7052-ECFE-D9E9-48CB83B1E357" fullName="public void logout( )"/><Name nodeType_="Lifeline" name="self" id="DCE.37BD6533-F0C0-FDF8-7391-521338CD4F86"
    This is the only cache file entry that relates to messages.
    If I can roll back the changes made by typing "public void logout( )", would that cure the problem?
    1) As well as noticing that the message text is still in the ETLD file, I also see that, for each message:
    <visible value="true"/>
    I have been backing up matched pairs of ETLP and ETLD files which earlier produced good diagrams. If these files later produce a diagram in which the message text is missing, then there must be at least one other file that has been corrupted. Does anyone know what other files I should back up to produce a self-consistent set of files that can be used for recovery?
    By the way, here is the reason that I am spending so much time trying to recover message text rather than simply regenerating the model. The diagram has 250 messages. The horizontal spacing between some objects is equal to 20 times the width of one object. This means that I have a lot of dragging to do. Each manual action increases the risk that some error will be made (and usually is). Even at 5% zoom, the diagram is several screens wide, so messages can be disappearing off-screen without my knowledge. Simply closing up the objects takes two days work, because there are several combined fragments boxes which must be handled very delicately, or message text disappears.

  • How to generate Sequence Diagrams for existing code

    Hi,
    I have a web application written in Java/Jsp's. I am looking to generate sequence diagrams automatically for the existing source code using this tool. I am not sure if this is possible using this tool. Can some one please explain me if that is possible using this IDE tool? If so can you please let me know how this can be done?
    Any response is greatly appreciated.
    Thanks in advance.
    Vijay

    Hi,
    Yes, you can reverse engineer operations and create sequence diagrams using Java Studio Enterprise.
    Just right-click on the operation in the UML model that has the source file associated with it, and select "Create Diagram from Selected elements" or "Reverse Engineer Operation".
    Thanks!

  • Does WCF-OracleDB adapter support XMLType data for table select operation

    I am getting this error When I do the consume adapter service for Oracle table select operation on one of the tables which has XMLType column. It's working fine for other tables. 
    Microsoft.ServiceModel.Channels.Common.MetadataException: Retrieval of Operation Metadata has failed while building WSDL at 'http://Microsoft.LobServices.OracleDB/2007/03/XXXX/Table/table_name/Select' ---> Microsoft.ServiceModel.Channels.Common.MetadataException:
    Incorrect Type: XMLTYPE. Possible causes: 1. Permission issue 2. Unsupported type.
       at Microsoft.Adapters.OracleDB.OracleCommonMetadataResolverHandler.ResolveTypeMetadata(String nodeId, TimeSpan timeout, TypeMetadataCollection& extraTypeMetadataResolved)
       at Microsoft.ServiceModel.Channels.Common.Design.MetadataCache.GetTypeMetadata(String uniqueId, Guid clientId, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.MetadataLookup.GetTypeDefinition(String typeId, TimeSpan timeout)
       at Microsoft.Adapters.OracleDB.OracleCommonMetadataResolverHandler.ResolveTypeMetadata(String nodeId, TimeSpan timeout, TypeMetadataCollection& extraTypeMetadataResolved)
       at Microsoft.ServiceModel.Channels.Common.Design.MetadataCache.GetTypeMetadata(String uniqueId, Guid clientId, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.MetadataLookup.GetTypeDefinition(String typeId, TimeSpan timeout)
       at Microsoft.Adapters.OracleDB.OracleCommonMetadataResolverHandler.ResolveOperationMetadata(String operationId, TimeSpan timeout, TypeMetadataCollection& extraTypeMetadataResolved)
       at Microsoft.ServiceModel.Channels.Common.Design.MetadataCache.GetOperationMetadata(String uniqueId, Guid clientId, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.Design.WsdlBuilder.SearchBrowseNodes(MetadataRetrievalNode[] nodes, WsdlBuilderHelper helper, TimeoutHelper timeoutHelper)
       --- End of inner exception stack trace ---
    Server stack trace: 
       at Microsoft.ServiceModel.Channels.Common.Design.AdapterExceptions.ThrowMetadataException(String errorMessage, Object arg, Object source, Exception innerException)
       at Microsoft.ServiceModel.Channels.Common.Design.WsdlBuilder.SearchBrowseNodes(MetadataRetrievalNode[] nodes, WsdlBuilderHelper helper, TimeoutHelper timeoutHelper)
       at Microsoft.ServiceModel.Channels.Common.Design.WsdlBuilder.GenerateOperationSchemas(WsdlBuilderHelper helper, MetadataRetrievalNode[] nodes, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.Design.WsdlBuilder.GetWsdl(MetadataRetrievalNode[] nodes, Uri uri, TimeSpan timeout)
       at Microsoft.Adapters.OracleCommon.OracleCommonWsdlRetrieval.Microsoft.ServiceModel.Channels.Common.IWsdlRetrieval.GetWsdl(MetadataRetrievalNode[] nodes, Uri uri, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.Design.MetadataExchanger.ProcessMetadataGet(Message message, Uri target, TimeSpan timeout, MetadataLookup metadataLookup)
       at Microsoft.ServiceModel.Channels.Common.Design.MetadataExchanger.ProcessMetadataMessage(Message message, Uri target, TimeSpan timeout, MetadataLookup metadataLookup, Message& replyMessage)
       at Microsoft.ServiceModel.Channels.Common.Channels.AdapterRequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.ServiceModel.Channels.IMetadataRetrievalContract.GetMetadata(MetadataRetrievalNode[] nodes)
       at Microsoft.ServiceModel.Channels.Tools.MetadataSearchBrowse.MetadataPanel.GetWsdl(MetadataRetrievalNode[] nodes)
       at Microsoft.ServiceModel.Channels.Tools.MetadataSearchBrowse.MetadataPanel.btnProperties_Click(Object sender, EventArgs 
    My table has XMLType column which is also included for select.
    Thanks

    Hi Van&boatseller,
    The duplicate thread has been deleted, and thanks for your feedback.
    Best regards
    Angie Xu
    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.

  • Message order in Papyrus sequence diagram xmi file

    Dear all,
    I would like to ask you if you could help me by explaining me how message ordering information of Papyrus sequence diagrams is represented in the corresponding xmi files.
    For each lifeline, I would assume that the order of messages is shown in the xmi file in the coveredBy attribute of the respective lifeline element.
    If yes, I have observed that the order there is not shown correctly. Adding a message seems to be always appended at the end of the messages list, instead of being inserted inbetween its neighbouring messages.
    If no, then how can I get from the xmi file the message order for a single lifeline?
    I am using just two simple lifelines exchanging messages, without any combined fragments or complex notation. My Eclipse version is Luna, and I just downloaded the Papyrus 1.1.0 version, the one that Mars uses.
    Thank you a lot in advance. Any information you could provide me regarding this issue would be extremely useful.
    Best regards,
    Alkis

    Since I haven't still got any answer, let me rephrase the question and make it more general:
    Do Papyrus sequence diagrams store message order information?
    As far as I have understood, they should, but I believe that it is a Papyrus bug that, when creating a new message, order of MessageOccurrenceSpecification fragments in XMI file is most frequently not respected. The same can be seen from the MessageOccurrenceSpecification fragments in the Model Explorer for the respective interaction in Papyrus IDE, order of them frequently seems random.
    Another thing which I strongly believe is a bug is that, when creating a new combined fragment sometimes the lifeline information of message events in the XMI file gets lost (attribute 'coveredBy' of each lifeline, and attribute 'covered' of each MessageOccurenceSpecification fragment get blank).
    In any case, I would be really grateful if someone could answer my initial question so that I know that these assumptions are correct, find a way to temporarily circumvent the problem and file a bug report about that.
    Best regards,
    Alkis

  • Downloaded Mountain Lion and now not able to select multiple email messages at a time for deletion what gives?

    Downloaded ML last night now one little glitch seems to be that I cannot select multiple messages at a time to delete. With the massive amount of email I receive, this is a problem. Cannot seem to find any simple fixes in preferences. Any ideas?

    you could use one hand to do this, before ML. select one email and drag up/down with the cursor to select more. selecting/shift key is the normal multiple selection operation. that's two handed.
    if there is empty space at the bottom, it works.
    i did submit this through the feedback process. i hope the functionality returns.

  • Error Message: JBO-26080: Error while selecting entity for PoLines

    I'm using JDev 9.0.4.
    i make a VO from two EO at the BC4J level.
    then i create complete struts JSP Application for this VO.
    so i get a page that i can do New/Edit and Delete to each row.
    when i try to do Edit for some lines (not all of them) i get this error :
    Error Message: JBO-26080: Error while selecting entity for PoLines
    Error Message: ORA-01722: invalid number
    What does it mean ? how can i solve it ?
    Thank You

    Un-comment the following lines to display the stack trace
    oracle.jbo.DMLException: JBO-26080: Error while selecting entity for ElcPoLines
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:832)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:4665)
         at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:3845)
         at oracle.jbo.server.EntityDefImpl.findFromDatabase(EntityDefImpl.java:888)
         at oracle.jbo.server.EntityDefImpl.findByPrimaryKey(EntityDefImpl.java:943)
         at oracle.jbo.server.QueryCollection.findByKey(QueryCollection.java:2524)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:2907)
         at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:6019)
         at oracle.jbo.client.JboUtil.getRowFromKey(JboUtil.java:91)
         at oracle.jbo.html.BC4JContext.getRow(BC4JContext.java:307)
         at oracle.jbo.html.struts11.actions.EditAction.populateBC4JFormBean(EditAction.java:160)
         at oracle.jbo.html.struts11.actions.EditAction.edit(EditAction.java:59)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01722: invalid number
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:890)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2407)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2660)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:457)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:387)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:606)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:4665)
         at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:3845)
         at oracle.jbo.server.EntityDefImpl.findFromDatabase(EntityDefImpl.java:888)
         at oracle.jbo.server.EntityDefImpl.findByPrimaryKey(EntityDefImpl.java:943)
         at oracle.jbo.server.QueryCollection.findByKey(QueryCollection.java:2524)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:2907)
         at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:6019)
         at oracle.jbo.client.JboUtil.getRowFromKey(JboUtil.java:91)
         at oracle.jbo.html.BC4JContext.getRow(BC4JContext.java:307)
         at oracle.jbo.html.struts11.actions.EditAction.populateBC4JFormBean(EditAction.java:160)
         at oracle.jbo.html.struts11.actions.EditAction.edit(EditAction.java:59)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)

  • "You do not have enough access privileges for this operation" error message on iTunes startup?

    So I cleaned up my Macbook recently, and now I am fearing that I may have deleted something important.
    Whenever I start up iTunes, I am met with the "You do not have enough access privileges for this operation" error message. I have read forums that advised editing the Get Info page for the iTunes library to allow all users and staff to "Read/Write", but doing this has not eliminated this message.
    Any tracks that were not purchased play normally, but purchased tracks now require additional sign-in that I do not believe was required before. Other than this, iTunes performs normally.
    Did I mess something up permanentliy or is there a way to fix this?

    The problem was that my account wasn't authorized. But when I tried to authorize it, I got an error message saying that the authorization could not be completed. Thankfully, THAT was something that Apple Support had previously addressed.
    See http://support.apple.com/kb/ts1277
    Thanks, Apple.

  • Please can someone do a Sequence Diagram for this code

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Bgame extends JFrame implements ActionListener
         Map map;
         Location location = new Location();
         Player[] player = new Player[2];
         int playeri = 0;
         Player playerx;
         Image boardi = null;
         Image bcar = null;
         Image gcar = null;
         JButton spinButton = new JButton("Spin");
         JLabel spun = new JLabel("");
         JButton houseButton = new JButton();
         JButton carButton = new JButton();
         JButton playersButton = new JButton();
         JButton bankButton = new JButton();
    public Bgame()
         addWindowListener(new WindowAdapter()
         public void windowClosing(WindowEvent ev)
                   dispose();
                   System.exit(0);
         setBounds(1,1,800,600);
         getContentPane().setLayout(null);
         loadImages();
         map = new Map(boardi);
         map.setLocation(111,0);
         getContentPane().add(map);
         createCpan();
         player[0] = new Player(bcar,Color.black);
         player[1] = new Player(gcar,Color.green);
         map.add(player[0]);
         map.add(player[1]);
         setVisible(true);
         playerx = player[playeri];
         playerx.spin();
         monitor();
    private void monitor()
         Timer timer = new Timer(1000, new ActionListener()
              public void actionPerformed(ActionEvent e)
                   if (playerx.hasToGo)
                        //getToolkit().beep();
                        if (spun.getForeground() == playerx.color)
                             spun.setForeground(Color.gray);
                        else spun.setForeground(playerx.color);
                        return;
                   if (playerx.hasToSpin)
                        if (spinButton.getBackground() == playerx.color)
                             spinButton.setBackground(Color.lightGray);
                        else spinButton.setBackground(playerx.color);
                        return;
              playeri++;
              if (playeri == 2) playeri = 0;
              playerx = player[playeri];
              playerx.spin();
              spun.setText("");
              spinButton.setEnabled(true);
              spinButton.setBackground(playerx.color);
         timer.start();
    private void loadImages()
         boardi = getToolkit().getImage("Game.gif");
         bcar = getToolkit().getImage("blackCar.gif");
         gcar = getToolkit().getImage("blueCar.gif");
         MediaTracker tracker = new MediaTracker(this);
         tracker.addImage(boardi,0);
         tracker.addImage(bcar,0);
         tracker.addImage(gcar,0);
         try {tracker.waitForID(0);}
         catch (InterruptedException e){}
    private void createCpan()
         JPanel pan = new JPanel();
         pan.setLayout(null);
         pan.setBounds(0,0,110,500);
         pan.setBackground(Color.pink);
         spinButton.setBounds(10,34,90,30);
         spinButton.addActionListener(this);
    pan.add(spinButton);
         spun.setBounds(10,64,90,30);
    pan.add(spun);
         getContentPane().add(pan);
    public void actionPerformed(ActionEvent e)
         if(e.getSource() == spinButton)
              int spin = (int)(Math.random()*3+1);
              spun.setText("Total spun = "+spin);
              spun.setForeground(playerx.color);
              spinButton.setBackground(Color.lightGray);
              int togo = playerx.location+spin;
              playerx.go(togo,location.getX(togo),location.getY(togo));
              spinButton.setEnabled(false);
    public static void main (String[] args)
         new Bgame();
    import java.util.*;
    public class Location
         Space[] spaces = new Space[29];
    public Location()
         spaces[0] = new Space(1,238,135,"Start Career");
         spaces[1] = new Space(2,346,135,"Pay Day");
         spaces[2] = new Space(3,417,135,"Rent a Flat Pay 5,000");
         spaces[3] = new Space(4,492,167,"Raffle Prize Collect 10,000");
         spaces[4] = new Space(5,500,218,"PAY DAY");
         spaces[5] = new Space(6,570,269,"STOP Get Married LIFE");
         spaces[6] = new Space(7,570,344,"Wedding Reception Pay 10,000");
         spaces[7] = new Space(8,517,344,"Extra Tuition Pay 5,000 to Teacter");
         spaces[8] = new Space(9,465,344,"Win Quiz Show Collect 95,000");
         spaces[9] = new Space(10,407,344,"PAY DAY");
         spaces[10] = new Space(11,352,344,"Sponsor Golf Pay 35,000 to Athlete");
         spaces[11] = new Space(12,300,344,"Play a family game LIFE");
         spaces[12] = new Space(13,246,344,"Buy Furniture PAY 10,000");
         spaces[13] = new Space(14,183,344,"Visit in laws LIFE");
         spaces[14] = new Space(15,118,344,"STOP Buy a house");
         spaces[15] = new Space(16,68,344,"PAY DAY");
         spaces[16] = new Space(17,10,356,"Swap Salary Cards with any other player");
         spaces[17] = new Space(18,10,412,"Sponsor an athletee Pay 35,000 to Athlete");
         spaces[18] = new Space(19,61,412,"Taxes Due PAY Accountant");
         spaces[19] = new Space(20,115,412,"Baby Girl LIFE");
         spaces[20] = new Space(21,175,412,"Move to a new city PAY 10,000 to Pilot");
         spaces[21] = new Space(22,235,412,"Help the homeless LIFE");
         spaces[22] = new Space(23,304,412,"Win the Lottery Collect 50,000");
         spaces[23] = new Space(24,369,412,"Art auction Pay 20,000 to Artist");
         spaces[24] = new Space(25,434,412,"Invest in a theatre PAY 5,000 To Actor");
         spaces[25] = new Space(26,489,433,"Taxes Due Pay Accountant");
         spaces[26] = new Space(27,518,470,"PAY DAY");
         spaces[27] = new Space(28,519,529,"Night School PAY 10,000 To Teacher");
         spaces[28] = new Space(29,385,529,"RETIRE");
    public int getX(int i)
         return(spaces.x);
    public int getY(int i)
         return(spaces[i].y);
    public String getText(int i)
         return(spaces[i].txt);
    public class Space
         int n,y,x;
         String txt;
    public Space(int n, int x, int y, String txt)
         this.n = n;
         this.y = y-82;
         this.x = x+14;
         this.txt = txt;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Map extends JPanel
         Image board;
         JLabel txt = new JLabel("");
    public Map(Image i)
         board = i;
         setLayout(null);
         setSize(board.getWidth(null),board.getHeight(null));
         addMouseListener(new MouseAdapter()
              public void mouseReleased(MouseEvent m)
                   System.out.println(""+m);
         txt.setBounds(456,04,200,24);
         txt.setBackground(Color.lightGray);
         txt.setOpaque(true);
         add(txt);
    public void setText(String s, Color c)
         txt.setText(s);
         txt.setForeground(c);
    public void paint(Graphics g)
         super.paint(g);
         g.drawImage(board,0,0,null);
         paintComponents(g);
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.image.BufferedImage;
    public class Player extends JLabel
         int location = -1;
         Color color;
         boolean hasToGo = false;
         boolean hasToSpin = false;
         Point sloc;
         int tox,toy;
         int mx,my;
         boolean inPlace = false;
    public Player(Image car, Color c)
         super();
         setIcon(new ImageIcon(trans(car)));
         color = c;
         setBounds(10,10,car.getWidth(null),car.getHeight(null));
         if (getWidth() < 1) setSize(40,40);
         addMouseListener(new MouseAdapter()
         {     public void mousePressed(MouseEvent m)
                   sloc = getLocation();
                   mx = m.getX();
                   my = m.getY();
              public void mouseReleased(MouseEvent m)
                   if (getBounds().contains(tox,toy)) hasToGo = false;
                        else setLocation(sloc);
                   inPlace = false;
                   repaint();
         addMouseMotionListener(new MouseMotionAdapter()
         {     public void mouseDragged(MouseEvent m)
                   if (! hasToGo) return;
                   int x = getX() + m.getX() - mx;
                   int y = getY() + m.getY() - my;
                   if (x < 0) x = 0;
                   if (y < 0) y = 0;
                   setLocation(x,y);
                   if (getBounds().contains(tox,toy)) inPlace = true;
                   else inPlace = false;
                   repaint();
    public void go(int l ,int x, int y)
         hasToGo = true;
         hasToSpin = false;
         tox = x;
         toy = y;
         location = l;
    public void spin()
         hasToSpin = true;
    public void paint(Graphics g)
         super.paint(g);
         g.setColor(color);
         if (inPlace)
              g.setColor(Color.red);
              g.fillRect(8,8,16,16);
         else
              g.setColor(color);
              g.drawRect(0,0,36,38);
              g.drawRect(1,1,34,36);
    public BufferedImage trans(Image img)
         int w = img.getWidth(null);
         int h = img.getHeight(null);
         if (w < 1) w = 40;
         if (h < 1) h = 40;
         BufferedImage to = new BufferedImage(w,h,BufferedImage.TYPE_4BYTE_ABGR);
         to.getGraphics().drawImage(img,0,0,null);
         int r1 = to.getRGB(0,0);
         for (int x=0; x < w; x++)
              for (int y=0; y < h; y++)
                   if (to.getRGB(x,y) == r1) to.setRGB(x,y,0);
         return(to);

    To be fair to Phil, the person wasn't asking how to do a sequence diagram, they just wanted one given to them. I'm sure they would have got a more friendly/informative reply if they had actually asked how to do one.

  • Reg: EQ Operator for Select-Options..

    Normally we use IN Operator for comparing selection-screen fields for select-options, Rarely we use EQ also when working with Select-Options, why we go for this EQ operator.
    Kindly let me know.
    Thanx in Advance.
    Akshitha.

    Hi there. You should use IN when you know that there will be or may be multiple values chosen for the select-option.  For instance, if the user is going to enter a range of personnel numbers on the selection screen, you could use something like:
    IF ws_pernr IN p_pernr
    (where p_pernr is your select-option selection screen field).
    But if you know that the select-option field will only have one value assigned to it (or you are referencing either the high value or the low value of the select-option) then you can use EQ; the term EQ checks for equality against a single value.
    - April King

  • API for drawing sequence diagrams?

    hello everyone,
    I am designing a call path trace utility. One of requirements is that the trace result be presented in sequence diagram. I am wondering if there is 3pp API out there to do it?
    Your help is appreciated as always.

    yeah it does help
    although i had come across it myself. Im aware of the fact that its courtesy to google your problem before hitting the forums, but I thought that they're might be a range of tools out there for this purpose, and to get people's opinions on the pros and cons of each, before i begin.
    Thank you.

  • ERROR MESSAGE - Ivalid operation for forward only resultset : first 17075

    Hi, all, I'm using Jdbc Drive Oracle JDBC driver 8.1.7.0.0 and weblogic. However, when I do:
    Statment stmt = (CallableStatement) conn.prepareCall("{call some_pkg.p_searc(?,?,?,?,?,?,?,?,?)}",
    ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    ResultSet.first();
    I got the error message: Ivalid operation for forward only resultset : first 17075.
    Thanks.
    Mag

    Thanks for your reply. But what I want to use first. One thing I don't understand is why even I use ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY, but the resultset is still not scrollable. How can I get a scrollable resultset. Thanks.

Maybe you are looking for

  • Displaying jpegs from folder

    Hi, I would like to display jpegs from a folder, and be able to somehow scroll through them? So far i have been able to display them by using listfolder and linking it to a for loop containing readjpeg, but this basically creates a slideshow of jpegs

  • Emergency help? CS3 (AS 2 I think...)

    hello everyone, I am hoping I can help someone with a delivery deadline of end of day today. This is handed off to me with the hope that I can, but I am a new AS programmer, soooo... There is an image gallery that loads thumbs from an xml file. The t

  • Firefox doesn't display Romanian diacritics properly (Google Fonts)

    Hello, I have a blog on Blogger, which is in Romanian. I am using Arimo (Google Font). I tested my blog on several popular browsers (Google Chrome, Opera, even Internet Explorer) to check if the diacritics are displayed properly. They work perfectly

  • Vendor master question

    I face a recurring problem in payment proposal. For some vendors there is no PO box or street address . We get error in payment proposal run. I go to XK02 and add the dummy Street address.Then we run again and it works.I know that some where there PO

  • Wily host agent issue

    Hi Experts, I have an ongoing issue regarding setting up managed systems in Solution Manager. My solman system is SP21 and everytime I go to setup a system via Managed System Configuration --> Diagnostics Configuration. I get the same error no matter