Reputation: 0 Apprentice
- New Members
- Active Posts:
- 11 (0.02 per day)
- 15-September 11
- Profile Views:
- Last Active:
- May 06 2012 12:11 PM
- Dream Kudos:
Posts I've Made
Posted 3 Oct 2011setMnemonicAt() method change which keys will switch panels, but i don't need this because it is ok to switch panels with right and left arrow. I need up and down arrows to trigger something (resize image on other panel) and i can't do this because key listener can't recognize up and down arrow...
Posted 28 Sep 2011I've almost done this, but i need help one more time. I do this by putting all stuff(image, passpartout and image frame) on one JPanel, and then i add that JPanel on other JPanel with borderlayout (on center). This is how it looks right now (see first attached image).
Now i have problem with resizing that Panel with all stuff on it. User can resize passpartout or picture frame, and when user increase it a lot, it looks like second attached image. I want to resize complete panel so that image and all looks nice. What's most painless way to do it? Do I have to calculate ratio of components on JPanel and resize each component, or there is better solution? I tried to setSize() and setMaximumSize() on that Panel but it didnt work...
Posted 21 Sep 2011How can i draw this shape and fill it with texture? Is there any way to draw it line-by-line and then fill it, or i must use Area class?
Posted 19 Sep 2011I have another question, sorry if I'm annoying.
My program load 4 megapixel image, and before I display it on panel, I resize it with img.getScaledInstance(bla bla)
The problem is that it takes about 10 seconds and I think it is too long. Is there faster algorythm for resizing Image (or BufferedImage)?
On third parameter of getScaledInstance(one, two, three) i used Image.SCALE_SMOOTH because other parameters give me bad quality.
Posted 19 Sep 2011
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
gadni hasn't added any friends yet.