Questions tagged [contentpane]
92 questions
1
vote
3 answers
Background not changing color
So I'm trying to change the background on a full screen game I'm making from a tutorial, I'm trying to change the background to green, but it stays black, what's wrong with the code?
Screen.java
package debels;
import java.awt.*;
import…

Debels
- 167
- 1
- 3
- 15
1
vote
1 answer
getComponentAt() not finding a component?
I am using a JFrame to set up a game of Solitaire, using Cards that extend JLabel so that they can be dragged around the screen. However, one of my requirements is that I be able to double click a card and it snaps up to the 4 stacks of aces. This…

Harper
- 140
- 2
- 4
- 10
1
vote
2 answers
Why there are too much layering in the Container in the swing?
Can anybody tell me what is the difference between the below Code
JFrame jf=new JFrame();
JButton jb=new JButton();
jf.add(jb);
and
JFrame jf=new JFrame();
Container c=jf.getContentPane();
JButton jb=new JButton();
c.add(jb);
Even I am not Clear…

Jatin Khurana
- 1,155
- 8
- 15
1
vote
0 answers
Highcharts Bar Chart Tooltips multiple content panes brake in FireFox
I created an application that uses a content panes. Each page loads in the master content pane and others open in a tab format, so the user can flip back and forth and does not have to reload the page.
I added multiple Highchart graphs to each…

Clay
- 11
- 3
1
vote
1 answer
issue about Concept of JFrame, JLabel and ContentPane
I just study window programming with awt.
I see through several codes but I can not get concepts of JFrame, JLabel and ContentPane.
I think JFrame only make outer Frame.
ContentPane is container that contain JLabel that has contents(text, button,…

Rikimaru
- 25
- 3
1
vote
0 answers
Span a Dojo tabcontainer inside contentpane (href)
I have a dojo ContentPane on my main page. I use the href attribute (as an iframe alternative) of it to load a different php file, depending on some data on the main page. This other php file contains the TabContainer.
My problem is that the…

rgamber
- 5,749
- 10
- 55
- 99
1
vote
2 answers
JDialog does not show components
I'm having a strange problem with a class that extends JDialog:
class MyDialog extends JDialog {
private static final long serialVersionUID = 11564288421L;
public MyDialog(JFrame owner, MyObject object) {
super(owner, true);
…

kelo
- 489
- 1
- 11
- 20
1
vote
0 answers
Dijit ContentPane does not render a frame or frameset
I came across a problem today when I trying to render content from an external source into a
dijit.layout.ContentPane.
HTML
JS
var cp = new dijit.layout.ContentPane({}, "someId");
htmlFromExtSrc = "

Sheldon Fernandes
- 1,299
- 1
- 11
- 18
1
vote
1 answer
Dojo dijit layout ContentPane with splitter - programmatically change region orientation
I'm using two panes (grid and details) as master-details pattern.
Now I'm trying to create "Details on the right" or "Details on the bottom" toggle button. I do this by changing the region attribut of the ContentPane, like so:
function…

user1094586
- 11
- 3
1
vote
0 answers
Issue with calling Dojo ContentPane Children inside BorderContainer
I am trying to use a BorderContainer and call a couple of ContentPanes, utilizing their region style, inside. However, I am having issues with that code which looks like this:
function getWindowContent(graphic) {
var bc = new…

jwx
- 137
- 1
- 10
1
vote
2 answers
JLabel doesnt appear
Im having this problem where my Label2 which is assigned to be a text doesn't appear on the Jframe, even though I added it. Im assuming the other Labels which I set as images are overlaping it? If that is the problem how would I go upon fixing it? …

0x29A
- 911
- 1
- 8
- 13
1
vote
3 answers
Dojo 1.7 Ajax Content and AMD Require
I'm in Dojo 1.7, async loading.
I've got a contentpane that I populate via ajax with content. I want to use a uploader declaritively in this content - how do I require the uploader properly?
Let's say this is my server page I am using to generate…

mtyson
- 8,196
- 16
- 66
- 106
1
vote
1 answer
How to preserve old content when setting content of ContentPane
Apparently Dojo does some clean-up when setting the content property of a ContentPane. For example: if I set content to widget A, then set content to widget B, widget A's domNode is null'ed out. I'd like to set content back to widget A, but the…

Leftium
- 16,497
- 6
- 64
- 99
0
votes
0 answers
How to create custom PowerPoint shapes / content?
I want a custom Element in PowerPoint, that behaves exactly like an Image (resizing, persistence, multi occurrences) to PowerPoint.
In contrast to the Image, I want to preset a custom UIElement I write in whatever language required.
One Solution is…

curator
- 175
- 2
- 10
0
votes
1 answer
Dojo Toolkit - adding dijit inside dijit (ex. button into ContentPane in AccordionContainer)
I'm learning Dojo Toolkit and I'm fighting with adding dijit into dijit. There was similar post about it but wih DIV's. I just simply want to programmatically insert a button or anything else to a ContentPane like this:
I have a script (with…

DARIUS
- 15
- 4