Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

/r/ help from the Javafags.

Name: Anonymous 2008-12-29 21:01

Right.  I've got a code 18 here, it's stupid, it's annoying and I want to get rid of it once and for all.

I have a JPanel, which houses multiple sub-panels.  One of these is a JLayeredPane, and contains code that outputs data as a bar chart.  Within that JLayeredPanel, I want to render a set of data on the first layer, and the other set on the second layer - both are housed into their respective JComponents so they can be inserted in their layers.  Both datasets contain values; this has been verified.  I have also checked that the JLayeredPane contains both components after everything's been set up.

Problem: the second layer refuses to show up.

I have no clue as to what's going wrong.  Everything's there, the renders are set, the datasets are full - there should be nothing wrong in theory, but there is.  I'm drawn to the hypothesis that I overlooked a very simple but crucial concept and that it's making the whole thing go awry.

Any clues?

Name: Anonymous 2008-12-29 21:11

Get a mac.

Name: Anonymous 2008-12-29 21:14

MAYBE IF YOU POSTED SOME CODE???

HELP US HELP YOU

Name: sage 2008-12-29 21:15

Name: Anonymous 2008-12-29 21:18

gb2/pr/

Name: Anonymous 2008-12-30 18:23

OP here.  Sorry I'm late.  Here's a stripped-down demo that shows the problem.  Items on the lower layer are blue, upper layer are orange - victory = seeing only orange items.  You'll need JFreeChart and JCommon to run it:

http://pastebin.com/m6d574cd8

Name: Anonymous 2008-12-30 18:59

First you must separate the model from the view and controller.

Name: Anonymous 2008-12-30 23:07

>>7
No, before that you must leverage core skillsets and world-class team synergy through enterprise-quality best practices to provide clients worldwide with robust, scalable, modern turnkey implementations of flexible, personalized, cutting-edge Internet-enabled e-business application product suite e-solution architectures that accelerate response to customer and real-world market demands and reliably adapt to evolving technology needs, seamlessly and efficiently integrating and synchronizing with their existing legacy infrastructure, enhancing the e-readiness capabilities of their e-commerce production environments across the enterprise while giving them a critical competitive advantage and taking them to the next level.

Name: Anonymous 2008-12-30 23:14

>>8
Ooooh SHIT.  I had forgotten to enable the Internet on the e-business application product suite.  I knew it was a stupid mistake all along.

Well, nevermind, everything works flawlessly now.

Name: Anonymous 2008-12-31 6:16

>>8

And remember to brand EVERYTHING! It is not a button, it is a JButton! Make them think JButton until they forget that buttons exist.

Name: Anonymous 2008-12-31 6:16

>>8

And remember to brand EVERYTHING! It is not a button, it is a JButton! Make them think JButton until they forget that buttons exist.

Name: Anonymous 2008-12-31 6:16

>>8

And remember to brand EVERYTHING! It is not a button, it is a JButton! Make them think JButton until they forget that buttons exist.

Name: Anonymous 2009-01-04 2:03

The problem is that Swing is a piece of shit. JLayeredPane randomly refuses to be a layered pane roughly a third of the time, contrary to the documentation.
The only fix I've found so far is to stop using Java.

Name: Anonymous 2009-08-17 0:50

Lain.

Name: Anonymous 2014-01-19 8:27

main(){
for(;;){
puts("OP is a faggot");
}

}

Don't change these.
Name: Email:
Entire Thread Thread List