~ubuntu-branches/ubuntu/precise/classpath/precise

« back to all changes in this revision

Viewing changes to javax/swing/plaf/basic/BasicArrowButton.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2006-05-27 16:11:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060527161115-h6e39eposdt5snb6
Tags: 2:0.91-3
* Install header files to /usr/include/classpath.
* debian/control: classpath: Conflict with jamvm < 1.4.3 and
  cacao < 0.96 (Closes: #368172).

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
    super.paint(g);
163
163
    Rectangle bounds = getBounds();
164
164
    int size = bounds.height / 4;
165
 
    int x = (bounds.width - size) / 2;
166
 
    int y = (bounds.height - size) / 2;
 
165
    int x = bounds.x + (bounds.width - size) / 2;
 
166
    int y = (bounds.height - size) / 4;
167
167
    ButtonModel m = getModel();
168
168
    if (m.isArmed())
169
169
      {