mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
cleanup warnings
This commit is contained in:
@@ -193,7 +193,7 @@ public class WrapLabel extends AbstractComponent<String> {
|
||||
FontMetrics fontMetrics = g2d.getFontMetrics();
|
||||
Rectangle2D rect = fontMetrics.getStringBounds("Wrap", g2d);
|
||||
|
||||
int textHeight = (int) (rect.getHeight());
|
||||
// int textHeight = (int) (rect.getHeight());
|
||||
int textWidth = (int) (rect.getWidth());
|
||||
|
||||
int x = (width - textWidth) / 2 + 1;
|
||||
|
||||
Reference in New Issue
Block a user