• Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

132 Neutral

About MrWugga

  • Rank
  1. [java] User friendly Java IDE

    As a note. IDEA is in no way outclassed by Netbeans and Eclipse. Having used all three in development, I can say the IDEA is far better. You get what you pay for.
  2. [java] Java 2D query

    Try this: g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f)); Tested and got this working for me.
  3. [java] Java 2D query

    What happens when you change the code to this? (haven't pasted the complete method) g2.setComposite(AlphaComposite.getInstance(AlphaComposite.DST_OVER, 1.0f)); Rectangle2D.Double rect = new Rectangle2D.Double(0,0,32,32); g2.fill(rect); g2.drawImage(image,0,0,null); As far as I know AlphaComposite.CLEAR draws nothing on the combined image.
  4. [java] umm..what?

    Your Display class does not seem to call the constructor of the parent class. Hopefully this will do the trick. Try this: public Display(final Type type) { super(); // Parent constructor called. Initializes the JDialog JDialog.setDefaultLookAndFeelDecorated(true); this.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE); this.setTitle("Country " + type); imageLabel = new JLabel("", null, JLabel.CENTER); this.getContentPane().add(imageLabel); }
  • Advertisement