Questions tagged [absolutelayout]

Deprecated Android layout that lets you specify exact locations (x/y coordinates) of its children views.

166 questions
0
votes
3 answers

Java Swing JLabel Text longer than bounds

I have a problem with Java Swing JLabel. The text i want to display on the JLabel exceeds the bounds of the JLabel. I want to display it via a Marqueeeffect. I already implemented the effect but when there is a string that exceeds the bounds of the…
Chocolate
  • 434
  • 1
  • 5
  • 16
0
votes
3 answers

JScrollPane not appearing, elements overflowing

Working on an assignment right now and I'm essentially writing my first GUI. Everything is working fine except my scrollbar- upon adding it not only will it not display, but even after I've commented it out, the LAST element added(via .add function…
0
votes
2 answers

Adding a JTabbedPane to a JTabbedPane error

Getting this error: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at Project.reportpane.addComponent(reportpane.java:69) I'm unable to add the rptinvestment tabbedPane to the panel tabinvestment public class reportpane…
0
votes
1 answer

Java Swing: move JButton on click

I'm in the process of learning to use swing components starting with the buttons. I'm trying to get a few buttons to move after clicking one of them. To set the initial location of the buttons, I have such code in my main class' constructor: …
1024
  • 23
  • 2
  • 8
0
votes
2 answers

dompdf absolte positioned elemnts pagebreak

I have a dynamically generated page made up of some divs and tables and other elements inside those divs, all absolutely positioned. The lower divs can potentially have more contents in them, like comments/description, so they'll be longer then a…
Vlad
  • 109
  • 2
  • 7
0
votes
4 answers

Dynamically growing JPanel with BoxLayout (on a null layout)

I have a JPanel with a vertical BoxLayout on top of a JPanel with a null layout. I would like the JPanel with the BoxLayout to grow as the components are being added. See this code: public static void main (String[] args) { JFrame f = new…
CodeGuy
  • 28,427
  • 76
  • 200
  • 317
0
votes
0 answers

how to re-size components in main panel in JFrame if window is maximized

i have developed a window using Swing package which consists of mainpanel(JPanel). this mainpanel is added to the JFrame and again mainpanel contains multiple number of JPanels. i used componentListener to find if window is resized and set the new…
0
votes
1 answer

Inflate Button exactly at centre of the touch point on DragEvent.ACTION_DROP on AbsoluteLayout

I want the button to be inflated with its centre point = touch point. At the time of inflating, m doing as follows: control = inflater.inflate(R.layout.button, (ViewGroup) target_layout,…
0
votes
3 answers

Adding multiple jpanels to container, adding space/border between?

I am creating a program which has three jpanels: one container, and inside the container is two jpanels, one that is going to hold buttons and one which will hold the content. Ive got them both showing so far and its looking good, the only problem i…
Kynian
  • 660
  • 4
  • 15
  • 30
0
votes
1 answer

ImageIcon in JLabel not working

I've been struggling with this problem for weeks to no avail. Other Java forums have not been able to help me with this so I'm hoping I can find someone here with new eyes. I have a JFrame in which, among other things, I am trying to insert an…
0
votes
4 answers

css: absolute position doesn't favour right and bottom value?

I want to absolute position an iframe and define it's left, top, right, bottom offset: #x { position: fixed; left: 10px; top: 10px; right: 10px; bottom: 10px; width: auto; height: auto; border: 2px solid #aaa; …
Gelin Luo
  • 14,035
  • 27
  • 86
  • 139
0
votes
4 answers

How to position views in android without using the deprecated AbsolutoyLayout

I want to position several views on the screen , AbsoluteLayout makes it. but it is deprecated . I have tried to use framelayout with setMargin() function programmaticlly. But it doesn't work!
Adham
  • 63,550
  • 98
  • 229
  • 344
-1
votes
1 answer

How to save my app's settings?

How do I save the back ground setting in the app and when it exits back it still saves that background As the default app I to be :
-1
votes
1 answer

What is the easiest way to draw line in absolute layput vaadin?

After creating absoluteLayout object what is the easiest way to draw line between two objects in that?
mece1390
  • 161
  • 2
  • 13
-1
votes
2 answers

Run my application on different devices with different resolution

i'm creating a app in Android using eclipse, but i don't have idea with create layouts for more of one resolution of screen. My app is in Absolute Layout in a screen landscape of 1024x600, but if i execute this app in other resolution, the layout is…
FelipeRsN
  • 887
  • 1
  • 9
  • 19
1 2 3
11
12