Solved

Making a JFrame or JDialog non-movable

Posted on 2004-10-19
8
1,937 Views
Last Modified: 2013-11-23
How do I make  a JFrame or JDialog non-movable, like in VB (movable = false)

I'd prefer not to trap form movement events.  Is there an attribute I can set?
0
Comment
Question by:fbk2000
8 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 12350805
>>Is there an attribute I can set?

Not in Java :-(
0
 
LVL 37

Expert Comment

by:zzynx
ID: 12351085
>>I'd prefer not to trap form movement events.
I'm afraid you'll have to
0
 
LVL 92

Expert Comment

by:objects
ID: 12352941
Use a JWindow.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
LVL 92

Expert Comment

by:objects
ID: 12352944
0
 
LVL 5

Expert Comment

by:Naeemg
ID: 12355177
Use JWindow or JPanel for such purposes
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 12355391
Great idea objects, but, is the message in
 http://experts-exchange.com/Programming/Programming_Languages/Java/Q_21172825.html
true?
;JOOP!
0
 
LVL 92

Expert Comment

by:objects
ID: 12355410
yes there are some limitations, depends what you want to do in the frame.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12401234
8-)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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
jar file executable 12 58
oracle 11g 23 106
ejb example issues 3 19
Convert from a json string array to a Java object 3 51
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

792 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