Solved

How to disable frame resizing

Posted on 2000-03-21
10
430 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
 
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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 “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now