Jump to content
  • Advertisement

MrWugga

Member
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

132 Neutral

About MrWugga

  • Rank
    Member
  1. MrWugga

    [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. MrWugga

    [java] Java 2D query

    Try this: g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f)); Tested and got this working for me.
  3. MrWugga

    [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. MrWugga

    [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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!