Deprecated Android layout that lets you specify exact locations (x/y coordinates) of its children views.
Questions tagged [absolutelayout]
166 questions
1
vote
3 answers
Margin-right with horizontal div layout
I am trying to create a horizontal, scrollable layout for my website. My code looks something like this

BlackWolf
- 5,239
- 5
- 33
- 60
1
vote
4 answers
Adding panel with without layout to the NORTH of BorderLayout
Colleagues.
I'm trying to construct simple GUI in Java, where JFrame has Border Layout. I want to put JScrollPane with JTable to CENTER, and JPanel without layout to NORTH.
The problem is that JPanel doesn't visible. There is simple examle of the…

Dumas45
- 501
- 1
- 10
- 20
1
vote
1 answer
JLabel does not appear over JButton?
I have a grid of 16 buttons which will represent dice. When a score is added, I want a JLabel to pop up in the middle and display the added score. The 16 buttons and one label are all within one JLabel. Why do the buttons always show on top of the…

juggling_pro
- 49
- 1
- 11
1
vote
1 answer
Using String arrays to assign file names to ImageIcons (Java)
Hi i'm having problems when trying to use an array to read in image file names to be assigned to an array of Image Icons. It compiles fine but when i launch the application the images don't seems to be appearing. Can anyone see a problem with what i…

user2209521
- 125
- 7
1
vote
1 answer
scaling up the contents whenver window size increases or decreases
Is there any possibilities to scale the contents of the J Frame For Example : if im giving the initial setSize(800,1000) in which i placed the textfields,labels,buttons etc..as per the size 800,1000 the application looks good,suppose im maximizing…

JAVA Beginner
- 389
- 3
- 15
1
vote
1 answer
Component on JPanel not showing when setLayout(null)
Someone can tell why the combobox is not showing ? I have a Controller:
public class TestController extends JPanel {
TestView cgView;
public TestController()
{
setLayout(null);
cgView=new TestView();
add(cgView);
}
public static…

de3
- 1,890
- 5
- 24
- 39
1
vote
1 answer
How to resize components within JFrame when JFrame is resized?
RESOLVED
I've looked around for a while now and I can't seem to figure out how to do this.
I have lots of components within my JFrame and I am able to resize my JFrame. When I resize the JFrame I want the internal components to resize along with the…

thaweatherman
- 1,467
- 4
- 20
- 32
1
vote
2 answers
Java JTable head not showing
Have a table I want to show in a panel when I click on a button. I am able to get the table to show, but I am not able to the header to show. Have also tried using the JscrollPane, but here nothing shows ups at all.
Main part of code:
public class…

silvertaildk
- 13
- 4
1
vote
3 answers
AbsoluteLayout lost in NetBeans
I made a Java application with AbsoluteLayout using NetBeans on a Machine then I moved project data files to another machine, there I got Reference Problem message for some libraries including AbsoluteLayout library.
I fixed project libraries and…

Ariyan
- 14,760
- 31
- 112
- 175
1
vote
2 answers
Set Specific Coordinates in a Relative Layout
Is there any way to set an ImageView's exact coordinates in a relative layout? I found things related to "absolute layout", but I am informed that it is deprecated? How can I set the position of children in a relative layout?
Thanks!

foobar5512
- 2,470
- 5
- 36
- 52
1
vote
1 answer
Alternative to AbsoluteLayout in "multi layer" layouts
I am developing an android app with a layout that includes buttons arranged around a circular element. As the corners of said element would overlap with other buttons, the recommended layout types (LinearLayout etc.) are not a viable…

user1434972
- 11
- 1
0
votes
1 answer
How can I use ScrollView and AbsoluteLayout in one xml?
I have a problem to include lots of pictures and buttons in the xml, I have tried to ScrollView but pictures and buttons can not be made up as I wanted.
How can i use ScrollView and AbsoluteLayout in one xml so I can include more pictures and…

adig
- 115
- 1
- 3
- 9
0
votes
2 answers
css Column/Grid-Layout: position or float. Any alternatives to that?
As far as i know and understood, there are two possibilities to build a colum-layout or grid-layout or to position elements in a more complex way with css:
1)position:absolute/relative;
2)float:left/right; clear
Are there any alternatives to that…

sewo
- 330
- 1
- 3
- 14
0
votes
2 answers
ImageView within an AbsoluteLayout, How to set x, y coordinates of the ImageView?
What I'm trying to do is create a poorman's version of a gps map. I've setup a "map" picture as the background of an AbsoluteLayout, and then created a tiny 20x20 square picture that I need to move to different coordinates. How do I go about doing…

Szuturon
- 931
- 4
- 17
- 28
0
votes
1 answer
Can not move my custom component based on HGroup
I have created a custom component based on spark.components.HGroup and it works mostly as needed, but I have this minor problem: I can not move it.
Maybe someone will look at my simplified test case below and spot my error?
Here is the screenshot of…

Alexander Farber
- 21,519
- 75
- 241
- 416