Solved

Making a JFrame or JDialog non-movable

Posted on 2004-10-19
8
1,892 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
 
LVL 92

Expert Comment

by:objects
ID: 12352944
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

760 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

18 Experts available now in Live!

Get 1:1 Help Now