?
Solved

internal frame disapears

Posted on 2004-09-18
17
Medium Priority
?
237 Views
Last Modified: 2010-03-31
Hi experts,

My internal frames can be moved around but if moved upward they seem to keep going and part of the internal frame will disappear behing the menu bar or tool bars. How do you restrict an internal frame from going beyond the panel it is placed on? so that the entire internal frame is always veiwable?

thanks
0
Comment
Question by:Samooramad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
  • 3
  • +1
17 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 12091723
Again, like in one of your earlier questions, that would probably require a custom layout
0
 

Author Comment

by:Samooramad
ID: 12091925
or at least how do I get it to appear above the menu bar and toolbar?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12091952
That would be still harder to do - it's not meant to do that ;-)
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:Samooramad
ID: 12093517
sheesh.. well got any alternative ideas? :)
0
 
LVL 15

Expert Comment

by:Javatm
ID: 12093802
Well an internal frame would always be like that except if you can get the mouse location of the area on which you want to limit the access of the frame. If you can get it then thats it you can limit it but it would be hard to do since all internal frames
are ment to be like that which disappears in a certain area.
0
 

Author Comment

by:Samooramad
ID: 12093883
could you give me an example to base it on Javatm?
0
 

Author Comment

by:Samooramad
ID: 12093973
maybe by getting the position f the desktop or menubar? could that work?
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 300 total points
ID: 12094777
You shouldn't really do this sort of thing even if you can. It violates a central principle of gui design - the principle of 'least astonishment'
0
 

Author Comment

by:Samooramad
ID: 12095416
meaning?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12096151
Meaning that guis should correspond to common expected standards about how their components behave otherwise people would find computers difficult to use as a behavioural anarchy would quickly set in. This compliance is normally quite natural in Java, as the behaviour of Java components is derived from their native peers anyway. It's when that behaviour gets overridden that the problems start
0
 

Author Comment

by:Samooramad
ID: 12096328
ok. wasnt familiar with that :)
0
 
LVL 92

Expert Comment

by:objects
ID: 12098135
> or at least how do I get it to appear above the menu bar and toolbar?

You can place your gui elements whereever you want.
You just need to use layout managers that will give the desired layout and add your components where needed.
0
 

Author Comment

by:Samooramad
ID: 12119072
how so objects?
the internal frame keeps dissappearing beneath them
0
 
LVL 92

Accepted Solution

by:
objects earned 900 total points
ID: 12119208
all components will disappear behind an opaque component that is at a higher z level.
you'd need to look at using layered panes if you want to be changing the z order.

http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html
http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html

Another possibility may be to make your components transparent.

0
 

Author Comment

by:Samooramad
ID: 12149970
thank you :)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12150023
8-)
0
 
LVL 92

Expert Comment

by:objects
ID: 12153146
(:
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month10 days, 5 hours left to enroll

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