サクサク読めて、アプリ限定の機能も多数!
JComponentを線で繋ぐものを描いてるが、うまく行ってない。ちなみに先の太さを変えるにはGraphicsではだめで、Graphics2DにキャストしてsetStroke(new BasicStoke()) ←だっけ、するといける。
kiyo_hiko のブックマーク 2013/10/07 09:00
How to get screen position of a Swing element?[swing][java][tips]JComponentを線で繋ぐものを描いてるが、うまく行ってない。ちなみに先の太さを変えるにはGraphicsではだめで、Graphics2DにキャストしてsetStroke(new BasicStoke()) ←だっけ、するといける。2013/10/07 09:00
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2013/10/07
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...
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
JComponentを線で繋ぐものを描いてるが、うまく行ってない。ちなみに先の太さを変えるにはGraphicsではだめで、Graphics2DにキャストしてsetStroke(new BasicStoke()) ←だっけ、するといける。
このブックマークにはスターがありません。
最初のスターをつけてみよう!
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...
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /