jlayeredpane Questions

2

Solved

Inspired by this question JLayeredPane with a LayoutManager I'm trying to get the JLayeredPane to work with the GridBagLayout. Here's the custom LayeredPane-class: class StackConstraints { public ...
Seasonseasonable asked 23/2, 2017 at 10:49

2

Solved

I seem to be having some major issues with JLayeredPane. I have a BorderLayout() pane, and I'd like for the West-side element to contain a few JLayeredPane's on top of each other, so I can switch b...
Saros asked 23/11, 2013 at 12:13

2

Solved

The situation: drawing a stack of playing cards, like in the Solitaire game. Nicely stacked. To achieve this, I'm using a JLayeredPane in combination with a custom implementation of the LayoutMana...
Noleta asked 20/8, 2013 at 12:19

2

Solved

I'm trying to gradually build up an image based on user inputs. What I'm trying to do is create a bunch of graphics and add them as layers however I'm having some issues as they won't show up. Here...
Routh asked 29/10, 2011 at 12:13

2

Solved

I need to have a JToggleButton (that has custom background) that contains a JPanel with several JLabels within itself. That part works. This button is placed afterwards in a JTable cell and is me...
Microphyte asked 6/3, 2012 at 17:5

1

Solved

I am writing an application which has a JLayeredPane (call it layers) containing two JPanels in different layers. I override the paintComponent method of the JPanel at the bottom (call it grid_pane...
Valenti asked 8/3, 2012 at 21:47

1

Solved

I am working on developing a Chess game. I want to have the board Container utilize a GridLayout to display an 8x8 grid of JPanels. (This will make functions such as highlighting selected squares a...
Abilene asked 25/7, 2011 at 2:19

1

Solved

I have a set of JMenuItems in a JPanel on one layer of a JLayeredPane, and an emulated cursor painted in a JPanel on a higher layer. When the menu items repaint, they paint over the emulated cursor...
Turtledove asked 14/4, 2011 at 19:39

6

Solved

I'm creating a virtual piano type program in Java Swing. My area for the piano keys right now is a JPanel with a horizontal BoxLayout containing white JButtons as white keys. I want to add black ke...
Caves asked 25/11, 2010 at 19:23

2

Solved

I am trying to add a JLayeredPane to a JPanel and then add an image (JLabel icon) and a button to the JLayeredPane, but neither show up. I've tested the image without the button and the layeredpane...
Fungosity asked 19/11, 2009 at 15:31
1

© 2022 - 2024 — McMap. All rights reserved.