[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to disable frame resizing

Posted on 2000-03-21
10
Medium Priority
?
471 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 2

Accepted Solution

by:
muraliram earned 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month18 days, 14 hours left to enroll

834 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