Questions tagged [contentpane]

92 questions
0
votes
1 answer

dojo 1.10.4 dijit/layout/Tabcontainer not rendering first contentpane's content

dojo 1.10.4, sitemesh 2.4.2 I am trying to use dojo 1.10.4 in my project to work with sitemesh 2.4.2, spring framework 4.1. When I try to put a tabcontainer in my content section (header, content and footer style defined by sitemesh). I never get…
cidy.long
  • 417
  • 12
  • 35
0
votes
2 answers

Toggle icon in tabcontainer

As the title of this post already says: I'm trying to toggle an icon in my tabcontainer. I got a TabContainer with some ContentPanes in it. If I get some values from the database I show them in the ContentPane and set the IconClass so the user see…
Keksdose
  • 17
  • 6
0
votes
2 answers

Custom CSS Class for dijit/layout/ContentPane

I want to add a custom CSS Class to a dijit/layout/ContentPane so I'm able to style it myself. This is cause I got more than one tab in my TabContainer where my ContentPanes are located and I don't want to double the borders. Using a border all…
Keksdose
  • 17
  • 6
0
votes
1 answer

Can't get javascript to execute in a dojo contentpane even with dojox

I've seen other posts about getting javascript to load in a dojo contentpane by using the dojox extension. However, I can't seem to get this to work in my scenario. To make it easy to replicate, I'm using the example app…
0
votes
1 answer

Neither setContentPane() nor getContentPane().add() works

I can provide all of my code if that would aid in the problem, but I believe since this only affects one class really, it can be solved here, to simplify the issue. I have a solitaire project (mind the package/class name, it was trial and error and…
user4728253
0
votes
2 answers

Java Changing Content Pane

I have recently been making a game and came across a problem I could not solve. My problem is with removing the content pane of a JFrame and setting as something else. While this works, the KeyListener in the class of the content pane does not work…
Raywl
  • 17
  • 5
0
votes
2 answers

Java - JMenuBar Hidden When Using Glass Pane

The problem seems simple, but I can't seem to get around it. I am using GlassPane in my frame (also the ContentPane). So when I add JMenuBar to the frame it doesn't show up. If/when I am using GlassPane at other times, everything works absolutely…
Abbas
  • 3,529
  • 5
  • 36
  • 64
0
votes
2 answers

ContentPane doesn't scroll when nested inside other ContentPanes

I am using a Dojo Dialog that contains a TabContainer which has a ContentPane that contains both an image and a nested ContentPane with text. I would like the nested ContentPane to scroll, but I don't want its parent container with the image to…
kenbuja
  • 252
  • 5
  • 16
0
votes
2 answers

DOJO TabContainer containerNode height is 0px

I'm programmatically creating the DOJO TabContainer and the ContentPanes to add to that tabContainer. Each of the contentPanes contain my custom widget. Some of the code is shown below. When the tab is shown, the containerNode on the first tab…
tsc
  • 27
  • 7
0
votes
0 answers

Java getContentPane() NullPointerException on JFormatterTextField

I am trying to create a JFormatted Text field, but when I try to add it, NullPointerException gets thrown at me. I checked if the stuff is in correct order or if something isn't null, but it doesn't seem so. I might be wrong though. here is the…
0
votes
0 answers

Handle dojo dijit before destroy recursive

I have a web app that loads it´s forms via ajax into a dijit.layout.ContentPane. Every time a user navigates from this form into another, the content pane is destroyed with destroyRecursive() and another form is loaded. I was trying to handle some…
user2061796
  • 29
  • 1
  • 5
0
votes
2 answers

Java: How can I modify the size of a JPanel in runtime?

I want to modify the size of the JPanel while the program is running, for example with a menu item. How can I reach it? Or how should I modify my program to get acces to the live JPanel in the content pane? Edit: If I make a contentpane for a…
0
votes
2 answers

setContentPane() works but getContentPane().add() doesn't work

This is my code. When I setContentPane(panel) it works, but when I getContentPane().add(panel) it doesn't work. Why doesn't the second method work? (It doesn't show me anything) public MyFrame() { final JFrame frame = new JFrame(); …
Paniz
  • 594
  • 6
  • 19
0
votes
1 answer

How do I set contentPane without using the main method or calling other methods?

I understand that the following sets the background colour of the contentPane. How do I set a picture as its background instead? I've tried these: Setting background images in JFrame JAVA: Ways to fill a Frame. add(), setContentPane(),…
user2945412
  • 297
  • 1
  • 3
  • 13
0
votes
1 answer

iframe inside dijit/layout/contentpane does not have scrollbar

I have an IFRAME inside a dijit/layout/contentpane. When the Iframe html renders larger than the contentpane size, there are no scrollbars at the or contentpane Using overflow: auto doesn't help. Setting the iframe's scrolling=yes displays…
steve
  • 1
  • 1