Resize Me Java source code
#1

Code:
import java.awt.*;
import java.applet.*;
import java.awt.event.*;

/*
<applet code=ResizeMe width=200 height=200>
</applet>
*/

public class ResizeMe extends Applet
{
        final int inc = 25;
        int max = 500;
        int min =200;
        Dimension d;

        public ResizeMe()
        {
                addMouseListener(new MouseAdapter()
                {
                        public void mouseReleased(MouseEvent me)
                        {
                                int w = (d.width + inc )>
                                        max?min :(d.width+inc);
                                int h = (d.height + inc )>
                                        max?min :(d.height+inc);
                                setSize(new Dimension(w,h));
                        }
                 });
        }
        public void paint(Graphics g)
        {
                d = getSize();
                g.drawLine(0,0,d.width-1,d.height-1);
                g.drawLine(0,d.height-1,d.width-1,0);
                g.drawLine(0,0,d.width-1,d.height-1);
        }
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: image resize bilinear algorithm code, matlab resize code, read multiple images and resize in matlab, multiple image resize using matlab, resize matlab, bilinear resize matlab, code for resize the image in matlab,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Messages In This Thread
Resize Me Java source code - by smart paper boy - 30-08-2011, 12:37 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Simple Key Events Java source code smart paper boy 3 3,654 07-02-2017, 03:41 PM
Last Post: NARESHLAFOOT
  Window Events Java source code smart paper boy 1 3,719 02-03-2012, 10:48 AM
Last Post: seminar paper
  Inter net banking java source code smart paper boy 3 6,014 01-03-2012, 11:24 AM
Last Post: seminar paper
  UDP server java source code smart paper boy 1 3,863 05-01-2012, 05:50 PM
Last Post: jeslinapeter
  UDP client Java source code smart paper boy 2 3,730 12-12-2011, 09:56 AM
Last Post: seminar addict
  Text Demo Java source code smart paper boy 0 2,104 30-08-2011, 12:44 PM
Last Post: smart paper boy
  Text Area Demo Java source code smart paper boy 0 2,119 30-08-2011, 12:44 PM
Last Post: smart paper boy
  Servlet Database Java source code smart paper boy 0 2,491 30-08-2011, 12:42 PM
Last Post: smart paper boy
  server test Java source code smart paper boy 0 2,310 30-08-2011, 12:42 PM
Last Post: smart paper boy
  Ser To App java source code smart paper boy 0 1,710 30-08-2011, 12:39 PM
Last Post: smart paper boy

Forum Jump: