Solved

How to disable frame resizing

Posted on 2000-03-21
10
440 Views
Last Modified: 2012-05-04
How do i disable the resizing of an awt frame in java
0
Comment
Question by:snataraj
  • 5
  • 4
10 Comments
 
LVL 2

Expert Comment

by:muraliram
ID: 2640089
Dear snataraj,

 Try teh following.

Frame f=new Frame("Hello");
f.resize(200,200);
f.setResizable(false);

This will work.


Bye

Murali
0
 
LVL 1

Expert Comment

by:yogeshr
ID: 2640116
use setResizable(false) method after the frame is initiliased.
0
 
LVL 2

Expert Comment

by:muraliram
ID: 2640119
Dear snataraj,

I think I can change this to answer. Try teh following.

Frame f=new Frame("Hello");
f.resize(200,200);
f.setResizable(false);

This will work.


Bye

Murali

0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 2

Accepted Solution

by:
muraliram earned 50 total points
ID: 2640177
Dear snatraj,

  Why you have rejected the answer.Tell the reason also. It will work if the code is properly written. This is the working code just I have tested.Don't reject the answers before testing it.Following id the full program

import java.awt.*;

public class t extends Frame
{
      
      public t()
      {
        this.setSize(200,200);
        this.show();
        this.setResizable(false);
                    
      }
      
      public static void main(String args[])
      {
         t t1=new t();      
      }
      
      
}

Bye Murali.R
0
 

Author Comment

by:snataraj
ID: 2640192
hi,
    Thanks a lot for your reply..im very new to this site(just joined) and thats why i unknowingly rejected your answer..its perfectly working and thanks a lot once again.

im really very sorry for the inconvenience

sankar  
0
 
LVL 2

Expert Comment

by:muraliram
ID: 2640290

Dear Sankar,

Its OK.I ahev tested the code. Thats why I have posted a comment like that. If it is working give me the points sankar.

Bye

Murali
0
 

Author Comment

by:snataraj
ID: 2640301
Thanks once again murali. Im really very new to this site and thats why all the mess has happened.

sankar
0
 

Author Comment

by:snataraj
ID: 2640322
dear murali,
             i wish i could give you 500 points, but im left with just 20 points...

regards
sankar
0
 
LVL 2

Expert Comment

by:muraliram
ID: 2640366
Dear Sankar,

       This will happen with almost every one who is new to this site. Its OK sankar. 50 points is too mch for this question.

Bye Sankar

Murali
0
 

Author Comment

by:snataraj
ID: 2640375
Dear murali,
             Does it mean that if i dont have any points, i cant ask a question ?


regards
sankar
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java JRE greater than 1.6 5 63
print map entry 34 69
Windows 10 IE Certificate Issue 10 45
What's wrong with this code? 4 23
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

809 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