layout

Why is object indended using Swing BoxLayout

Can someone explain why the text "Options" is indented here? This looks like a bug to me in BoxLayout. TIA import javax.swing.*; import java.awt.*; public class BoxLayoutIssue { public static void main(String[] args) { JFrame f = new JFrame(); f.setSize(240, 250); f.setDefaultCloseOperation(JFrame.EXIT_ON...

How do I center a crosstab in Crystal Reports XI?

I have a crosstab that I would like to have automatically centered (left to right) on the page. I would have thought this a simple thing. For example, on a web page I could do something like "align=center". In a java GUI I would use a layout manager. In GWT I would use a panel. In Word I would use Ctrl-E. In Latex, \centering. ...

How is an empty listview rendered?

If a listview is not given any items, how is it rendered? Will it still expand to fill the space in the layout allotted to it? ...

How to get RelativeLayout working with merge and include?

I have been trying for a few days now to make my layouts more efficient by converting from using several levels of nested LinearLayouts to one RelativeLayout and have come across a few problems that I haven not been able to find a workaround for... I have searched the Android beginners group and this site and have not been able to find ...

Why does this Swing List not display its elements?

I'm scratching my head over this one. Below is a running sample. I have 2 Swing Lists in a flow layout each with a simple data model. Depending on how I instantiate the FlowLayout the 2nd List does not display its elements. Weird. import javax.swing.*; import java.awt.*; public class ListboxTest2 { public static void main(Stri...

how to create fixed footer in android layout?

dear friends, i am using following code to display button at the bottom of activity. <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" > <Button android:id="@+id/btnGetM...

What in my HTML/CSS/javascript would be causing a strange gap on the right side of the screen?

I currently have in development that's having a problem where there is a gap on the right side of the screen. There is a horizontal scroll bar even when there normally wouldn't need to be, and when you scroll about 10-15px to the right there's a gap running down the right hand side of the site. I do HTML/CSS development all the time and...

Manage layout of a list of controls that change in size

I'm displaying a number of controls (all the same custom type) that can change their height in response to user input. The controls are being placed on a panel that's configured to automatically create a scrollbar if needed. The controls are arranged as a single column list. What's the best way to reposition them when something chan...

How to make '3 part' splitter window in wxWidets?

I want to create 3 parts in a window or panel. Parts should have possibility to resize by user and be automatically resized when user change size of main window. Its something like 3 panels added to vertical box sizer, but user can resize all of three parts. I can add up to 2 panels to wxSplitterWindow. Im working with C++, wxWidgets an...

Layout difficulties in ListBoxItem ContentPresenter Template

Good day, I am populating a ListBox withe Shipment objects and I am using an ItemContainerStyle to define how I want the items displayed. Everything is working smoothly with one exception. The template uses a Grid that is inside of two borders. The grid has 7 columns, the last is specified to contain a border that will end up being a...

how to show full EditText after appearing Keyboad in android?

friends, i am using following layout and tring to enter text and then saving the data but facing one problem when i click on EditText to type something. keyboard appears and covers half of layout of EditText and button. but when i type in it it shows completely.before typing in it keyboard covers half of Edittext layout. can any one g...

How to fix nested winform control flicker issues.

I am currently working on a program that uses a fairly complex structure of nested winform controls which changes dynamically as a user makes certain selections. To go into more detail about the specific layout of the controls would be to extensive for this question. When ever a selection is made, a lot of updates are made to the underl...

Android : ugly TABS in 2.0 vs 1.5 ... why ? where are my rounded corners TABS ?

I simply use the tabwidget : mTabHost = getTabHost(); mTabHost.addTab(mTabHost.newTabSpec("tab_1").setIndicator(getString(R.string.day0)).setContent(R.id.tab1_content)); mTabHost.addTab(mTabHost.newTabSpec("tab_2").setIndicator(getString(R.string.day1)).setContent(R.id.tab2_content)); mTabHost.addTab(mTabHost.newTabSpec("ta...

Specify layouts for certain controllers in ruby on rails

It's in my understanding that I can specify a layout for a controller by putting layout 'mylayout' in the controller file. I further understand that I can specify certain actions that the layout will be invoked for with :only and :except as such: layout 'mylayout', :only => [:index, :new] or layout 'mylayout', :except => [:ind...

Where do I create my layout in the Zend Framework?

In ASP.Net you'd create a MasterPage and have whatever pages use that. I need my pages to use the same basic layout. Where do I create it? ...

Android TableLayout question: get a fixed-width right column?

(Edited: I'm one step further than before) I've been trying to get a simple 2-column TableLayout going where I have a LinearLayout in my left column that I dynamically add elements to which fills up the horizontal space except for the fixed 100px right column. Here's what I have so far which works for me IF the LinearLayout contains mo...

Where in my .phtml file do I tell it to 'use' the layout.phtml file I made?

I'm kind of lost. I made a sort of 'master page' that I want a page to use. Where do I declare it? MainLayout.phtml <html> <head> </head> <body> <?php echo $this->layout()->content; ?> <div> <ul> <li><a href="#">Navigation</a></li> <li><a href="#">Naviga...

Flex - Label layout issue: shorter text means wider label

Hi Would anybody know why the following code results in the first label being wider than the second one? The first box (shorter text) measures 21 pixels in width, the second box 19 pixels. <mx:VBox> <mx:HBox id="lbl1" backgroundColor="#6789ad"> <mx:Label fontWeight="bold" color="white" text="0" /> </mx:HBox> <mx:HB...

how to set width of buttons in android to cover screen width?

friends, i have following three button in linear layout with width fill_parent now how can i set width of these buttons to cover whole screen area equally? any help would be appriciated. <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btnReplyMes...

LayoutInflator issue

Hi I've a list view with custom list adapter(list_item.xml). I have multiple layout folder to support multiple screen size. I found out when I inflate using LayoutInflater, its always taking the view from main "layout" folder. I've a phone with screen size "427x320". This is my code private LayoutInflater mInflater; public ListAdapte...