Swing JPanel zu (z.B.) 40% sichtbar (teiltransparent)

Status
Nicht offen für weitere Antworten.

MQue

Top Contributor
Hallo,

lässt es sich realisieren, ein JPanel nur zu zum Beispiel 40% sichtbar zu machen. Hab bis jetzt nur ganz oder garnicht sichtbar gefunden (setOpaque(true,false)).
Vielen Dank,
 

Ebenius

Top Contributor
Ein JPanel... Du meinst nur den Hintergrund, ohne Kinder und ohne Rahmen (Sonst wird's schwierig)? Sofern alle Komponenten bis zum Top-Level-Container lightweight sind geht's.
Java:
semiTransPanel.setBackground(new Color(255, 0, 0, 128));
Ebenius
 

Wolfgang Lenhard

Bekanntes Mitglied
Standardmäßig geht das meines Wissens nicht. Bei SwingX ist es möglich, graduelle Angaben zu machen. In diesem Fall werden aber auch alle Inhalte (teil-)transparent. Ich hatte vor Jahren mal ein paar Klassen herausgelöst, um nicht die gesamte dicke jar mitschleppen zu müssen. Die Transparenz setzt man per setAlpha(float):


Code:
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Component;
import java.awt.Composite;
import java.awt.Dimension;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.LayoutManager;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;

import javax.swing.JPanel;
import javax.swing.RepaintManager;
import javax.swing.Scrollable;


/**
 * A simple JPanel extension that adds translucency support. This component and
 * all of its content will be displayed with the specified "alpha"
 * transluscency property value.
 * 
 * @author rbair
 */
public class XPanel extends JPanel implements Scrollable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private boolean scrollableTracksViewportHeight;

	private boolean scrollableTracksViewportWidth;

	/**
	 * The alpha level for this component.
	 */
	private float alpha = 1.0f;

	/**
	 * If the old alpha value was 1.0, I keep track of the opaque setting
	 * because a translucent component is not opaque, but I want to be able to
	 * restore opacity to its default setting if the alpha is 1.0. Honestly, I
	 * don't know if this is necessary or not, but it sounded good on paper :)
	 */
	private boolean oldOpaque;

	/**
	 * Indicates whether this component should inherit its parent alpha value
	 */
	private boolean inheritAlpha = true;

	/**
	 * Indicates whether the XPanel should draw a gradient or not
	 */
	private boolean drawGradient = false;

	/**
	 * <p>
	 * If true, then the gradient will track the width of the panel. For
	 * example, if I had the following gradient paint: <code>
	 *  int width = getWidth();
	 *  GradientPaint gp = new GradientPaint(0, 0, Color.BLUE, width, 0, Color.WHITE);
	 * </code>
	 * Then at the left edge of the component BLUE will be painted, and at the
	 * right edge WHITE will be painted with a nice gradient between. However,
	 * when the width of the XPanel changes, the &quot;width&quot; of the
	 * GradientPaint does not since GradientPaint is immutable.
	 * </p>
	 * 
	 * <p>
	 * To solve this problem, the XPanel employs a unique algorithm. Consider
	 * the following gradients on a panel with a width of 5 and a height of 5:
	 * <code>
	 * GradientPaint a = new GradientPaint(0, 0, Color.BLUE, 5, 0, Color.WHITE);
	 * GradientPaint b = new GradientPaint(0, 0, Color.BLUE, 10, 0, Color.WHITE);
	 * </code>
	 * </p>
	 * 
	 * <p>
	 * GradientPaint &quot;a&quot; would paint a BLUE vertical line at x
	 * position 0, and a WHITE vertical line at x position 5, with a gradient of
	 * colors between.
	 * 
	 * <p>
	 * GradientPaint &quot;b&quot; would paint a BLUE vertical line at x
	 * position 0, and a WHITE vertical line at x position 10 which is outside
	 * the clipping bounds, and thus not actually painted! The color at x
	 * position 5 would be halfway between BLUE and WHITE.
	 * </p>
	 * 
	 * <p>
	 * If the XPanel was then resized to be 10 pixels wide and 10 pixels tall,
	 * we would expect to see the gradient paints be updated like to be these:
	 * <code>
	 * GradientPaint a = new GradientPaint(0, 0, Color.BLUE, 10, 0, Color.WHITE);
	 * GradientPaint b = new GradientPaint(0, 0, Color.BLUE, 20, 0, Color.WHITE);
	 * </code>
	 * </p>
	 * 
	 * <p>
	 * This is exactly what happens. Whatever GradientPaint is set by the
	 * <code>setGradientPaint</code> method is assumed to be in terms of the
	 * current width and height of the component. As the component&apos;s size
	 * changes, the GradientPaint is updated proportionately to the change so
	 * that the color drawn at position 0 and at position N where N is the
	 * width/height will be consistent regardless of the changes in dimension of
	 * the component.
	 * </p>
	 */
	private boolean gradientTrackWidth = true;

	/**
	 * same as gradientTrackWidth, but in the vertical direction
	 */
	private boolean gradientTrackHeight = true;

	/**
	 * If the XPanel is to draw a gradient, this paint indicates how it should
	 * be painted
	 */
	private GradientPaint gradientPaint;

	/**
	 * Keeps track of the old dimensions so that if the dimensions change, the
	 * saved gradient image can be thrown out and re-rendered. This size is
	 * AFTER applying the insets!
	 */
	private Dimension oldSize;

	/**
	 * The cached gradient image
	 */
	private BufferedImage cachedGradient;

	/**
	 * Creates a new instance of XPanel
	 */
	public XPanel() {
	}

	/**
	 * @param isDoubleBuffered
	 */
	public XPanel(boolean isDoubleBuffered) {
		super(isDoubleBuffered);
	}

	/**
	 * @param layout
	 */
	public XPanel(LayoutManager layout) {
		super(layout);
	}

	/**
	 * @param layout
	 * @param isDoubleBuffered
	 */
	public XPanel(LayoutManager layout, boolean isDoubleBuffered) {
		super(layout, isDoubleBuffered);
	}

	/**
	 * Set the alpha transparency level for this component. This automatically
	 * causes a repaint of the component.
	 * 
	 * <p>
	 * TODO add support for animated changes in translucency
	 * </p>
	 * 
	 * @param alpha
	 *            must be a value between 0 and 1 inclusive.
	 */
	public void setAlpha(float alpha) {
		if (this.alpha != alpha) {
			// assert alpha >= 0 && alpha <= 1.0;
			float oldAlpha = this.alpha;
			this.alpha = alpha;
			if (alpha > 0f && alpha < 1f) {
				if (oldAlpha == 1) {
					// it used to be 1, but now is not. Save the oldOpaque
					oldOpaque = isOpaque();
					setOpaque(false);
				}
				if (!(RepaintManager.currentManager(this) instanceof TranslucentRepaintManager)) {
					RepaintManager.setCurrentManager(new RepaintManagerX());
				}
			} else if (alpha == 1) {
				// restore the oldOpaque if it was true (since opaque is false
				// now)
				if (oldOpaque) {
					setOpaque(true);
				}
			}
			firePropertyChange("alpha", oldAlpha, alpha);
			repaint();
		}
	}

	/**
	 * @return the alpha translucency level for this component. This will be a
	 *         value between 0 and 1, inclusive.
	 */
	public float getAlpha() {
		return alpha;
	}

	/**
	 * Unlike other properties, alpha can be set on a component, or on one of
	 * its parents. If the alpha of a parent component is .4, and the alpha on
	 * this component is .5, effectively the alpha for this component is .4
	 * because the lowest alpha in the heirarchy &quot;wins&quot;
	 */
	public float getEffectiveAlpha() {
		if (inheritAlpha) {
			float a = alpha;
			Component c = this;
			while ((c = c.getParent()) != null) {
				if (c instanceof XPanel) {
					a = Math.min(((XPanel) c).getAlpha(), a);
				}
			}
			return a;
		} else {
			return alpha;
		}
	}

	public boolean isInheritAlpha() {
		return inheritAlpha;
	}

	public void setInheritAlpha(boolean val) {
		if (inheritAlpha != val) {
			inheritAlpha = val;
			firePropertyChange("inheritAlpha", !inheritAlpha, inheritAlpha);
		}
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.swing.Scrollable#getScrollableTracksViewportHeight()
	 */
	public boolean getScrollableTracksViewportHeight() {
		return scrollableTracksViewportHeight;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.swing.Scrollable#getScrollableTracksViewportWidth()
	 */
	public boolean getScrollableTracksViewportWidth() {
		return scrollableTracksViewportWidth;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.swing.Scrollable#getPreferredScrollableViewportSize()
	 */
	public Dimension getPreferredScrollableViewportSize() {
		return getPreferredSize();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.swing.Scrollable#getScrollableBlockIncrement(java.awt.Rectangle,
	 *      int, int)
	 */
	public int getScrollableBlockIncrement(Rectangle visibleRect,
			int orientation, int direction) {
		return 10;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.swing.Scrollable#getScrollableUnitIncrement(java.awt.Rectangle,
	 *      int, int)
	 */
	public int getScrollableUnitIncrement(Rectangle visibleRect,
			int orientation, int direction) {
		return 10;
	}

	/**
	 * @param scrollableTracksViewportHeight
	 *            The scrollableTracksViewportHeight to set.
	 */
	public void setScrollableTracksViewportHeight(
			boolean scrollableTracksViewportHeight) {
		this.scrollableTracksViewportHeight = scrollableTracksViewportHeight;
	}

	/**
	 * @param scrollableTracksViewportWidth
	 *            The scrollableTracksViewportWidth to set.
	 */
	public void setScrollableTracksViewportWidth(
			boolean scrollableTracksViewportWidth) {
		this.scrollableTracksViewportWidth = scrollableTracksViewportWidth;
	}

	public void setGradientPaint(GradientPaint paint) {
		GradientPaint oldPaint = this.gradientPaint;
		this.gradientPaint = paint;
		firePropertyChange("gradientPaint", oldPaint, paint);
		repaint();
	}

	public GradientPaint getGradientPaint() {
		return gradientPaint;
	}

	public void setDrawGradient(boolean b) {
		if (drawGradient != b) {
			boolean old = drawGradient;
			drawGradient = b;
			oldSize = getSize();
			firePropertyChange("drawGradient", old, b);
			repaint();
		}
	}

	public boolean isDrawGradient() {
		return drawGradient;
	}

	public void setGradientTrackWidth(boolean b) {
		if (gradientTrackWidth != b) {
			boolean old = gradientTrackWidth;
			gradientTrackWidth = b;
			firePropertyChange("gradientTrackWidth", old, b);
			repaint();
		}
	}

	public boolean isGradientTrackWidth() {
		return gradientTrackWidth;
	}

	public void setGradientTrackHeight(boolean b) {
		if (gradientTrackHeight != b) {
			boolean old = gradientTrackHeight;
			gradientTrackHeight = b;
			firePropertyChange("gradientTrackHeight", old, b);
			repaint();
		}
	}

	public boolean isGradientTrackHeight() {
		return gradientTrackHeight;
	}

	/**
	 * Overriden paint method to take into account the alpha setting
	 */
	public void paint(Graphics g) {
		Graphics2D g2d = (Graphics2D) g;
		Composite oldComp = g2d.getComposite();
		float alpha = getEffectiveAlpha();
		Composite alphaComp = AlphaComposite.getInstance(
				AlphaComposite.SRC_OVER, alpha);
		g2d.setComposite(alphaComp);
		super.paint(g2d);
		g2d.setComposite(oldComp);
	}

	/**
	 * overridden to provide gradient painting
	 * 
	 * Chris says that in OGL we actually suffer here by caching the
	 * gradient paint since the OGL pipeline will render gradients on hardware
	 * for us. The decision to use cacheing is based on my experience with
	 * gradient title borders slowing down repaints -- this could use more
	 * extensive analysis.
	 */
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		if (drawGradient) {
			Insets insets = getInsets();
			int width = getWidth() - insets.right - insets.left;
			int height = getHeight() - insets.top - insets.bottom;

			// TODO need to detect a change in gradient paint as well
			if (gradientPaint == null || oldSize == null
					|| oldSize.width != width || oldSize.height != height) {
				Color c1 = null;// UIManager.getColor("control");
				Color c2 = null;// c.darker();
				if (gradientPaint == null) {
					c1 = getBackground();
					c2 = new Color(c1.getRed() - 40, c1.getGreen() - 40, c1
							.getBlue() - 40);
					float x1 = 0f;
					float y1 = 0f;
					float x2 = width;
					float y2 = 0;
					boolean cyclic = false;
					gradientPaint = new GradientPaint(x1, y1, c1, x2, y2, c2,
							cyclic);
				} else {
					// same GP as before, but where the values differed for x1,
					// x2, replace
					// x2 with the current width, and where values differed for
					// y1, y2
					// replace with current height
					GradientPaint gp = gradientPaint;
					float x2 = (float) gp.getPoint2().getX();
					if (gradientTrackWidth) {
						float ratio = (float) width / (float) oldSize.width;
						x2 = ((float) gp.getPoint2().getX()) * ratio;
					}
					float y2 = (float) gp.getPoint2().getY();
					if (gradientTrackHeight) {
						float ratio = (float) height / (float) oldSize.height;
						y2 = ((float) gp.getPoint2().getY()) * ratio;
					}
					gradientPaint = new GradientPaint((float) gp.getPoint1()
							.getX(), (float) gp.getPoint1().getY(), gp
							.getColor1(), x2, y2, gp.getColor2(), gp.isCyclic());
				}

				oldSize = new Dimension(width, height);
				cachedGradient = new BufferedImage(width, height,
						BufferedImage.TYPE_INT_ARGB);
				Graphics2D imgg = (Graphics2D) cachedGradient.getGraphics();
				imgg.setPaint(gradientPaint);
				imgg.fillRect(0, 0, width, height);
			}

			// draw the image
			Graphics2D g2 = (Graphics2D) g;
			g2.drawImage(cachedGradient, null, insets.left, insets.top);
		}
	}
}


Code:
public interface TranslucentRepaintManager {

}

Code:
import java.awt.Container;
import java.awt.Rectangle;

import javax.swing.JComponent;
import javax.swing.RepaintManager;


/**
 * This repaint manager is used by Swingx for translucency. The default
 * implementation of JXPanel (which supports translucency) will replace the
 * current RepaintManager with a RepaintManagerX *unless* the current
 * RepaintManager is tagged by the "TranslucentRepaintManager" interface.
 * <p>
 * don't bump into it accidently and spend time debugging
 * </p>
 * 
 * @author zixle
 * @author rbair
 */
public class RepaintManagerX extends RepaintManager implements
		TranslucentRepaintManager {
	public void addDirtyRegion(JComponent c, int x, int y, int w, int h) {
		Rectangle dirtyRegion = getDirtyRegion(c);
		if (dirtyRegion.width == 0 && dirtyRegion.height == 0) {
			int lastDeltaX = c.getX();
			int lastDeltaY = c.getY();
			Container par = c.getParent();
			while (par instanceof JComponent) {
				if (!par.isVisible() || (par.getPeer() == null)) {
					return;
				}
				if (par instanceof XPanel && ((XPanel) par).getAlpha() < 1f) {
					x += lastDeltaX;
					y += lastDeltaY;
					lastDeltaX = lastDeltaY = 0;
					c = (JComponent) par;
				}
				lastDeltaX += par.getX();
				lastDeltaY += par.getY();
				par = par.getParent();
			}
		}
		super.addDirtyRegion(c, x, y, w, h);
	}
}


Ciao,
Wolfgang

Nachtrag: Das mit der Farbe kannte ich noch nicht. Interessante Idee!
 
Zuletzt bearbeitet:
Status
Nicht offen für weitere Antworten.
Ähnliche Java Themen
  Titel Forum Antworten Datum
S Canvas durch transparentes JPanel sichtbar machen AWT, Swing, JavaFX & SWT 2
S Swing JLabel wird in JPanel nicht sichtbar AWT, Swing, JavaFX & SWT 2
Z JPanel wird erst durch aufziehen des Fensters sichtbar AWT, Swing, JavaFX & SWT 3
R JPanel - zeichnen in skalierten Bereich - Linie (X-Achse) nicht sichtbar AWT, Swing, JavaFX & SWT 11
B JPanel erst durch Button-Klick sichtbar machen AWT, Swing, JavaFX & SWT 8
M Änderungen an JPanel nicht sichtbar AWT, Swing, JavaFX & SWT 8
P Zwei JPanel übereianderlegen AWT, Swing, JavaFX & SWT 14
XWing Basic JPanel mit 2 Buttons beutzen. AWT, Swing, JavaFX & SWT 10
G JPanel per Drag and Drop JButtons und Bilder ablegen AWT, Swing, JavaFX & SWT 1
G JPanel mit JButtons und Bilder AWT, Swing, JavaFX & SWT 5
N AWT JPanel zu Jframe hinzufügen AWT, Swing, JavaFX & SWT 2
M clear JPanel before repainting AWT, Swing, JavaFX & SWT 1
B ImageIcon auf JPanel austauschen AWT, Swing, JavaFX & SWT 3
T Swing Reload JPanel + darin liegende ProgressBar AWT, Swing, JavaFX & SWT 9
P Swing Mehrere JLabels mit ImageIcon in JPanel lesen AWT, Swing, JavaFX & SWT 1
E JScrollPane mit JPanel verbinden AWT, Swing, JavaFX & SWT 1
F JPanel Celleditor AWT, Swing, JavaFX & SWT 8
B JPanel-Inhalte inkl. JTextarea zoomen? AWT, Swing, JavaFX & SWT 3
B Mit ContentPane werden Komponenten angezeigt, mit SplitPane, JPanel nicht? AWT, Swing, JavaFX & SWT 6
CptK Funktionsgraphen effizient zeichnen und nur Teile von JPanel erneuern AWT, Swing, JavaFX & SWT 2
P Button simpler random auf einem JPanel verteilen? AWT, Swing, JavaFX & SWT 3
O Swing "Eigenes" JPanel wird dem JScrollPane nicht hinzugefügt AWT, Swing, JavaFX & SWT 5
Ich lerne Java. Swing Von JPanel A auf JPanel B zugreifen. AWT, Swing, JavaFX & SWT 4
A JPanel austauschen und Focus geben AWT, Swing, JavaFX & SWT 3
E Auf JPanel malen und davor JComponenten anzeigen AWT, Swing, JavaFX & SWT 12
L JComponent aus JPanel anhand Mausposition ermitteln AWT, Swing, JavaFX & SWT 10
J JPanel wird nicht angezeigt AWT, Swing, JavaFX & SWT 2
B Verschiebbares JPanel "ruckelt" im Randbereich AWT, Swing, JavaFX & SWT 2
S Swing JPanel nimmt keinen KeyListener an AWT, Swing, JavaFX & SWT 7
K JLabel mit Bilder im nicht initialisierten JPanel hinzufügen AWT, Swing, JavaFX & SWT 5
Hatsi09 Swing JPanel Bild einfügen AWT, Swing, JavaFX & SWT 14
L JPanel zeigt keinen Inhalt AWT, Swing, JavaFX & SWT 1
dereki2000 JPanel mit Rückgbe wie bei JOptionPane AWT, Swing, JavaFX & SWT 3
E Hintergrundfarbe setzen in JPanel funktioneirt nicht AWT, Swing, JavaFX & SWT 4
P JPanel KeyListener hinzufügen AWT, Swing, JavaFX & SWT 8
S Nach scrollen verschwindet das zuvor im JPanel gezeichnete AWT, Swing, JavaFX & SWT 2
P Bewegung eines Balkens in eineum JPanel welches als Spielfeld fungiert AWT, Swing, JavaFX & SWT 2
L Swing JPanel Größe anpassen AWT, Swing, JavaFX & SWT 6
D Platzierung von JTextfield in JPanel AWT, Swing, JavaFX & SWT 3
D Swing Anwendung ohne JPanel erstellen AWT, Swing, JavaFX & SWT 1
M Swing JPanel in JScrollPane AWT, Swing, JavaFX & SWT 3
M Zwei JPanel übereinander nur vorderes "repainten" AWT, Swing, JavaFX & SWT 3
J 2D-Grafik Background einer Jpanel Klasse ändern AWT, Swing, JavaFX & SWT 1
J Ziehen eines Buttons im JPanel AWT, Swing, JavaFX & SWT 2
J Button lässt sich nicht auf dem JPanel verschieben AWT, Swing, JavaFX & SWT 5
D zwei JLabel stapeln in einem JPanel AWT, Swing, JavaFX & SWT 5
DaCrazyJavaExpert Swing JPanel "ContentPane" wird nicht gesetzt/angezeigt AWT, Swing, JavaFX & SWT 16
DaCrazyJavaExpert Swing Größe des JPanel ändern/wird nicht geändert. AWT, Swing, JavaFX & SWT 3
DaCrazyJavaExpert Swing JPanel wird in JScollPane nicht angezeigt AWT, Swing, JavaFX & SWT 2
it_is_all JPanel verschwindet nach Button-Klick AWT, Swing, JavaFX & SWT 2
B Bar Plot in Swing JPanel AWT, Swing, JavaFX & SWT 0
F Screenshot eines JPanel AWT, Swing, JavaFX & SWT 3
S JPanel rotieren, Bild ist abgeschnitten, Clipping? AWT, Swing, JavaFX & SWT 0
M Swing JPanel flüssig verschieben AWT, Swing, JavaFX & SWT 5
G Nur ein JPanel wird angezeigt AWT, Swing, JavaFX & SWT 9
kilopack15 JPanel im laufenden Zustand einfärben AWT, Swing, JavaFX & SWT 2
kilopack15 JPanel Farbverwaltung AWT, Swing, JavaFX & SWT 1
A JScrollPane soll JPanel mit JButtons enthalten und eine Scollbar anzeigen AWT, Swing, JavaFX & SWT 1
A Swing JLabels in einer ForEach Schleife an den JPanel anheften (UNO Netzwerkspiel) AWT, Swing, JavaFX & SWT 1
L JPanel zeichnet im Konstrukter erzeugten Hintergrund nicht AWT, Swing, JavaFX & SWT 10
Java_RY wie kann ich auf JButtons in einem JPanel zugreifen AWT, Swing, JavaFX & SWT 3
F Zeichnung einem JPanel im Layoutmanager zuweisen AWT, Swing, JavaFX & SWT 3
Meeresgott Swing Umgang mit JPanel AWT, Swing, JavaFX & SWT 4
R 2D-Grafik PNG Bild per Graphics auf JPanel AWT, Swing, JavaFX & SWT 9
K JPanel Bilder bei Windows nicht darstellbar AWT, Swing, JavaFX & SWT 6
W Swing JPanel nur einmal nach mehreren Änderungen neu zeichnen AWT, Swing, JavaFX & SWT 1
J Swing Zeichenfläche im JPanel des Haupfenster anzeigen lassen AWT, Swing, JavaFX & SWT 4
A Swing JPanel zeigt Buttons nicht an AWT, Swing, JavaFX & SWT 4
R JPanel überzeichnet alles? AWT, Swing, JavaFX & SWT 1
D Von JPanel auf anderes JPanel zugreifen AWT, Swing, JavaFX & SWT 9
L Swing Teile eines JPanel in eigene Klasse auslagern AWT, Swing, JavaFX & SWT 3
I JPanel - Verwaltung/ Anordnung AWT, Swing, JavaFX & SWT 4
T JComponents zur Laufzeit auf JPanel darstellen AWT, Swing, JavaFX & SWT 10
F Java Swing Rechteck in JPanel zeichnen AWT, Swing, JavaFX & SWT 7
J Linien auf JPanel zeichnen AWT, Swing, JavaFX & SWT 3
L ImageIcon auf JPanel wird nicht angezeigt(keiner Fehlermeldung) AWT, Swing, JavaFX & SWT 11
M Swing JPanel innerhalb eines Frames verschieben AWT, Swing, JavaFX & SWT 3
T JTextField Array im JPanel wird nicht komplett angezeigt AWT, Swing, JavaFX & SWT 7
K Swing JPanel ueber komplette Form legen AWT, Swing, JavaFX & SWT 1
W Swing Größenänderung vom JPanel im JScrollPane und anschließendes positionieren AWT, Swing, JavaFX & SWT 2
R Komponenten von JPanel bleiben unsichtbar AWT, Swing, JavaFX & SWT 2
O JTabeddpane aber jedes JPanel als eigene Klasse anlegen AWT, Swing, JavaFX & SWT 7
llabusch Linien in JPanel zeichnen AWT, Swing, JavaFX & SWT 6
I (JPanel) paintComponent mit Zeitverschiebung (Sleep/Wait) AWT, Swing, JavaFX & SWT 1
H Netbeans Designer: Probleme mit JPanel und JFrame AWT, Swing, JavaFX & SWT 2
S jpanel anchor bottom AWT, Swing, JavaFX & SWT 1
thobren Swing Im JPanel wird nur TextArea gelöscht AWT, Swing, JavaFX & SWT 13
A JPanel größe verändern AWT, Swing, JavaFX & SWT 4
G JPanel komponente Löschen AWT, Swing, JavaFX & SWT 7
F JPanel "verschmelzen" GridLayout AWT, Swing, JavaFX & SWT 10
B Dropdown "Einstellungen" auf JPanel, transparent AWT, Swing, JavaFX & SWT 1
D GlassPane für JPanel AWT, Swing, JavaFX & SWT 2
F JPanel "zeichnet" keinen Text AWT, Swing, JavaFX & SWT 14
T Swing Index für Komponente in JPanel? AWT, Swing, JavaFX & SWT 6
Z Probleme mit JPanel's AWT, Swing, JavaFX & SWT 6
T Probleme mit Anzeige von Elementen im JPanel AWT, Swing, JavaFX & SWT 1
R JScrollPane überdeckt JPanel? AWT, Swing, JavaFX & SWT 7
O 2D-Grafik Zeichenfläche auf JPanel AWT, Swing, JavaFX & SWT 4
H JTree in JScrollPane passt sich nicht an Größe von JPanel an AWT, Swing, JavaFX & SWT 2
H Position eines JLabel in einem JPanel AWT, Swing, JavaFX & SWT 2

Ähnliche Java Themen

Neue Themen


Oben