Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
フレームに凡例を追加して、さまざまな色のリンクとノードの意味を示す必要があります。Jung には組み込みの凡例機能がありますか? または、右側にパネルを追加して独自に作成する必要がありますか。
簡単な方法で凡例を追加しました。最初に凡例の画像を作成し、JLabel を介してパネルに貼り付けます。
JLabel label = new JLabel(); label.setOpaque(true); label.setBackground(Color.WHITE); ImageIcon icon = new ImageIcon("Legend/SyncLegend.png"); label.setIcon(icon); vv.add(label);