JComponentを線で繋ぐものを描いてるが、うまく行ってない。ちなみに先の太さを変えるにはGraphicsではだめで、Graphics2DにキャストしてsetStroke(new BasicStoke()) ←だっけ、するといける。

kiyo_hikokiyo_hiko のブックマーク 2013/10/07 09:00

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

How to get screen position of a Swing element?

    how do I get the actual screen position of an element, say a Button? If I use getBounds I get the position relative to the parent container, not the screen...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう