layout

Setting proportional column width with <col width="x*" />

I am trying to set proportional column width with <col width="x*" />: <table width="600px"> <col width="1*" /> <col width="2*" /> <col width="3*" /> <tbody> <tr> <td style="border: 1px solid black;">AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA...

Example of TYPE_APPLICATION_PANEL

Can anyone provide working example of WindowManager.LayoutParams.TYPE_APPLICATION_PANEL? I am trying to write a nice Android UI, and I would like to overlay an application panel on top of my current window. However, I cannot seem to get this working (and it's not from a lack of trying, believe me!). An example would be worth a lot to m...

NoClassDefFoundError: javax/swing/GroupLayout$Group on Mac Computer

I am having a runtime error ONLY when I test my Java program on a mac computer. It tests perfectly fine on various Windows operating systems. This is the error message I get on a Mac computer... Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group at project.MainPanel.calculateButton...

Centre the background of a TabControl in WPF

I'm trying to get an image to float unstreched in the middle of my TabControl. I started with the below XAML which stretches the image. <TabControl> <TabControl.Background> <ImageBrush ImageSource="/LogoTest;component/logo_final.png" /> </TabControl.Background> </TabControl> I've tried various approaches ...

How do I pass a variable into grails template from a Layout file?

So I have a navigation template (/common/_navigation.gsp) that is getting rendered in the Grails projects main Layout file (/layouts/main.gsp). How do I pass some kind of variable/parameter/arg from the individual view files to layout and eventually into the navigation template? I just want the right tab to be highlighted when I'm on a...

SpringLayout problem/challenge

SpringLayout is claimed to be very powerful. I tried to implement what I thought was a fairly simple layout using SpringLayout and I'm failing badly. Reduced to the minimum, I want 4 JButtons on my JFrame, side by side: *=====================* | +--+ +--+ +--+ +--+ | | |b1| |b2| |b3| |b4| | | +--+ +--+ +--+ +--+ | *====================...

Which Swing layout(s) do you recommend?

There are 8 layout managers in the Java library alone, and then there's a bunch of 3rd party products as well. The other day, I tried to use SpringLayout and... well, it ain't working out for me. See my other question. So... if you have a Swing app to design, and you want your layout just so, what are your preferred layout managers? Any...

CSS Layout Problem

Here's my page It looks correct in Firefox, but of course in Internet Explorer, there's an issue. The main body of the page is not displaying correctly. The left and right divs are not showing the white background that I'm trying to get them to. ...

Understanding td width in Firefox 3.5 and Internet Explorer 8

Does someone have a good reference for how browsers determine td width? I have a table with 3 columns, td width set to auto, 150px, 200px, respectively. Looks pretty good in Firefox 3.5. In IE 8, columns 2 and 3 are huge, column 1 is much tinier than I'd like. I wouldn't mind the browser being a little smart (sometimes column 3 has l...

Instance variables in layout

Hello, I am fairly new to rails so I apologize if I am using the wrong terminology. I have a model Menuitem that I would like to display the contents of in a layout. How does one go about passing an instance variable into a layout? I was looking for a layout helper of some sort but I was unable to find anything. I was also looking at d...

wpf textblock autosize/layout in stackpanel

I have the following stack panel <StackPanel> <TextBlock Text="{Binding AddressLine1}" /> <TextBlock Text="{Binding AddressLine2}" /> <TextBlock Text="{Binding AddressLine3}" /> <TextBlock Text="{Binding AddressLine4}" /> </StackPanel> and my AddressLine2 string is null on the bound object. My stack pane...

Android layout for ListView followed by non-scrolling bar of text at bottom of screen

Hi, I'm having trouble setting up an Android Layout. What I would like is a scrollable ListView followed by a small bar of text (TextView) that doesn't scroll and always stays at the bottom of the screen. it would look like this: ListViewItem1 ListViewItem2 ListViewItem3 … Bar of Text Here (always displayed irrespective of scroll...

What is the ideal project structure for a large .net application?

I’m working on a project currently with 5 developers. The application consists of a thick client, a thin admin client, and multiple supporting maintenance applications. Currently the thick client is written in VB6 and is slated for conversion to .NET in the next 6-12 months. The thin client is an admin web application that allows the ...

Focussing on Style Sheets and Cross Browser Compatibility.

Hello everyone, Let me begin this topic by explaining my background experience with web design. I have always been more of a back end programmer, with PHP and SQL and things. However I do have a shallow background with HTML and CSS. The problem is, I don't know it all. What I do know is, when it comes to designing (not back end dirty wo...

WPF Layout - Geting a column to fill available space

I have a list box that has a grid in it's template to allow 4 columns. One column is the actual text of the list box. I want that column to fill the available horizontal space. The column definitions are: <ControlTemplate TargetType="ListBoxItem"> <Grid ScrollViewer.CanContentScroll="True" Margin="2"> <Grid.ColumnDefini...

how to make a div to wrap two float divs inside?

I don't know if it's a common problem, but I can't find the solution in web so far. I would like to have two divs wrapped inside another div, however these two divs inside have to be align the same level (for example: left one takes 20%width of the wrappedDiv, right one take another 80%). To achieve this purpose, I used the following exa...

wpf datagrid footer layout

Hello My footer is currently composed of a label and an ItemsControl. It needs to be below 2 DataGrid controls that are similar in that they both contain a fixed width column for every day in the week and the end of it (which is what the ItemsControl in the footer has totals for). I'm trying to solve the alignment, which seems easiest...

How could I modify this template to add butons that would scroll to the next section?

I am trying to make a horizontally scrolling Web Page. This template uses J Query and CSS to control width, but the User still has to drag the scroll bar across the bottom - how would I add arrows or something that the User could just click on and it would go over to the next section? Thanks in advance for your help! http://css-tricks.c...

BlackBerry - Resize the width of horizontal manager

Hello All, Is it possible to resize the width of horizontal manager. I want to create two buttons in horizontal manag, set the background border. I am using the following code for that. It is working fine. But as there are only two buttons and doesn't occupy the entire screen of 320 width, setting border is happening only for those two ...

Yield in view for multiple blocks

I am writing a small Sinatra-based app and would like each view to be able to insert various items into the layout, for example the page title or extra CSS/javascript references in the head. Currently my layout (erb) looks like this (simplified): <html> <head> <title>Hard Coded Title Here</title> <link rel="stylesheet" ... /> <...