|
|
|
@ -39,7 +39,9 @@ public class QuestionPane extends JPanel {
|
|
|
|
|
} else { |
|
|
|
|
g2.drawImage(QUESTION_BACKGROUND_IMAGE, 0, 0, getWidth(), getHeight(), this); |
|
|
|
|
} |
|
|
|
|
g2.drawImage(QUESTION_IMAGE, (getWidth() - QUESTION_IMAGE.getWidth(this)) / 2, (getHeight() - QUESTION_IMAGE.getHeight(this)) / 2, this); |
|
|
|
|
int imageWidth = (int) (QUESTION_IMAGE.getWidth(this) / SVGLoader.SYSTEM_SCALE); |
|
|
|
|
int imageHeight = (int) (QUESTION_IMAGE.getHeight(this) / SVGLoader.SYSTEM_SCALE); |
|
|
|
|
g2.drawImage(QUESTION_IMAGE, (getWidth() - imageWidth) / 2, (getHeight() - imageHeight) / 2, imageWidth, imageHeight, this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|