java Programming Glossary: r.width
paintComponent draws other components on top of my drawing http://stackoverflow.com/questions/13358658/paintcomponent-draws-other-components-on-top-of-my-drawing g2d.setStroke new BasicStroke 1 g2d.fillRect r.x r.y r.width r.height public void addRect int x int y rects.add new Rectangle..
Strange JFrame Behavior http://stackoverflow.com/questions/13822019/strange-jframe-behavior r rects g.setColor r.getColor g.fillRect r.x r.y r.width r.height @Override public Dimension getPreferredSize return..
Custom button not working on mac (ButtonUI) http://stackoverflow.com/questions/14589119/custom-button-not-working-on-mac-buttonui g b r t g.setColor SELECT_COLOR g.drawRect r.x r.y r.width r.height @Override protected void paintFocus Graphics g AbstractButton..
'Fill' Unicode characters in labels http://stackoverflow.com/questions/18686199/fill-unicode-characters-in-labels System.out.println shape rect r int spaceX sz r.width int spaceY sz r.height AffineTransform trans AffineTransform.getTranslateInstance.. gv.getOutline Rectangle r shape1.getBounds int spaceX sz r.width int spaceY sz r.height AffineTransform trans AffineTransform.getTranslateInstance.. c2 baseColor GradientPaint gp new GradientPaint sz 2 r.width 4 sz 2 r.height 4 c1 sz 2 r.width 4 sz 2 r.height 4 c2 false..
Aligning messageformat on printing a JTable http://stackoverflow.com/questions/2311508/aligning-messageformat-on-printing-a-jtable index r g2d.setPaint Color.gray g2d.drawString s r.x r.width dw r.y r.height dh return Printable.PAGE_EXISTS Addendum While..
Java2D Graphics anti-aliased http://stackoverflow.com/questions/4285464/java2d-graphics-anti-aliased 0 System.out.println r BufferedImage bi new BufferedImage r.width 1 r.height 1 BufferedImage.TYPE_INT_ARGB Graphics2D g2d Graphics2D..
Changing JPanel Graphics g color drawing line http://stackoverflow.com/questions/6105393/changing-jpanel-graphics-g-color-drawing-line for int i 0 i dPoint.size i Rectangle r dPoint.get i if r.width 1 g.drawLine r.x r.y r.width r.height Draw current point... Rectangle r dPoint.get i if r.width 1 g.drawLine r.x r.y r.width r.height Draw current point. g.drawLine point.x point.y..
Stretch a JLabel text http://stackoverflow.com/questions/8281886/stretch-a-jlabel-text 0 System.out.println r BufferedImage bi new BufferedImage r.width 1 r.height 1 BufferedImage.TYPE_INT_RGB Graphics2D g2d Graphics2D..
Nice looking progress bar in java http://stackoverflow.com/questions/8884297/nice-looking-progress-bar-in-java r g.setColor progressBar.getForeground g.fillOval r.x r.y r.width r.height private void display JFrame f new JFrame ProgressBarUITest..
|