Questions tagged [contentpane]
92 questions
0
votes
1 answer
Content pane in dojo
I have a content pane (B) that is created when I click a button which is inside another content pane( A) in tab container.
In B I have used closeable to true and also on close function .now when I close B it is working fine but my requirement is…

Java_Pro
- 1
- 1
0
votes
1 answer
To which part of a Frame does the Menu Bar belongs to in Swing?
The Java documentation claims that the Menu Bar of a Frame is directly positioned and/or attached to the Content Pane of such frame but when I check the source code of this Java classes -specially the one that belongs to the JFrame, JRootPane and…

WagnerR
- 5
- 2
0
votes
0 answers
Make ContentPane Focusable
Havin issues with a Java Application. I have a lot of textFields that update a string when they lose focus. The problem is, to make them lose focus, I have to click in another component, I'm not managing to make the contentPane itself being…

Luciano Santiago
- 1
- 1
0
votes
1 answer
Dijit tab content rendering error
I use dijit contentpane as tab. The tab content contain my custom widget. In the own widget I use dojo query for process the th elements, by my widget's id. If I set tab content by href: attribute, then works fine. But if I set tab content by…

Sezlony
- 1
0
votes
0 answers
GetContentPane and SetContentPane Eror
package javagraphics;
import java.awt.BasicStroke;
import java.awt.Color;
import javax.swing.JFrame;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import javax.swing.JPanel;
import static java.lang.Math.*;
import…

Ajer
- 13
- 5
0
votes
1 answer
How to render googlemaps in a dojo content pane
I have an spring/dojo application. The requirement is to locate an address in a stackcontainer/content-pane, in map. First thought was to have the redirection to google maps and CORS & ACCESS_ORIGIN issues are being thrown.
Can anyone guide us?

kk nair
- 41
- 2
- 5
0
votes
0 answers
Why Jframe size SOME TIME changes by itself?
I am trying to create a autoclicker but i encountered a random problem.
I have make the "Exit" button to spawn on the bottom right by using .getContentPane().getSize()
but on my "Basic" Jframe that value some times changes (i have added a system…

Xaralabos Nikolaidhs
- 49
- 10
0
votes
0 answers
Call external JInternalFrame toFront()
I need the JInternalFrame that call through a menu / button to always be placed in front of the screen and block the previous ones.
I can not do it and I think it is a mistake in the structure of my application.
Try in every possible way, I must…

German Avalos
- 53
- 2
- 9
0
votes
1 answer
Java Look And Feel Resizing Window & Not Working
So I've been having a problem regarding Look and Feel. I have a submenu that changes look and feel but it doesn't do anything, it only resizes the window bar.
1)The problem I have with my code is Look and feel does not work, despite even updating…

Anmol
- 43
- 6
0
votes
1 answer
Cannot change the background color of JFrame ContentPane
So I have a snake program in java, works perfectly, however in my Frame class I cannot change the background color of my JFrame's content pane, I use getContentPane().setBackground(Color.DARK_GRAY); but it is not working, any help ?
Here is my Frame…

Coder
- 5
- 4
0
votes
0 answers
Making JComponent always visible on top, even with other JComponents is it possible?
I noticed when adding multiple panels in JFrame content pane, if you set all the panels to be visible, you going to see (with set different background color ) some of them overlapping each other. I wanted to know if it is possible to have one master…

Chuck
- 75
- 1
- 2
- 10
0
votes
0 answers
Get centering to work from jmenuitem action listener
I'm having a problem with my About Frame class. I call it through an action listener in a JMenuItem. It comes up but it doesn't show it centered and the frame doesn't show the icon image as I request. I have the icon working in the mainframe so it's…

javajoejuan
- 323
- 3
- 9
0
votes
0 answers
JFrame ContentPane listener
Is there some kind of listener (and which will be the best to use) which triggers after the content pane of a JFrame is set?
So every time I call myJFrameClass.setContentPane(someJPanel) it will start doing some stuff?
I was wondering about…

Venom Morph
- 1
- 1
0
votes
2 answers
Vague Compiler error "cannot find symbol", but doesn't specify which symbol
*This question is not a duplicate of "non-static method cannot be referenced from a static context?", and it covers a different error message, which is "Cannot find symbol".
I'm having an issue with JCreator showing the build error error: cannot…

Azulflame
- 1,534
- 2
- 15
- 30
0
votes
1 answer
JFrame#setLayout(LayoutManager) not working. Forced to do getContentPane().setLayout(LayoutManager)
When running code that instantiates this class:
static final class MyFrame extends JFrame {
private CardLayout layout = new CardLayout();
public MyFrame() {
setLayout(layout);
System.out.println(getLayout());
}
}
The…

Vince
- 14,470
- 7
- 39
- 84