layout

Can I save a DMBL layout as a jpeg/png?

Hello, Is it possible to save the layout diagram from a DBML file as a jpeg/png or any other image format? A manager wants to know what we are storing in our database and the print out wasn't enough he wants an electronic version. I know I can use a screen-shot but wonder if there are any other options? I've just thought about printin...

Why is addSeparator() not working with my JToolBar?

Hey all, I am having trouble getting a JSeparator to show up inside of a JToolBar. My toolbar is created as follows : public class ToolBar extends JToolBar { super(); FlowLayout layout = new FlowLayout(FlowLayout.LEFT, 10, 5); setLayout(layout); add(new JButton("Button 1")); addSeparator(); add(new JButton("B...

Runtime alignment of JComponents + chaining to RowFilters

Hello everybody. I'm currently working on a rather complex application. My job is to build parts of the GUI. The main area is derived for JTable and contains all application relevant data. There are a few elements on top of the Table, that allow the user to control the way the data is shown in the table. The options relevant to the task...

using constraint layout and percentage layout together flex

Hi, I'm trying to use percentage based layout along with contraint based layout to achieve the following layout http://imgur.com/rgoBe.jpg I have 3 canvas set in my app with the correct percentages but I setting things like top=10 left = 10 to create "border margins" has no effect. How can I fix this? EDIT <containers:GradientVB...

Setting drawable defined in XML as view's background in Android

Hi I'm trying to set a shape defined in XML as view's background. Here's it: <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:startColor="#fcfcfc" android:endColor="#cfcfcf" android:angle="270" /> <padding android:left="10dp" android:top="10dp" android...

How do I change the text style of a spinner?

I'm creating a spinner in my layout xml files and setting an string array to this spinner. If I change the textstyle of the spinner the text is not affected by the changes. I read in the googlegroups that a spinner has no text and therefore the textstyle can not be changed and I have to change the style of the textview that is shown i...

Change input locale (keyboard -- left shift+ alt + 1) key sequence PROGRAMMATICALLY

Dear Sirs, On XP, if you go to control panel -> regional and language Options -> Languages Tab -> Details -> If you have more than one keyboard in use, then, click Key Settings. Those are the settings I would like to change. I would like to set it up so that the DVORAK keyboard is Left Alt + Shift + 1. I can use C++, C# or wha...

How to layout out a component differently depending on the amount of space available?

I am trying to build a sort of button bar in Flex - something like the horizontally laid-out bookmark bar you'd see in most modern web browsers, where when you run out of horizontal space, you can click on the arrows button(>>) to get a drop-down to see the rest of the items which did not fit into the horizontal space. Problem is, how ca...

Javascript library for dockable panels/tabs?

In the process of converting a .NET rich application to Javascript. One of the GUI features folks liked a lot was to rearrange their application layout. In .NET this was accomplished via Sandock: http://www.divelements.com/net/controls/sanddock/screenshots.aspx Anything like this for Javascript? ...

Please recommend a layout gems for RoR development...

I am doing my application using RoR, which make me very annoying is the layout issue, I know the RoR have a really great MVC to isolate the UI out or the application logic, but it is still really annoying to work with CSS across different browsers. Is there any way to reduce that work load? thank you. ...

RoR - The views in one of my controllers are not displaying the application layout for no apparent reason

For one of my controllers, all of the views are displaying without the application layout. The application layout works fine for every other controller & view in the application. Here is a controller whose views display the application template (note: I've made all of the views empty to simplify matters) class PagesController < Applica...

[Android] Textview Selector when pressed

Hi all! I have a basic LinerLayout with a TextView and an ImageView I would like to do the same thing as with a button: when you click on this linear layout, the background changes. I can change the background when I focus the LinearLayout (with the trackball), but I can't when I click on it! And I don't know why. I tried a lot of thin...

android layoutopt: This tag and its children can be replaced by one <TextView/> and a compound drawable

When I run layoutopt on a specific xml file, I get this: This tag and its children can be replaced by one <TextView/> and a compound drawable What change should be done for the following xml code: <LinearLayout android:id="@+id/name_layout" android:layout_width="fill_parent" android:layout_height="wr...

DockLayoutPanel not fullscreen with GWT uiBinder

I want to display a fixed-size GUI (say, 700 x 400 pixels) at the top left of a browser window arbitrarily sized by the user. Within my 700x400, I want to lay out components via DockLayout. If possible, I'd like to do this purely declaratively, i.e. without code, using UIBinder XML. The docs and examples aren't enough for me to figure t...

Why are there extra spaces in my css page layout? (css/beginner)

I'm trying to create a page that has a header, subheader, leftnav, rightnav, main, and footer. But when I create the header and subheader, there is extra space that separates them. how do I get rid of it? `/*the main parts of the script*/ body{ background-color: #0080C0; font-family: Arial, Helvetica, Sans-serif; margin: 0p...

Why is the dialog size so small with this GWT DockLayoutPanel?

I've generated a new Web Application project using GWT 2.0.4. I replace the onModuleLoad() code with: public void onModuleLoad() { DockLayoutPanel dp = new DockLayoutPanel(Unit.EM); dp.addNorth(new Button("north search"), 4); dp.addSouth(new Button("Search"), 4); dp.addWest(new Button("west"), 4); dp.addEast(new But...

Vertical content align in Android EditText

Hi, I have a multi-line EditText: <EditText android:layout_gravity="center" android:id="@+id/txtMessage" android:layout_height="wrap_content" android:layout_below="@+id/lblMessage" android:layout_width="wrap_content" android:width="250dip" android:text="" android:maxLength="760" android:lines="4"></EditText> How do I vertically align ...

CSS layout messed up in firefox but not IE or Opera?!

Hi, For some reason Firefox is messing up the following websites layout, it works fine in IE and Opera though... http://87.194.141.33/bivakas/shop I have tried using firebug to find missing divs or anything like that but sadly without success. If anyone would be willing to take a couple minutes to have a look at why this may be happen...

Special Layout of Items in Wordpress Loop

I'm working on a wordpress theme, and I have a rather unique structure that I need to output the results from the Loop into. The output can be simplified to the following: <div class="row"> <div class="entry-1"> /* details from first iteration of The Loop */ </div> <div class="entry-2"> /* details from second iteration of ...

Magento - Help Specifying the Page Layout

Here’s what’s going on: I have a page content for a module rendering in my 3 column layout (which I believe is the default) and I want it to render in 1 column, but I don’t know how. The longer version: I’m using Unirgy’s Dropship Microsite and I’m trying to get the vendor landing page to render in the 1 column layout. My layout xml f...