Results 1 to 7 of 7

# Thread: Please Help, Really need help :(

- 05-17-2011, 07:39 PM #1Member
- Join Date
- May 2011
- Posts
- 4

- Rep Power
- 0

## Please Help, Really need help :(

I must develop an application that read a txt file in order to draw the graph and color it, i just made the Adjascence Matrix and the table of color for each node, i'm stuck in the graphic part, i can't draw the graphic (color it neither) so :

if it's possible to help me draw the graph and color it, i'm new with graphic interface so please help :)

PS : i can insert with the txt file of the graph, another txt file with the position of the nodes, but its an alternative solution

Here an exemple for my txt file :

// (p beginnig, 7 node and 22 edges)

p edge 7 22

e 1 2

e 1 3

e 1 4

e 1 5

e 2 1

e 2 5

e 2 6

e 3 1

e 3 4

e 3 7

e 4 1

e 4 3

e 4 5

e 5 1

e 5 2

e 5 4

e 5 6

e 6 2

e 6 5

e 6 7

e 7 3

e 7 6

//

Screenshots :

The left part is for the graph drawing and coloring =)

the last table is the color table, its a coloring with only for color in fact

If u need my project folder i can send it to anyone how can help me, i need it within 7 days, it needs only the graph drawing

i hope you can help me =)

Thx in advance and sorry for my english :)

- 05-17-2011, 07:44 PM #2Member
- Join Date
- May 2011
- Posts
- 4

- Rep Power
- 0

Exemple of a result :D

- 05-17-2011, 07:56 PM #3Member
- Join Date
- May 2011
- Posts
- 4

- Rep Power
- 0

Another one, simplier, with a txt file of node's position

- 05-17-2011, 08:08 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 13,821
- Blog Entries
- 7

- Rep Power
- 21

**cenosillicaphobia**:*the fear for an empty beer glass*

- 05-17-2011, 08:22 PM #5Member
- Join Date
- May 2011
- Posts
- 4

- Rep Power
- 0

- 05-17-2011, 08:29 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 13,821
- Blog Entries
- 7

- Rep Power
- 21

- 05-17-2011, 09:18 PM #7
Also go through this: Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)

db

## Bookmarks