Solved

how to resize a JLable  in an applet?

Posted on 2001-06-13
1
161 Views
Last Modified: 2010-04-16
hi everybody,
   I try to change the size of JLable in an applet by mouse dragging when it runs at IE5.0. who knows how to do it?
0
Comment
Question by:li6183
1 Comment
 
LVL 2

Accepted Solution

by:
iDeb earned 50 total points
ID: 6187598
create a new class (say MyLabelListenerwhich implements the componentListener interface, there you can handle your resize with the method componentResized......do a addComponentListener for your JLabel object.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
session migration servlets 2 42
reverse digits of a number using for loop 5 52
even odd program using while loop 3 60
null output 3 35
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question