Solved

internal frame disapears

Posted on 2004-09-18
17
231 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
  • 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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 100 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 300 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

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

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…
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 arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

813 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

15 Experts available now in Live!

Get 1:1 Help Now