Solved

internal frame disapears

Posted on 2004-09-18
17
232 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
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.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
object oriented programming comparison 5 77
difference between sorce folder and folder in eclipise 3 28
CSV file parsing thru Java 13 34
Eclipse for Java EE development 2 28
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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 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 implement Singleton Design Pattern in Java.

837 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