I would like to change the color of my edges using Jgrapht so that I can show the correspondence in my whole graph. Let us assume there is an edge between nodes 1 and 2. I will highlight these nodes in (say) red color. I will find nodes 1 and 2 in the whole graph and show them in the red color and the remaining nodes in some other color. I see the file that creates the visualization is SimpleTouchgraphApplet.java In this file, I am adding statements like,
setBackground(Color.green);
setForeground(Color.cyan);
I added the above two statements in the init section. I also added the below statements in my main function.
Color defaultBackColor = new Color(0x01, 0x11, 0x44);
JFrame frame = new JFrame();
frame.setBackground(defaultBackColor);
frame.setForeground(Color.CYAN);
However, I do not see any change in the foreground or background color. Please let me know where am going wrong.