Questions tagged [lwuit-layouts]

Layout managers allow a Container to arrange its components by a set of rules that would be adapted for specific screen/font sizes.

Layout managers are great for mobile applications because they are good at adjusting to different screen sizes and filling the available space gracefully.

LWUIT includes five layout managers.

  • FlowLayout places components from left to right in rows, just like English text.
  • BorderLayout has a large center area and four smaller areas around the edges.
  • BoxLayout arranges components in a single row or column.
  • GridLayout places components in a grid.
  • More complex layouts can be accomplished using GroupLayout and its helper class Group.
5 questions
2
votes
2 answers

Split screen proportionally LWUIT

I want to split the screen by 30% and 70% vertically, How can i achieve this with lwuit? I used/tried GridLayout but it splits the screen equally. Need a example code for this. Thanks in advance!
Ramesh Manly
  • 113
  • 9
1
vote
1 answer

UI alignments in LWUIT?

I'm using LWUIT to create J2ME application. I used GridLayout to add the controls but they are not aligned. Code: flowLayout = new FlowLayout(); roundsPage.setLayout(flowLayout); try { image = image.createImage("/11.png"); //…
selladurai
  • 6,491
  • 14
  • 56
  • 88
1
vote
1 answer

How set scrolling only for BorderLayout.CENTER?

I have top bar, list and bottom bar. this.setLayout(new BorderLayout()); this.addComponent(BorderLayout.NORTH, bottomBar); this.addComponent(BorderLayout.CENTER, list); this.addComponent(BorderLayout.SOUTH, bottomBar); List is very long. bottomBar…
Tim
  • 1,606
  • 2
  • 20
  • 32
1
vote
1 answer

How positions component on the bottom of my screen

super(); this.setLayout(new BoxLayout(BoxLayout.Y_AXIS)); this.addComponent(new TopBar()); this.addComponent(new MyList()); this.addComponent(new BottomBar()); // must be below I tried to use BorderLayout, but it didn't help me. myList is not…
Tim
  • 1,606
  • 2
  • 20
  • 32
1
vote
1 answer

my commands using lwuit not working properly ..

I am trying to move between 3 forms. 1 is main form and 2 other simple forms. I have commands in the soft keys but they are not working... below is my code... public class checkOutComponents extends MIDlet implements ActionListener { private…