Results 1 to 6 of 6
Thread: BlueJ - UML
- 11-27-2011, 08:14 PM #1
From Germany
- Join Date
- Nov 2011
- Location
- Germany, Hamburg
- Posts
- 3
- Rep Power
- 0
BlueJ - UML
Hey,
I am a newbie in Java programming and started with Java in BlueJ.
There is a UML diagram with arrows.
What is the meaning of these arrows? I removed them, and the program is still working.
How is it when I do not use BlueJ and have 2 different classes.
How do I combine the 2 classes?
- 11-28-2011, 10:26 AM #2
Member
- Join Date
- Nov 2011
- Location
- Schijndel, Netherlands
- Posts
- 12
- Rep Power
- 0
Re: BlueJ - UML
Those arrows can mean several things, but in your case i guess it's the following:
When there is a line pointed from class A to class B.

It means class A has a relationship with class B, what relationship this is, depends on what you've set.
In this example the dotted line means: (someone correct me if I'm wrong):
class A makes use of class B, or something what's inside class B
- 11-28-2011, 10:37 AM #3
From Germany
- Join Date
- Nov 2011
- Location
- Germany, Hamburg
- Posts
- 3
- Rep Power
- 0
Re: BlueJ - UML
Hey,
thank you for your answer.
Is it only for overview purposes? Because it works without the arrows.
If not, how do I let class A makes use of class B in another simple text-editor?
- 11-28-2011, 10:51 AM #4
Member
- Join Date
- Nov 2011
- Location
- Schijndel, Netherlands
- Posts
- 12
- Rep Power
- 0
Re: BlueJ - UML
It's been quite a long time since I used BlueJ, though what I recall is that you can safely delete these arrows and that it's only used for overview purposes indeed.
You make classes use eachother inside your code.
for example you have a class named Address.
Inside this class you have some variables:
public String streetName;
public int houseNumber;
public String postalCode;
Now you have another class named Person.
And you want to have some information about that person, for example you want to have it an Address.
You can now do the following inside your Person class, you can declare a variable of the class Address:
private Address personsAddress;
You now make use of the class Address inside your class Person.
My guess is also that BlueJ will now automatically create an arrow in your class diagram.
This will also work in any other IDE for java.
(sorry for the unillustrated/little example, I just hope this is clear enough for you)
- 11-28-2011, 10:57 AM #5
From Germany
- Join Date
- Nov 2011
- Location
- Germany, Hamburg
- Posts
- 3
- Rep Power
- 0
Re: BlueJ - UML
Yes, I think it was very helpful, thank you :)
So I do not have to import or declare somewhere else, that I want to use the class address?
That fact is new, because I have programmed always in PHP.
- 11-28-2011, 11:03 AM #6
Member
- Join Date
- Nov 2011
- Location
- Schijndel, Netherlands
- Posts
- 12
- Rep Power
- 0
Similar Threads
-
Need help with blueJ
By samd89 in forum Other IDEsReplies: 6Last Post: 12-06-2010, 04:59 PM -
Java BlueJ
By miney in forum New To JavaReplies: 4Last Post: 10-25-2010, 12:13 PM -
BlueJ help
By Cid17 in forum New To JavaReplies: 2Last Post: 06-29-2009, 07:38 PM -
help using BlueJ
By zoe in forum New To JavaReplies: 1Last Post: 08-07-2007, 06:07 AM -
BlueJ 2.2.0
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-07-2007, 02:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks