UML Case toolkit.

Hi people, it been ages since I log in and ask for help and now I have a major problem...
You see, I'm going to do my final year project for my IT course and is attached to a company. This company wishes to create a UML design toolkit which create the java codes and database as well.
I believe i wouldn't have a big problem with the data conversion however, I would like to find out what is the UML symbol in a class diagram related to the java codes and OOP concept.
Another problem I might have is that I do not know what to use to draw the UML symbol. I'm thinking of extending JComponent and write a repaint or something and use Drag and Drop when the diagram is being moved and stuff like that.However, I'm also considering using Canvas to draw the item and uses MouseEvent to detect mouse motion in the Canvas.
Can anyone who has uses java for this purpose before advise me on what to use and why?
Thank you.

Check out JHotDraw5.2 and JModeller at the JavaWorld site. The source code is avalibale for both these apps. JHotDraw provides a framework for drawing and saving drawings. JModeller is an example of using JHotDraw to draw class diagrams. If you don't use the code itself, I'm sure it will give you some ideas.
Links:
======
Javaworld:[b]
http://www.javaworld.com/javaworld/jw-02-2001/jw-0216-jhotdraw-p1.html
http://www.javaworld.com/javaworld/jw-02-2001/jw-0216-jhotdraw-p2.html
http://www.javaworld.com/javaworld/jw-02-2001/jw-0216-jhotdraw-p3.html
[b]JHotDraw
http://www.javaworld.com/jw-02-2001/jhotdraw/JHotDraw5.2.zip
JModeller
http://www.javaworld.com/jw-02-2001/jhotdraw/jmodeller.zip
Graeme

Similar Messages

  • I wanna get a UML Case Tools, where can i find one for free or opensource?

    Hi, Merry X.Mas!!!
    I wanna get a UML Case Tools, where can i find one for free or opensource?
    Merry X.Mas!!!

    Hi,
    There is one more tool by name Enterprise Architect which supports UML2.0. A 30days eval copy is available. You can try hands on it.

  • Java to UML tool - need some advice

    Hi there,
    I'm developing a UML case tool as part of my final year project for my BSc degree in Computer Science, the aim of this tool is to covert Java source code into a UML Class diagram.
    When given a directory containing the current project files (*.java files), the system is then intended to analyse the source files in that directory and draw a UML Class diagram which shows the Inheritance and Associations.
    Just to mention, I have so far managed to get the source code analysis done using a Doclet (via JavaDoc) and I can get the methods, variables etc for each class. These have been stored in relevant data structures.
    Hoever, the most difficult part is the actual layout and construction of the class diagram and I would apprecaite any advice or assistance anyone is willing to provide..
    Thanks in advance,
    Regards
    Tony

    Well automatic layouting will be a tough task to cover - as even experienced modelers do have problems in arranging the classes correctly.
    I think having a closer look at graph-theory and public implementations of layout algorithms for electronic boards may be a good idea.
    Maybe I should get more a little more specific here ;-)
    When doing a manual layout, I usually tend to put the root class of an inheritance tree to the top of the diagram and classes that have the most dependencies to the center of it.
    Have you thought of patitioning the diagram automatically?
    Sometimes you find classes that act as a Facade (cf. Design Patterns, Gamma et al.) to a group of related classes which can be easily put into a sub-diagram. You may open this sub-diagram by double clicking on the Facade class.
    Hope this helps a little bit :)))

  • How to set Focus in a JDialog jdk 1.3.1

    I can't get the Focus to the wished component in my JDialogs when "invoke" them with
    setVisible(boolean)
    [\code]
    void mySetVisible()
    new FocusRequester(some JComponent of this Dialog);
    setVisible(true);
    public class FocusRequester implements Runnable // the classical Focus runner
    Component comp;
    public FocusRequester(Component comp)
    this.comp = comp;
    try
    if (comp != null)
    javax.swing.SwingUtilities.invokeLater(this);
    catch(Exception e)
    e.printStackTrace();
    public void run()
    comp.requestFocus();
    [\code]

    There are lot of way to do that. I suggest you use the WindowListener.
    import javax.swing.*;
    import java.awt.event.*;
    public class ShowDialog2 extends JFrame {
    public ShowDialog2() {
    this.setBounds(0, 0, 400, 400);
    this.setVisible(true);
    MyDialog waitDialog = new MyDialog (this);
    waitDialog.setBounds(0, 0, 100, 100);
    waitDialog.show();
    public static void main(String args[]) {
    new ShowDialog2();
    class MyDialog extends JDialog {
    JTextField _text1 = new JTextField();
    JTextField _text2 = new JTextField();
    public MyDialog(JFrame owner) {
    super(owner, true);
    this.getContentPane().add(_text1, "Center");
    this.getContentPane().add(_text2, "South");
    this.addWindowListener(new WindowAdapter() {
    public void windowOpened(WindowEvent e) {
    _text2.requestFocus();
    // Visual Paradigm for UML-Full feature UML CASE tool
    // http://www.visual-paradigm.com/

  • I need help with some simple code! Please read!

    hi everyone.
    I'm having problems with a piece of code, and i'd be extremely greatful if somebody could give me a hand with it. I'm totally new to java and have to make a program for my university degree, but i'm finding it extremely difficult, mainly due to my total lack of apptitude for this type of thing. I know this is easy stuff, but the books I have are no use so any help would be greatly appreciated.
    I have to write a program which uses two class files. I want one with the code to produce a simple button, and one to invoke it several times at different locations. I decided to write the program as one class file at first, and thought i'd be able to split it up at later. The program works fine when it is one class file. My book said that to split the two classes up, all i needed to do was change the second class to public, although this seems to not work at all. I'm at my wits end on this, and if anyone could correct my code I'd be eternally greatful.
    Here is the first class... (sorry about the lack of indentation)
    >>>>>>>>>>
    import java.awt.*;
    import java.applet.Applet;
    public class Phone extends Applet {
    private Image image;
    public void init() {
    setLayout(null);
    image = getImage(getDocumentBase(), "phone.jpg");}
    public void paint (Graphics g) {
    g.drawImage(image, 0, 0, 700, 530, this);
    PhoneButton myButton;
    myButton = new PhoneButton(20,20);
    >>>>>>>
    This is the second class....
    >>>>>>>
    public class PhoneButton {
    private Button butt;
    public PhoneButton(int a, int b, int c){
    setLayout(null);
    butt = new Button();
    butt.setBounds(a,b,20,20);
    add(butt);
    >>>>>>>>
    My compiler generates errors relating to Button, but i can't do anything to please it.
    Also, could anyone give me some pointers on how to add a different number or symbol to each button. That is what I added int c for, but i couldn't get it to work.
    Cheers in advance.
    Michael Morgan

    I found that there are 5 error in your code.
    1. You should import the "java.awt" package to the PhoneButton.java
    2. The PhoneButton is not a kind of Component. You cannot not add it to the Phone class
    3. the myButton = new PhoneButton(20, 20) does not provide enough parameters to create PhoneButton
    4. You cannot add a Button to a PhoneButton. Becaue the PhoneButton is not a kind of Container
    Fixed code:
    import java.awt.*;
    public class PhoneButton extends Button {
    public PhoneButton(int a, int b, int c){
         setBounds(a, b, 20, 20);
         setLabel(String.valueOf(c));
    ===========================================
    import java.awt.*;
    import java.applet.Applet;
    public class Phone extends Applet {
    private Image image;
    public void init() {
    setLayout(null);
    image = getImage(getDocumentBase(), "phone.jpg");}
    public void paint (Graphics g) {
    g.drawImage(image, 0, 0, 700, 530, this);
    PhoneButton myButton;
    myButton = new PhoneButton(20,20, 1);
    ======================
    Visual Paradigm for UML - Full Features UML CASE tool
    http://www.visual-paradigm.com/

  • No scrollbars on scrollpanel

    hi!
    i have the following problem:
    within an applet i got a scrollpanel. on this scrollpanel i added another panel that is much larger than the scrollpanel and i also did put some strings on this new panel that are out of the visible area of the scrollpanel.
    but, no scrollbars appear on the scrollpanel and therefore i can't navigate to those strings that are not visible within the scrollpanel bounds.
    i read already a couple of possible "solutions" from other topics but none of them worked. what i tried was
    - set a layout (i. e. gridbaglayout) for the detail panel
    - call a doLayout function for the detail panel
    - detemine the preferredSize of the detail panel
    - using a ScrollPanel constructor with SCROLLBAR_ALWAYS (the scrollbars did appear then, but scrolling was impossible...)
    so if anyone has annother idea any help would be great
    thanx in advance

    call panel.setPreferredSize(new Dimension(1024, 1024).
    It should work.
    Angus
    Visual Paradigm for UML
    Full Feature UML CASE tool
    http://www.visual-paradigm.com/

  • What tools does Microsoft use to mock UI interfaces, flowchart, use cases, and UML diagrams?

    I have searched google, but was not able to find article or blogs to answer this question. The questions asked here are very old. So I think this is a very relevant question today.
    We are a .NET group and we to update how we storyboard our application development. What tools does Microsoft use to mock UI interfaces, flowcharts, and use cases? Specifically for projects that are either C# .NET MVC 5 and above (looking forward to
    vNext).
    In the past, power point was able to do some of these things, but it seems it has been deprecated? Does Visio use these things? Also, is Visual Studio's 2013 UML diagram any good or is there another tool in Microsoft's bag of goodies that has more options?
    I have read about blend, but it does not seem to be .NET MVC specific.  
    Again, this is asking about what tools Microsoft teams usually use to storyboard as our team would like to mimic the more contemporary processes. We are in the process of upgrading our .NET applications and feel it is time to update our workflow process
    as well.
    Any book recommendations on TFS 2013 and agile are welcomed as well.  

    hlyates,
    Sorry but you have posted to a forum that deals exclusively with questions/issues about Microsoft Project, a project management application.
    I suggest you delete this post and start with the following: http://social.technet.microsoft.com/Forums/projectserver/en-US/home?forum=whatforum
    John

  • Java 2 UML Use Case Diagrams

    I am stuck at Use Case Diagrams generator, which takes Problem Statement or Requirement in english and generated Use Case Diagrams from it.
    I am successful at finding and seperating Parts of Speech from English sentances using PoS Taggers.
    how can i model them?
    are there any tips/open source programs available.

    learn English so the software understands you.

  • Report generation toolkit and signal express user step : problem of closing reference in "Stop" event

    Hi all,
    I'm trying to make a package of Vis to easily make Excel reports with Signal Express. I'm working on LabVIEW 8.2.1.
    I'm using the report generation toolkit, so I build a .llb from my project which contains all the hierarchy of my steps, but also the hierarchy of dynamic VIs called.
    I have made some steps, like "Open Workbook", "Write Data", etc.
    My steps run well, excepts one step : "Close Workbook".
    If my "Close Workbook" step is firing on "Run" Signal Express event, I have no error, so my reference is properly closed.
    But if my "Close Workbook" step is firing on "Stop" Signal Express event, I have an error "1", from "Generate Report Objectrepository.vi".
    I feel that I'm trying to use a reference which has been killed in the "Stop" step...
    I would like to know what exactly do Signal Express on "Stop" event and why my close function does'nt run well.
    Thanks,
    Callahan

    Hi Callahan,
    SignalExpress (SE for short) does the following on the Stop event:
    1. Takes the list of parameters that SE found on your VI's connector pane, and sets the values that the user set from the "Run LabVIEW VI" configuration page, if any.
    2. Then tells the VI that SE is running the Stop event by setting the Enum found on your VI's front panel. This in turn should produce some boolean values telling your VI to execute the Stop case.
    3. The VI is then run, with those values and states.
    4. SE checks to see if any errors where returned.
    5. Since this is the Stop event, SE releases the reference to the VI which it possesses.
    Questions for you would be, is the reference to your Workbook linked to a control on your connector pane, or held in a uninitialized Shift Register. If it's held in a Shift Register, SE would not be aware of it, and would not be able to affect that reference.
    Hope that helps. Feel free to post your LLB if it doesn't.
    Phil

  • Report Generation Toolkit V9.0.0 : Print Report.vi doesnt print

    Hi,
    i have migrated my Labview 8.5 Project with Report Generation Toolkit V1.1.2 to a Labview 2009 System with Report Generation Toolkit V9.0.0.
    In this Project I use the Report Generation Toolkit for printing out a Standard Report with e few Tables and Graphs.
    Now the VI Print Report.vi delivers the Error -41002 with the Text "Invalide Printer Name". I have, of course installed the propper Printer on the machine.
    I don´t connect a string to the "Printer name" input of the VI, because i want to use the default printer.
    In my oppinion, there´s  a bug in the Print Report.vi: if you don´t wire the "Printer name" input, the vi should use the default printer, but in this case the vi connects the empty input string to the input of the method node it calls.
    I fixed this bug, but the method node still returns the same error.
    any ideas?
    Thanks!
    Solved!
    Go to Solution.

    Thank you for the link!
    For some reasons i can´t find this specific article in the knowledge base (my browser is always rerouted to the german version of ni.com, because i am in Austria). I tried to search with the exact title of this article, and the error message string, but no results...
    I have also installed Labview 8.5 and the "old" Toolkits on my new computer in addition to Labview 2009 and the "new" Toolkits and tested my program in 8.5. Here i got an error mentioning the margins and i had to change the margin settings for printing out, then in worked.
    After reading the article, i have applied the same changes for the margins in the 2009-version of my program and it works too!
    Problem solved!
    Thank you very much!
    PS:
    I first wrote, that there´s maybe a bug in the new version of the Print Report.vi, but i´ve compared it with the old version and it seems to be no bug, sorry!
    After all I decided to stay with Labview 8.5 for now, because of another problem:
    it´s not possible to "save for previous version" from LV2009 to LV8.5 directly.
    Laview crashes, when a VI contains an event structure as i found out by searching through the "known issues", and i have a lot of VIs with event structures!
    I have to have the possibility to save my Labview projects for 8.0 and 8.5. The only way is to save for 8.6 and then save from 8.6 to 8.5.
    That´s nasty and time-consuming!
    Maybe a future update will solve this problem (without producing new ones)

  • Report Generation Toolkit missing VI

    LabVIEW version 8.6.1
    Report Generation Toolkit 1.13
    I have just started work on an ongoing project that others have been contributing to for some time.  (Hence the project being in older versions of LabVIEW) 
    On my PC, I am apparently missing the VI "Word Get ActiveX References.vi" 
    I do have the version 1.13 of the toolkit installed, just as every other machine that runs this code does.  But my word.llb does not contain that VI
    I have tried simply copying that VI into the .llb   The VI is then found by the application.  But is not executable due to this error:  This VI is connected with a library that does not include the VI. The VI might have been deleted from the library. Add the VI to the library again or select File»Disconnect from Library.
    I have also tried replacing my entire  C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\addons\_office\  directory with files from a PC that was working.  Again, I get the same error as above. 
    I did attempt to do a repair on my installation of the toolkit.  But as far as I can tell, this didn't do anything.
    I also tried simply reinstalling the toolkit.  But since it was already installed, it did nothing.  I am hesitant to uninstall and reinstall the toolkit for fear of breaking all of my 8.6 projects, as well as possibly my 2009 projects.  I wouldn't think it mess with my 2009 installation.  But I do know that the order in which things are installed can be critical in system with multiple versions.  I'm not sure if this applies to toolkits or not. 
    This PC also has an installation of LV 2009 SP1, and that version also has the Report Generation Toolkit installed. (although it is a different revision of the toolkit than 1.13) 
    I know that in the past, multiple versions of this toolkit were not compatible, meaning only one installed version of LabVIEW could have a working Report Generation Toolkit installed.  But I was of the understanding that this was no longer a problem.  Although it may not be a coincidence that neither of the other development boxes running this code do not have LV 2009 installed.  
    Has anyone else ever run into a similar problem and found a solution? 
    Thanks. 
    Patrick Allen
    Solved!
    Go to Solution.

    Darren wrote:
    Back before we unified the LabVIEW and toolkit version numbers (in 2009), there were cases where we didn't change the version number in the registry for one reason or another on a minor upgrade.
    Ah.  This makes sense then.  
    I just reinstalled said toolkit from said SSP DVD and although it did tell me that I was about to install 1.1.4, MAX still thinks it's 1.1.3
    ...except that now I do have the missing VI.  This is a good thingTM
    I still wonder how it ended up missing, because I'm really sure this is where I installed the toolkit from in the first place.   I'll probably never know for sure.  But that's a lot easier to take when the code is working.  
    Thanks! 
    Message Edited by pallen on 04-15-2010 04:52 PM
    Patrick Allen

  • Using Java XML 1.5 toolkit instead of sapxmltoolkit for xslt mappings

    Hi All
       We have a case whereby our xlst requires a number of customised java class functions as we are porting webmethods systems across to PI.
    eg in the xslt adding
    <xsl:when test="function-available('java:concat">
        <xsl:value-of select="java:concat($first, $last, $inputparam)"/>
    We are running sap PI 7.1 ehp1. I have been referring to a number of posts on how to complete these tasks.
    namely we have implemented the example as provided in:
        http://help.sap.com/saphelp_nwpi71/helpdata/EN/73/f61eea1741453eb8f794e150067930/frameset.htm
    This only works if "Sap XML Toolkit" is enabled in the operational mapping.
    Left unticked (default setting in the mapping) whenever a testcase is run I end up with the error "could not compile sytle sheet".
    I would like to use the Java 1.5 xml processing capability as it is supposed to perform better than the sapxmltoolkit option and support for the latter will be discontinued in future.
    Has anyone been able run the case with sapxmltoolkit enabled?
    If so did you add any other libraries for java xml 1.5?
    thanks

    Thanks, I would have thought as much, but theres no guide on the deployment.
    For now i assume this will fit into the java/ext area and Pi would need a reboot after the libraries are copied.
    Has anyone deployed the additional libraries to PI.

  • Calling stored procedures with parameters with the Database Connectivi​ty Toolkit

    Hi all,
    I am new to the forum and am having difficulty finding a solution to a particular problem I am having regarding using the LabVIEW Database Connectivity Toolkit on a project I am currently working on at my job.  I have a database in which I have tables and stored procedures with parameters.  Some of these stored procedures have input, output, and return parameters.
    I have been trying to follow this example but to no avail:  http://digital.ni.com/public.nsf/allkb/07FD1307460​83E0686257300006326C4?OpenDocument
    One such stored procedure I am working on implementing is named "dbo.getAllowablePNs", which executes "SELECT * from DeviceType" (DeviceType is the table).  In this case, it does not require an input parameter, it has an output parameter that generates the table [cluster], and has a return parameter which returns an integer value (execution status code) to show if an error occurred.  The DeviceType table has 3 columns; ID (PK, int, not null), PN (nvarchar(15), null), and NumMACAddresses (int, null).  I have gone over many examples and have talking to NI support to try to implement this and similar stored procedures in LabVIEW but have not been successful.  I am able to connect to the database with the Open Connection VI without error, but am running into some confusion following this step.  I am then trying to use the Create Parameterized Query VI to call the stored procedure and set the parameters.  I assume I would then use the Set Parameter Value VI for each parameter that is wired into the parameters input on the previous Parameterized Query VI?  I am also having some confusion during and following these steps as well.  I would greatly appreciate any advice or suggestions anyone might have in regards to this situation as I am not a SQL expert.  Also, I would be happy to provide any more information that would be helpful.
    Regards,
    Jon
    Solved!
    Go to Solution.

    Also, I don't know if this would be helpful but here is the actual stored procedure in SQL:
    CREATEPROCEDURE [dbo].[getLastSequenceNumber]
    @p1 nvarchar(10)='WO-00000'
    AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SETNOCOUNTON;
    -- Insert statements for procedure here
    selectmax(SequenceNumber)from Devices where WorkOrderNumber= @p1
    END
    GO

  • Use case export to text document

    In Jdeveloper you can export generated UML use case with scenarios, to HTML format, however is it possible to generate to say .txt or .doc type files?
    I am looking at a very good commercial product called Visual Use Case and wondered if JDeveloper's generated documentation has/can have similar features.
    Thank you

    Hi,
    there is SDE plugin for JDeveloper ( http://www.visual-paradigm.com/product/sde/jd/ ) but it only works with older - 10.1.2 version of JDev.
    Kuba

  • Report Generation Toolkit and Labview 8 ?

    I currently have Labview 7.1 on my computer, and Labview 8.  I have installed the Report generation Toolkit 1.1.1, but when I try to open several of the excel and word vi's in labview 8, I get the error that "constants wired to case structures were changed to a hidden control to maintain compatibility with labview 7.1 and earlier".  And therefore the subvi's don't run.  Labview 7.1 doesn't have the toolkit installed, and I've even tried uninstalling 7.1 but nothing works.  How do I fix this?  Relinking to subvi hasn't work because it is not offered on any of the errored vi's or subvi's.  The broken wires are going into invoke node vi's, but I don't know how to fix them.  It doesn't allow me to rewire them.

    If you dont want to use it in LabView 7.1, Just make a mass compile with LabView8.0 on the directory of you package.
    It could solve a lots of that kind of problem.
    Be sure that you do net need it with your previous version.
    Benoit
    Benoit Séguin
    Software Designer

Maybe you are looking for

  • File not found error after log on to ADF application

    Hi I just took over an ADF application, after clicking on log in button, in the application_log, there is always a login.jspx -- file not found error message, the directory is not even exist. somehow the application had 'registered ' an directory for

  • Strange behaviour - any ideas?

    Strange behaviour began when i was unable to open a new page in photoshop. The next day i was unable to print from word or photoshop or emails. However i could print from freehand and excel! I used disk 1 to verify and repair disk. this did not solve

  • Connecting to a database- next field button problem

    Hi, I really need help. I'm creating a template where the "First Name" and "Last Name" fields automatically populates when the user clicks a "connect" button. This button will then connect to their local database. I haven't been able to find a soluti

  • IE 6/7/8 Browsers Problems

    Hello all,, i have been tryin to fix this browser issue i have,, the website wont open correctly in IE but works fine on FF, Chrome and IE 9, its only the nav bar that is messed up, is there a small section of code that will fix this thanks Mr-Cheese

  • How to create 2 server instances in one directory

    Hi, I want to create 2 server instances in one directory . Is it possible ?? If yes how to do it ?? I know that using diff machines is it possible , but I want to create in single system itself. Thanks in advance, Rajendra.