java


How can I overlap components in Java? [duplicate]


I have a JScrollPanel that includes a big panel which it's self includes 3 inner panels. i want to put a panel (for example) in a special place so that always could be seen, I mean the user can scroll to anywhere wants but that panel always is in top of the other components and doesn't move. I tried to do that via JLayeredPane but I couldn't. how may I do that?
There's a JLayeredPane example here, but OverlayLayout, seen here, may be of interest. It's not included in the conventional gallery.
Also consider this example that paints on the scroll pane's JViewport.
You could use
The GlassPane
JLayeredPane
To overlay content on top of the other components on the screen
Couldn't you just put the content that you don't want to move in a separate JPanel that isn't the scrolling panel? I don't see any reason to include it in the scrolling panel if you don't want it to scroll.
So have one big panel (call it bigPanel or something) that doesn't scroll. Then have the panel that you don't want to scroll in bigPanel. Then also put the scrolling panel in bigPanel as well.
Perhaps I'm missing something, but wouldn't that solve your problem?

Related Links

How to protect auto-generated sources during clean package in maven?
android.database.sqlite.SQLiteException: near “;”: syntax error (code 1)
Unreachable code with multiple catch statements
java.lang.AbstractMethodError: com.mysql.jdbc.Connection.isValid(I)Z
TreeMap node is null after being assigned
Disable #EnableAutoConfiguration
Not able to move to next formatted text field using java selenium Webdriver
Calling a Jersey API from a remote location
How a single object is showing different value for the same field (Inheritance) [duplicate]
Hibernate PersistentList has data, but returns null
WSDL wsimport lower upper case issue
Run a single java package on eclipse using maven
Reverse SelectionSort to sort array
How do I test a money object method
How to prevent Linux rounding File.lastModified()? [duplicate]
How to sort strings containing multiple periods/dots in Java?

Categories

HOME
pdf
client
keycloak
image-processing
fluentd
kde
angular-material
cvs
sharepoint-designer
flyway4
upload
gitpitch
numeral.js
rascal
resize
windows-server-2012
circuit
worldwind
serilog
apache-metamodel
ab-testing
lucene.net
mmap
wijmo
hammerspoon
rundeck
facebook-access-token
intel-pin
subdomains
twilio-api
scorm2004
gtrendsr
copying
code-contracts
webtest
framemaker
android-kernel
geopositioning
overlap
gesture
libvpx
android-browser
c11
sqlite2
impersonation
quadratic-programming
vao
slick-3.0
businessworks
sencha-touch-2.3
convertapi
komodoedit
qsslsocket
clean-architecture
blogengine.net
hls.js
powercli
sqlclient
gnome-shell-extensions
jquery-filter
url-pattern
asp.net-4.5
nsfilemanager
react-native-listview
hill-climbing
qcustomplot
hover-over
goose
itextpdf
two-factor-authentication
ios8-today-widget
metaclass
feedback
purge
quicklisp
microbenchmark
cisco-ios
unity3d-gui
notify
inmobi
kineticjs
c3
codeigniter-routing
markers
issuu
responsive-slides
has-many-through
expected-exception
braille
picturefill
fmod
xsockets.net
interface-orientation
android-hardware
wsdl-2.0
tinn-r
bubble-chart
semantic-diff
tomcat-valve
locate
mongomapper
jmock
compiler-specific
multiple-languages
wsdl.exe
.net-1.0

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App