Solved

Making a JFrame or JDialog non-movable

Posted on 2004-10-19
8
1,920 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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.

816 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

12 Experts available now in Live!

Get 1:1 Help Now