.. | .. |
---|
66 | 66 | { |
---|
67 | 67 | BufferedImage image = javax.imageio.ImageIO.read(getClass().getClassLoader().getResourceAsStream(name)); |
---|
68 | 68 | |
---|
69 | | - if (image.getWidth() != 24 && image.getHeight() != 24) |
---|
70 | | - { |
---|
71 | | - BufferedImage resized = new BufferedImage(24, 24, image.getType()); |
---|
72 | | - Graphics2D g = resized.createGraphics(); |
---|
73 | | - g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); |
---|
74 | | - //g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); |
---|
75 | | - g.drawImage(image, 0, 0, 24, 24, 0, 0, image.getWidth(), image.getHeight(), null); |
---|
76 | | - g.dispose(); |
---|
77 | | - |
---|
78 | | - image = resized; |
---|
79 | | - } |
---|
| 69 | +// if (image.getWidth() != 24 && image.getHeight() != 24) |
---|
| 70 | +// { |
---|
| 71 | +// BufferedImage resized = new BufferedImage(24, 24, image.getType()); |
---|
| 72 | +// Graphics2D g = resized.createGraphics(); |
---|
| 73 | +// g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); |
---|
| 74 | +// //g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); |
---|
| 75 | +// g.drawImage(image, 0, 0, 24, 24, 0, 0, image.getWidth(), image.getHeight(), null); |
---|
| 76 | +// g.dispose(); |
---|
| 77 | +// |
---|
| 78 | +// image = resized; |
---|
| 79 | +// } |
---|
80 | 80 | |
---|
81 | 81 | javax.swing.ImageIcon icon = new javax.swing.ImageIcon(image); |
---|
82 | 82 | return icon; |
---|
.. | .. |
---|
436 | 436 | editPanel.add(editCommandsPanel); |
---|
437 | 437 | editPanel.add(ctrlPanel); |
---|
438 | 438 | |
---|
439 | | - toolboxPanel = new cGridBag().setVertical(false); |
---|
| 439 | + toolboxPanel = new cGridBag().setVertical(true); |
---|
440 | 440 | //toolboxPanel.setName("Toolbox"); |
---|
441 | 441 | |
---|
442 | 442 | materialPanel = new cGridBag().setVertical(true); |
---|
.. | .. |
---|
1195 | 1195 | markCB = AddCheckBox(setupPanel, "Mark", copy.marked); |
---|
1196 | 1196 | markCB.setToolTipText("As animation target transform"); |
---|
1197 | 1197 | |
---|
| 1198 | + ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false); |
---|
| 1199 | + |
---|
1198 | 1200 | setupPanel2 = new cGridBag().setVertical(false); |
---|
1199 | 1201 | |
---|
1200 | 1202 | rewindCB = AddCheckBox(setupPanel2, "Rewind", copy.rewind); |
---|