mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 22:30:45 +00:00
Button mouse move and click handling.
Using ImagePanel instead of SWFPreviewPanel
This commit is contained in:
@@ -80,24 +80,23 @@ public class View {
|
||||
public static final Color DEFAULT_BACKGROUND_COLOR = new Color(217, 231, 250);
|
||||
public static Color swfBackgroundColor = DEFAULT_BACKGROUND_COLOR;
|
||||
|
||||
|
||||
private static final BufferedImage transparentTexture;
|
||||
public static final TexturePaint transparentPaint;
|
||||
|
||||
private static final Color transparentColor1 = new Color(0x99,0x99,0x99);
|
||||
private static final Color transparentColor2 = new Color(0x66,0x66,0x66);
|
||||
|
||||
static{
|
||||
|
||||
private static final Color transparentColor1 = new Color(0x99, 0x99, 0x99);
|
||||
private static final Color transparentColor2 = new Color(0x66, 0x66, 0x66);
|
||||
|
||||
static {
|
||||
transparentTexture = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
|
||||
Graphics g=transparentTexture.getGraphics();
|
||||
Graphics g = transparentTexture.getGraphics();
|
||||
g.setColor(transparentColor1);
|
||||
g.fillRect(0, 0, 16, 16);
|
||||
g.setColor(transparentColor2);
|
||||
g.fillRect(0, 0, 8, 8);
|
||||
g.fillRect(8, 8, 8, 8);
|
||||
transparentPaint = new TexturePaint(View.transparentTexture, new Rectangle(0,0,transparentTexture.getWidth(),transparentTexture.getHeight()));
|
||||
transparentPaint = new TexturePaint(View.transparentTexture, new Rectangle(0, 0, transparentTexture.getWidth(), transparentTexture.getHeight()));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets windows Look and Feel
|
||||
*/
|
||||
@@ -448,7 +447,7 @@ public class View {
|
||||
TreePath tp = new TreePath(path.toArray(new Object[path.size()]));
|
||||
tree.expandPath(tp);
|
||||
}
|
||||
|
||||
|
||||
public static void expandTreeNodesRecursive(JTree tree, TreePath parent, boolean expand) {
|
||||
TreeModel model = tree.getModel();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user