• Post Reply Bookmark Topic Watch Topic
  • New Topic

Re: How to create a arrows with different angle in java applet

 
kalai arasan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai every one,

gc.fillRect(10, 30, 860,420);
gc.setColor(Color.white);

//left position,down,size
gc.drawRect(430, 320, 175, 100); // DAU
gc.drawString("DAU", 505, 370);
gc.drawRect(300, 60, 150, 150); // 4ESS
gc.drawString("4ESS Switch", 310, 50);

gc.drawLine(225, 150, 340, 150);
gc.drawLine(225, 175, 330, 175);
gc.drawString(">", 280, 156);
gc.drawString("<", 250, 181);

gc.drawLine(340, 150, 510, 320); // range cross line
gc.drawLine(330, 175, 475, 320); // range cross line

gc.drawLine(430, 80, 520, 80); // range straight line
gc.drawLine(430, 105, 520, 105); // range straight line
gc.drawLine(430, 135, 520, 135); // range straight line
gc.drawLine(430, 160, 520, 160); // range straight line

gc.drawLine(430,80, 430, 105); // range straight line
gc.drawLine(430, 135, 430, 160); // range straight line

gc.drawString("To Customer",90,240);

gc.drawString("QTAN Parameters",90,260);
gc.drawString("CIN = 8001 JCVLFLCL0CT0 03T",90,280);
gc.drawString("DIF = 6",90,300);
gc.drawString("DIU = 10",90,320);
gc.drawString("DIU = 3",90,340);

gc.drawString("CIN = 1549 FRHDNJ0O202T",485,60);
gc.drawString("DNBR = 3699310001",485,100);
gc.drawString("DNBR = 3699310002",485,152);
gc.drawString("CIN = 1551 FRHDNJ0O202T",500,185);

gc.drawString("To DAU",520,205);
gc.drawString("CAU TAN PARAMETERS",520,225);
gc.drawString("CIN = 6001 JCVLFLCLCTO 03T",520,245);
gc.drawString("DIF = 5",520,265);
gc.drawString("DIU = 9",520,285);
gc.drawString("DIU = 1",520,305);

I am not aware of how to add the cross arrows in this code, please can anyone help me on this i am pasting the screen shot of above code.
Thanks in advance.



With Regards,
Kalai.


addArrows.JPG
[Thumbnail for addArrows.JPG]
Java Applet GUI
ArrowModification.JPG
[Thumbnail for ArrowModification.JPG]
Above code's designer need to add two cross arrows
 
Darryl Burke
Bartender
Posts: 5154
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kalai arasan wrote:I am not aware of how to add the cross arrows in this code,

What's a cross arrow?
 
kalai arasan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your valuable answer,

Its not related to db, now i am able to create that arrows with drawLine method.

GUI_with Arrows.JPG
[Thumbnail for GUI_with Arrows.JPG]
 
kalai arasan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Darryl,

Do you have any idea to add hyper link on click of DAU string which is shown in that screen.i do not want to use button on that code.

any other way?



With regards,
Kalai.


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!