Two JLabels sharing horizontal layout space

My visual design calls for having two labels on a horizontal row, each justified to its edge. The leftLabel is anchored to the left edge of the panel. The rightLabel is anchored to the right edge. As their respective text changes, they grow toward the center of the panel, but I want to make the most of the horizontal space so that even if one of them is long, if the other is short, all the text can be seen. I don't want to arbitrarily restrict the width of either one since I don't know what the text will be at any one time.
Say I have space for 10 chars across.
If leftLabel is "ABCDEFGHI" and rightLabel is "Z", I want to see "ABCDEFGHI Z", but if leftLabel is "ABCDEFGHIJKLM" and rightLabel is "XYZ", they both won't fit, and I want to see "ABCDEF... XYZ".
I've tried using GridBagLayout but I can't make it do what I want. The "GridBagLayout.columnWidths" constraints don't appear to have the desired "minimum size" effect.

Use BorderLayout and place the left one at BorderLayout.CENTER and the right one at BorderLayout.EAST.
The right one will be given as much space as it needs and the left one will take the rest.

Similar Messages

  • OverlayLayout for JPanel with two JLabels

    I can't seem to get this to work or find information (not one of my books mentions OverlayLayout, nor is there a tutorial using one). Here's the layout (pardon the pun) of my app:
    JFrame
         JMenuBar
         JToolBar
         JPanel
              JScrollPane
                   JViewport
                        JPanel (view)
                             JLabel (background image)
                             JLabel (foreground drawing)
         JLabel (status bar)The JPanel (view) has an OverlayLayout so that the two JLabels can sit ontop of one another (as specified in the API docs for OverlayLayout - which is the only info to be found on the darned thing - and little at that). The JLabel (foreground drawing) is setOpaque(false) to see the image in JLabel (image). I see the image but not the drawing. The retrieved size for the JLabel (drawing) is (0,0), but if the preferredSize is set for it, it restricts everything inside the JScrollPane (JViewport, JPanel (view), and JLabel (image)) to that value and viewport changes are not broadcast.
    This is turning out to be a lose, lose, lose, lose situation. No matter what I need to do, I cannot get two of anything on top of each other inside a JScrollPane. Any suggestions or working code are greatly appreciated.
    Robert Templeton

    Okay, here's how I did it. Couple points of interest: You MUST use setPreferredSize(image.width,image.height) and NOT setSize(image.width,image.height). The latter has no effect on the JPanel's size. Set the layout for the JPanel to GridLayout and add just that one JLabel. It will be stretched to fit the entire JPanel. Set JLabel to setOpaque(false) and the image is visible with the drawing on top. Yay!
    In the JFrame's JPanel
              // Set up the scroll pane.
              sglass = new ScrollableGlassLabel();
              scroller = new ScrollablePicture(8);
              scroller.add(sglass);
              pictureScrollPane = new JScrollPane();
              // Create our own viewport, instead of the default one
              viewport = new IViewport(this,pictureScrollPane,scroller);
              pictureScrollPane.setViewport(viewport);
              // Setup our view in the scroll pane's viewport
              pictureScrollPane.setPreferredSize(new Dimension(256, 256));
              pictureScrollPane.setViewportBorder(BorderFactory.createLineBorder(Color.black));
              // Put it in this panel.
              setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
              add(pictureScrollPane, 0);
              setBorder(BorderFactory.createEmptyBorder(20,20,20,20));ScrollablePicture:
    public class ScrollablePicture extends JPanel implements Scrollable {
         private int maxUnitIncrement = 1;
         Image image = null;
         public ScrollablePicture(int m) {
              super();
              maxUnitIncrement = m;
              setOpaque(false);
              setLayout(new GridLayout());
         public Dimension getPreferredScrollableViewportSize() {
              return getPreferredSize();
         public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) {
              //Get the current position.
              int currentPosition = 0;
              if (orientation == SwingConstants.HORIZONTAL)
                   currentPosition = visibleRect.x;
              else
                   currentPosition = visibleRect.y;
              //Return the number of pixels between currentPosition
              //and the nearest tick mark in the indicated direction.
              if (direction < 0) {
                   int newPosition = currentPosition - (currentPosition / maxUnitIncrement) * maxUnitIncrement;
                   return (newPosition == 0) ? maxUnitIncrement : newPosition;
              else {
                   return ((currentPosition / maxUnitIncrement) + 1) *     maxUnitIncrement - currentPosition;
         public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
              if (orientation == SwingConstants.HORIZONTAL)
                   return visibleRect.width - maxUnitIncrement;
              else
                   return visibleRect.height - maxUnitIncrement;
         public boolean getScrollableTracksViewportWidth()
              return false;
         public boolean getScrollableTracksViewportHeight()
              return false;
         public void setMaxUnitIncrement(int pixels)
              maxUnitIncrement = pixels;
         public void setImage(ImageIcon icon) {
              image = icon.getImage();
              setPreferredSize(new Dimension(icon.getIconWidth(),icon.getIconHeight()));
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              if(image != null)
                   g.drawImage(image, 0, 0, this);
    }ScrollableGlassLabel:
    public class ScrollableGlassLabel extends JLabel {
         private static Color[] colors = {
              Color.white, Color.black, Color.blue, Color.red, Color.yellow, Color.orange,
              Color.cyan, Color.pink, Color.magenta, Color.green };
         public ScrollableGlassLabel() {
              super();
              setOpaque(false);
         public void paintComponent(Graphics g) {
              int x, y, dx, dy;
              for(int i = 0; i < 32; i++) {
                   x = (int)(Math.random()*100);
                   y = (int)(Math.random()*100);
                   dx = (int)(Math.random()*100);
                   dy = (int)(Math.random()*100);
                   g.setColor(colors[(int)(Math.random()*10)]);
                   g.drawLine(x,y,x+dx,y+dy);
    }Right now, it just draws random lines, but it will be drawing 3D meshes soon.
    Thanks for you assistance, camickr. It at least got me thinking about alternatives.
    Robert Templeton

  • Problem with two JLabels on panel on mouseover

    Hello all,
    I have created a JPanel and I have placed two JLabels on it. I have assigned an icon to each of them. What I want to do is to change this icons to different ones (a "highlighted" version of them) for each one of my JLabels when the mouse is over them. My problem is that with the code i have right now, both change when I mouse over only the first one while nothing happens when i do the same for the 2nd one. As a second step I want to move this two labels along the y-axis. Again only jLabel1 can be moved and only for a few points (that seem to be on the bounds of its original bounds) and jLabel2 gets the exact same movement even though I'm not dragging over it. I hope it's clear what I want to do. So my question is: i) why both my jLabels get highlighted when I mouse over the one and ii) why i can move my jLabel only to a restricted area in the screen? (actually I know the reason for this but I still cannot understand why it's happening: when I drag my image, it doesn't update its location. So if I mouse over its initial location it gets highlighted which means that it thinks it's still there for some reason, although it's repainted in its new position..)
    package Viewer;
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    * @author  Laura
    public class Test2 extends javax.swing.JPanel {
        BufferedImage  img1=null;
        BufferedImage  img2=null;
        BufferedImage  img3=null;
        BufferedImage  img4=null;
        ImageIcon icon1=null;
        ImageIcon icon2=null;
        ImageIcon icon1_h=null;
        ImageIcon icon2_h=null;
        JLabel jLabel1;
        JLabel jLabel2;
        public Test2 (ColoringProperties parent) {
            try {
                img1=ImageIO.read((getClass().getResource("/arrow_right.gif")));
                icon1=new ImageIcon(img1);
                img2=ImageIO.read((getClass().getResource("/arrow_left.gif")));
                icon2=new ImageIcon(img2);
                img3=ImageIO.read((getClass().getResource("/arrow_right_highlighted.gif")));
                icon1_h=new ImageIcon(img3);
                img4=ImageIO.read((getClass().getResource("/arrow_left_highlighted.gif")));
                icon2_h=new ImageIcon(img4);
            } catch (IOException exc) {
            initComponents();
            jLabel1=new JLabel(icon1);
            jLabel2=new JLabel(icon2);
            this.add(jLabel1);
            this.add(jLabel2);
        public void PlaceIcons(){
            Dimension size = this.getSize();
            if (icon1 != null) {
                jLabel1.setBounds(0, 0,icon1.getIconWidth(),icon1.getIconHeight());
                jLabel1.setOpaque(true);
            } else {
                System.err.println("icon not found; using black square instead.");
                jLabel1.setBounds(0, 0, 30, 30);
                jLabel1.setOpaque(true);
                jLabel1.setBackground(Color.BLACK);
            if (icon2 != null) {
                jLabel2.setBounds(size.width - icon2.getIconWidth(), size.height - icon2.getIconHeight(),
                        icon2.getIconWidth(),icon2.getIconHeight());  
                jLabel2.setOpaque(true);
            } else {
                System.err.println("icon not found; using black square instead.");
                jLabel2.setBounds(0, 0, 30, 30);
                jLabel2.setOpaque(true);
                jLabel2.setBackground(Color.BLACK);
        private void initComponents() {
            addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseEntered(java.awt.event.MouseEvent evt) {
                    formMouseEntered(evt);
                public void mouseExited(java.awt.event.MouseEvent evt) {
                    formMouseExited(evt);
            addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
                public void mouseDragged(java.awt.event.MouseEvent evt) {
                    formMouseDragged(evt);
                public void mouseMoved(java.awt.event.MouseEvent evt) {
                    formMouseMoved(evt);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
            this.setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 54, Short.MAX_VALUE)
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 323, Short.MAX_VALUE)
        private void formMouseExited(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
            this.jLabel1.setIcon(this.icon1);
            this.jLabel2.setIcon(this.icon2);
            this.repaint();
        private void formMouseMoved(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
            Point p=new Point(evt.getPoint());
            if (this.jLabel1.contains(p)){
                this.jLabel1.setIcon(this.icon1_h);
                this.repaint();
            else {
                this.jLabel1.setIcon(this.icon1);
                this.repaint();
            if (this.jLabel2.contains(p)){
                this.jLabel2.setIcon(this.icon2_h);
                this.repaint();
            else{
                this.jLabel2.setIcon(this.icon2);
                this.repaint();
        private void formMouseDragged(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
            Point p=new Point(evt.getPoint());
            if (this.jLabel1.contains(p)){
                Point init=this.jLabel1.getLocation();
                this.jLabel1.setLocation(init.x,p.y);
                this.repaint();
            if (this.jLabel2.contains(p)){
                Point init=this.jLabel2.getLocation();
                this.jLabel2.setLocation(init.x,p.y);
                this.repaint();
    }Any help would be appreciated. I'm not an experienced programmer and I'm using NetBeans IDE 6.0.1 (if that's of any help)
    Thank you,
    Laura

    Thanx for the replies!
    I did what Rodney suggested and indeed the Labels now move independently. However, there is a lot of flickering and a ghost label appears that moves respectively with the original one i'm dragging (for both of them). Any ideas why is that?
    Thank you again,
    Laura
    package Viewer;
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    * @author  Laura
    public class Test2 extends javax.swing.JPanel {
        BufferedImage  img1=null;
        BufferedImage  img2=null;
        BufferedImage  img3=null;
        BufferedImage  img4=null;
        ImageIcon icon1=null;
        ImageIcon icon2=null;
        ImageIcon icon1_h=null;
        ImageIcon icon2_h=null;
        public Test2(ColoringProperties parent) {
            try {
                img1=ImageIO.read((getClass().getResource("/arrow_right.gif")));
                icon1=new ImageIcon(img1);
                img2=ImageIO.read((getClass().getResource("/arrow_left.gif")));
                icon2=new ImageIcon(img2);
                img3=ImageIO.read((getClass().getResource("/arrow_right_highlighted.gif")));
                icon1_h=new ImageIcon(img3);
                img4=ImageIO.read((getClass().getResource("/arrow_left_highlighted.gif")));
                icon2_h=new ImageIcon(img4);
            } catch (IOException exc) {
            initComponents();       
        public void PlaceArrows(){
            Dimension size = this.getSize();
            if (icon1 != null) {
                jLabel1.setBounds(0, 0,icon1.getIconWidth(),icon1.getIconHeight());
                jLabel1.setOpaque(true);
            } else {
                System.err.println("icon not found; using black square instead.");
                jLabel1.setBounds(0, 0, 30, 30);
                jLabel1.setOpaque(true);
                jLabel1.setBackground(Color.BLACK);
            if (icon2 != null) {
                jLabel2.setBounds(size.width - icon2.getIconWidth(), size.height - icon2.getIconHeight(),
                        icon2.getIconWidth(),icon2.getIconHeight());  
                jLabel2.setOpaque(true);
            } else {
                System.err.println("icon not found; using black square instead.");
                jLabel2.setBounds(0, 0, 30, 30);
                jLabel2.setOpaque(true);
                jLabel2.setBackground(Color.BLACK);
        private void initComponents() {
            jLabel1 = new JLabel(icon1);
            jLabel2 = new JLabel(icon2);
            addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseEntered(java.awt.event.MouseEvent evt) {
                    formMouseEntered(evt);
                public void mouseExited(java.awt.event.MouseEvent evt) {
                    formMouseExited(evt);
            addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
                public void mouseDragged(java.awt.event.MouseEvent evt) {
                    formMouseDragged(evt);
                public void mouseMoved(java.awt.event.MouseEvent evt) {
                    formMouseMoved(evt);
            jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseEntered(java.awt.event.MouseEvent evt) {
                    jLabel1MouseEntered(evt);
                public void mouseExited(java.awt.event.MouseEvent evt) {
                    jLabel1MouseExited(evt);
            jLabel1.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
                public void mouseDragged(java.awt.event.MouseEvent evt) {
                    jLabel1MouseDragged(evt);
            jLabel2.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseEntered(java.awt.event.MouseEvent evt) {
                    jLabel2MouseEntered(evt);
                public void mouseExited(java.awt.event.MouseEvent evt) {
                    jLabel2MouseExited(evt);
            jLabel2.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
                public void mouseDragged(java.awt.event.MouseEvent evt) {
                    jLabel2MouseDragged(evt);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
            this.setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(41, Short.MAX_VALUE))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(42, Short.MAX_VALUE)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 295, Short.MAX_VALUE)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
        private void formMouseEntered(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:       
        private void formMouseExited(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
        private void formMouseMoved(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
        private void formMouseDragged(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
        private void jLabel1MouseEntered(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
            this.jLabel1.setIcon(this.icon1_h);
            this.jLabel1.revalidate();
            this.repaint();
        private void jLabel1MouseExited(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
            this.jLabel1.setIcon(this.icon1);
            this.jLabel1.revalidate();
            this.repaint();
        private void jLabel1MouseDragged(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
            Point w=new Point(evt.getPoint());
            if (w.y>0 && w.y<this.getHeight()){
                Point init=this.jLabel1.getLocation();
                this.jLabel1.setIcon(this.icon1_h);
                this.jLabel1.setLocation(init.x,w.y);
                this.jLabel1.revalidate();
                this.jLabel1.repaint();
        private void jLabel2MouseEntered(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
            this.jLabel2.setIcon(this.icon2_h);
        private void jLabel2MouseExited(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
            this.jLabel2.setIcon(this.icon2);
        private void jLabel2MouseDragged(java.awt.event.MouseEvent evt) {
            // TODO add your handling code here:
            Point p=new Point(evt.getPoint());
            if (p.y>0 && p.y<this.getHeight()){
                Point init=this.jLabel2.getLocation();
                this.jLabel2.setIcon(this.icon2_h);
                this.jLabel2.setLocation((int)init.getX(),(int)p.getY());
        // Variables declaration - do not modify
        public javax.swing.JLabel jLabel1;
        public javax.swing.JLabel jLabel2;
        // End of variables declaration
    }

  • UIX: horizontal layout for messageRadioGroup

    Hello,
    We use UIX 2.1.7.
    In our application we have a few UIX xml pages that create a (dynamic) list of screen items based on database
    content. These screen items can be text items, date items, choise fields, checkboxes or radio groups, depending on what got queried from the database. In the UIX xml, we have implemented this by a table iterating over a DataObjectList with fields, and a switcher bean to render the corresponding UI widget for each field in the list.
    This all works very well, there is only one layout shortcoming we can't seem to fix. When rendering a field as a radio group, we use the messageRadioGroup tag, and use the childdata attribute to create the individial radio buttons. Unfortunately, these buttons are stacked vertically, while we would really like to have them horizontally because of the huge amount of screen space this would save (we sometimes have dozens of radio groups, all with 4 radio buttons. There does not seem to be a way to do that using the messageRadioGroup.
    I am aware of the possibility using the radioButton tag, but due to some issues with our (already very complex, conditional and nested) databinding and the code responsible for handling the screen when the user presses 'save', we REALLY prefer having just a single UI widget in the UIX page for a radio group, just as for all the other widget types as described above.
    Is there anything we overlooked in the messageRadioGroup tag, and if not will it be possible to include this functionality in a future release?
    Thanks!

    Peter -
    We would much prefer to avoid introducing new layout behaviors into the radioGroup - and encourage clients that require different types of layouts to use the radioButton component. In your case, it sounds like you might benefit from putting your "horizontal" radioGroup layout into a UIX template, so that it can be easily accessed from your uiXML pages. For example, here is a sample template which implements a horizontal layout for radio buttons:
    <?xml version="1.0" encoding="UTF-8"?>
    <templateDefinition xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    targetNamespace="http://www.example.org/demo/templates"
    localName="horizontalMessageRadioGroup">
    <!-- define the template's type information -->
    <type base="ui:inlineMessage">
    <attribute name="childData" javaType="oracle.cabo.ui.data.DataObjectList"/>
    </type>
    <!-- define the content of the page -->
    <content>
    <inlineMessage data:prompt="prompt@ui:rootAttr">
    <contents>
    <flowLayout>
    <contents data:childData="childData@ui:rootAttr">
    <radioButton data:name="name@ui:rootAttr"
    data:text="txt"
    data:selected="selected"
    data:value="val"/>
    </contents>
    </flowLayout>
    </contents>
    </inlineMessage>
    </content>
    </templateDefinition>
    And here is a sample UIX page which uses both a standard messageRadioGroup as well as a horizontalMessageRadioGroup to render the same set of inline data:
    <?xml version="1.0" encoding="UTF-8"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:demoTmps="http://www.example.org/demo/templates">
    <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="horizontalMessageRadioGroup.uit"/>
    </templates>
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <data name="RGData">
    <inline>
    <btn txt="Longer name" val="Val0"/>
    <btn txt="Name2" val="Val1" selected="true"/>
    <btn txt="Name3" val="Val2"/>
    </inline>
    </data>
    </provider>
    <contents>
    <labeledFieldLayout>
    <contents>
    <!-- First, a vertical group of radio buttons -->
    <messageRadioGroup name="group1"
    data:text="txt"
    data:value="val"
    selectedValue="Val2"
    type="radio"
    prompt="Verical Group"
    data:childData="btn@RGData"/>
    <!-- Now, a horizontal group -->
    <demoTmps:horizontalMessageRadioGroup name="group2"
    prompt="Horizontal Group"
    data:childData="btn@RGData"/>
    </contents>
    </labeledFieldLayout>
    </contents>
    </dataScope>
    </content>
    </page>
    Please give this solution a try and let us know the results.
    Andy

  • How do I stop two iphones sharing contacts?

    How can I stop two iphones sharing contacts and apps?

    Stop syncing them with the same address book or cloud service.

  • Horizontal layout for images or video

    Hi, Sir
    May Check with you how coldfusion can layout for images or
    video in horizontal way? the default is vertical when we use
    cfoutput. what founction and tag support, or we had to design a
    horizontal looper for the purpose?
    The example web page horizontal layout is the youtube.com,
    like URL:
    http://youtube.com/browse?s=mp,
    All the video were layout in horizontal.
    Thanks and Regards
    David

    See
    this
    link
    Ken

  • How to switch display of label for SelectOneRadio in horizontal layout

    Using selectOneRadio with the horizontal layout and it displays the label and then the radio buttons to the right of the label.
    LABEL RADIO1 RADIO2 RADIO 3
    Is there a way to display the radio buttons to the LEFT of the label instead?
    RADIO1 RADIO2 RADIO3 LABEL
    Another question .... instead of radio buttons, we'd like to use check boxes instead, with the same functionality as the selectOneRadio ... just checkboxes instead of radio buttons.
    Can't find anything like selectOneCheckbox though, just a SelectBooleanCheckbox or SelectManyCheckbox, which won't work.
    Thanks for any help.

    Hi,
    you can use combination of selectOneRadio and outputLabel so in selectOneRadio leave label blank and put this text in outputLabel component, which you store to the right of selectOneRadio
            <af:panelGroupLayout id="pgl1" layout="horizontal">
              <af:selectOneRadio id="sor1" layout="horizontal">
                <af:selectItem label="label1" value="1" id="si1"/>
                <af:selectItem label="label2" value="2" id="si2"/>
              </af:selectOneRadio>
              <af:outputLabel value="outputLabel1" id="ol1"/>
            </af:panelGroupLayout>regards,
    Branislav

  • N8: no horizontal layout for calls?

    I have a horizontal mounting for my N8 in the car. I like OVI maps much more in horizontal layout. But incoming calls seems to be displayed always in vertikal layout !?
    Same for the dialing field if you click on "Make call" on the main window. There seems to be no horizonzal version.
    Greetings,
    HaPe
    N8-00 with orange case, loving it
    If my post was helpfull, click on the white star and give me an KuDo ;-)

    Yes it is very hard to turn it around if it is mounted in a car kit in landscape view to be able to use OVI maps in landscape, which is great and much more better in landscape.
    And it is a big lack that it is not possible to see the caller number and picture in  a correct way. 
    And it is quite impossible to dial a number because the digit buttons are arranged in portrait mode.
    (Nokia N8 is used with bluetooth car kit)
    N8-00 with orange case, loving it
    If my post was helpfull, click on the white star and give me an KuDo ;-)

  • Running out of layout space

    HI I am building my live perfomance concert hit a large problem (entirely of  my own making )
    I was aiming to build a static layout and channel strip setup and only change the patch per song.
    Typical setup would be 4 x ESX 24 + 2 x ES2 + 2 x Reaktor + 2 x Ultrabeat
    I have a keyboard in the layout for each midi channel, and I can easliy move between sounds / channel strips by selecting a different midi channel from my controller keyboard. Combined with my fully modelled BCR-2000 I have essentially run out of layout space.
    I gather I need to use one keyboard in the layout and use multiple patches per song via send program changes. The midi channel remains static however the channel strip assignment changes.
    Can someone confirm this solution before I change my entire concert file?
    Regards
    Baz
    Message was edited by: sonicbaz

    Hi
    sonicbaz wrote:
    I have a keyboard in the layout for each midi channel, and I can easliy move between sounds / channel strips by selecting a different midi channel from my controller keyboard. Combined with my fully modelled BCR-2000 I have essentially run out of layout space.
    You could either re-size the keyboard controls, or make use of the smaller MIDI Activity control instead of Keyboard objects to save space.
    sonicbaz wrote:
    I gather I need to use one keyboard in the layout and use multiple patches per song via send program changes. The midi channel remains static however the channel strip assignment changes.
    This would be the more standard way of working, but you'd need to be able to send MS MIDI Program Change messages from your controller, or map buttons to Next/Previous Patch.
    You could make use of Alias Channel Strips to save loading multiple instances of the commonly used Instrument Channels.
    You could also make use of "Multi-Timbral" strips so that you can switch 'sounds' by MIDI channel as you do now, but with only 1 keyboard object.
    CCT

  • Error=(510), Description=(This user's tenant is not enabled for shared sip address space.)

    Trying to migrate from On-Premise Lync 2013 to Lync Online.
    I have Directory Synchronisation, ADFS/SSO.
    The user can login for sharepoint, yammer, exchange, etc.
    While trying to migrate the Lync user from On-Premise to Online, I get this error:
    PS C:\Users\admintboucher> Move-CsUser -Identity [email protected] -Target sipfed.online.lync.com -Credential $cred -HostedMigrationOverrideUrl https
    ://admin1a.online.lync.com/HostedMigration/hostedmigrationservice.svc/root
    WARNING: Moving a user from the current version to an earlier version (or to a service version) can cause data loss.
    Confirm
    Move-CsUser
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
    Move-CsUser : Server is not ready. Please try again later.
    At line:1 char:1
    + Move-CsUser -Identity [email protected] -Target sipfed.online.lync.com -Credent ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (CN=Marc-Olivier...DC=domain,DC=com:OCSADUser) [Move-CsUser], MoveUserException
        + FullyQualifiedErrorId : MoveError,Microsoft.Rtc.Management.AD.Cmdlets.MoveOcsUserCmdlet
    I did:
    Set-CsAccessEdgeConfiguration -UseDnsSrvRouting -AllowOutsideUsers 1 -AllowFederatedUsers 1
    -EnablePartnerDiscovery 1
    Set-CsHostingProvider -Identity LyncOnline -EnabledSharedAddressSpace $true -HostsOCSUsers
    $true -VerificationLevel UseSourceVerification -AutodiscoverUrlhttps://webdir.online.lync.com/Autodiscover/AutodiscoverService.svc/root
    Set-CsTenantFederationConfiguration -SharedSipAddressSpace $true
    http://support.microsoft.com/kb/2829500 didn't help...
    Can't find what's wrong. I have a SR with Microsoft, and they are still searching...

    Hi,
    It can be the issue of a replication delay on the Lync online servers which cause the delay in enabling shared sip address space.
    Please make sure the replication update to the latest status for Lync online Servers and then test again.
    Please also try to open SDE request, enable OPS for the tenant for shared SIP address space.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • I want to buy a book I created in iPhoto.  I want to leave blank some spaces in the photo layout, but the app won't let me "buy the book" unless all the layout spaces are filled.

    I want to buy a book I created in iPhoto.  I want to leave blank some spaces in the photo layout, but the app won't let me "buy the book" unless all the layout spaces are filled.

    That is correct - you must have a photo in every photo frame to order
    LN

  • Vertical & Horizontal layouts

    Hi All,
    Need some advice if possible? We have been give the task to covert a printed magazine into a digital iPad format. The client has sent us only the PDF's that are sent to the printers! we have cut and added them into a Vertical layout but we need to add them to a Horizontal layout - which we have done - problem is we are seeing double the horizontal spreads...
    We are new to DPS and folio builder and can’t seem to figure this out.
    This is how we see it - that is if its possible at all?
    Page 1_v   (veritcal)
    Page 1 & 2 (stitched together) for _h  (horizontal) mode
    So when they turn the iPad they can see it in landscape view... simple!
    Problem is we have when we come to “Page 2_v” we need to have “Page 1 & 2_h” again? so when the user reads it in Horizontal mode it will show “Page 1 & 2 twice” we cant have a blank missing page as the folio will say error.
    Hope that make sense...

    This is the workflow... but this is at the end off all the Horizontal pages and we still need to add verticals only after this..
    1) Set up duel layout v and h
    2) design... (this is the last horizontal page) we still have to add vertical pages only)
    3) Add in articles both V and H (as last H page)
    4) now we need to add only the vertical pages going forward..
    We add the name in  - turn off landscape layout as we have done all the H ones and wehen uploaded we get the below error...

  • Bug in Studio 10.3 - Automatic Handler disappears in horizontal layout

    In process model, clicking on "Layout" button causes "Automatic Handler" swimlane to disappear.
    I've observed this only when using horizontal layout.
    1. Create process
    2. add automatic activity to automaic handler swimlane
    3. add new swimlane "clerk"
    4. Create global ctearion into swimlane clerk
    5. Click "Layout" button
    6. Done: all stuff is now in swimlane clerk, which is the only swimlane left.
    Looks like a bug to me.

    KelVarnson wrote:
    Darryl.Burke wrote:
    Nothing wrong, unless the OP has a custom class named GridBagLayout in the same package, one that either isn't a LayoutManager or doesn't have a default constructor.My guess as well.
    Note that I don't expect that to be the case, it's just a possibility that comes to mind.I think this very likely IS the case, since the error goes on to say:
    2 quick fixes available:
    - Cast argument 1 to 'LayoutManager'
    - Let 'GridBagLayout' implement 'LayoutManager'
    his screenshot shows a "GridBagLayout.java" open in Eclipse, so he probably has created one in his project indeed.
    Kel, either rename that class you created or (worse option) explicitly import the correct one from java.awt.<whatever>.

  • Book project (80 page) after two days lost the layout! Help

    Working on a project for two days then the layout just gone. The collection is still there. Is there anyway to get it back?
    If not its a bummer! Maybe you can build in a backup function. 10 hours i will never get back!

    I just went in again to replicate the issue and discovered something else.
    I started by creating a new collection as above and used the 1 photo per page preset.
    Auto Layout placed the photos in the new pages
    ** select one image and Right Click to remove photo.>>> all photos disappeared, but blank pages remained.
    (This behaviour doesn't replicate if the cell padding has not been altered. If using the vanilla Blurb preset, this does not occur.)
    Now I manually added photo #1 to page 1 and all the photos came back with the exception of the one I had removed.
    *** 2nd Test
    -Went to Library Module, selected Collections and created a new collection
    -Selected images and moved them to new collection manually (grab and drop into new collection)
    -Went to new collection
    -Selected Book Module
    -Previous book displayed. Selected Clear Book.
    -Now I have a blank cover and a blank page.
    -Selected page 1
    -Modified cell padding (a) link all = 100 then (b) unlink all, bottom = 165
    -grab and drop one image to page 1
    -Copy (Cntrl-Shift-C) and Paste (Cntrl-Shift-V) new blank pages
    -Select Auto Layout and all images from filmstrip move correctly to blank pages.
    -Right Click one image and remove photo>>> all images disappear but blank pages remain
    -Replace image #1 on page #1 and all but the removed photo reappear.
    -Save book inside the collection that produced it.
    -Go to different book inside a different collection
    -Come back to test book and all pages show the same image. Can't fix.
    I think that captures all my steps. I'm really interested in seeing this module work properly, it's a very welcome feature.

  • Layout space issues with IE7

    Hi Everyone,
    I have a website that I created that is a two column fixed
    width with header and footer. When you look at the site in Firefox
    the spacing between the sidebar on the left and the main content is
    correct but when you view the same site in IE7 there is a huge
    amount of white space between the sidebar and the main content. I
    cannot figure out how to get rid of that so that it view as it does
    in Firefox. You can view the site at www.ebcardiac.com.
    Any help will be great.
    Thanks,
    Robert

    I am hoping that someone can give me some idea of what I need
    to adjust so that the layout in Internet Explorer will display
    properly. - Robert

Maybe you are looking for

  • I need help !! ... keyboard cures for kernel panics(??) and other problems of unknown nature

    OK, let's just start with I'm an idiot !! I know very little and more than enough to be dangerous !! The machine is a G4 QS 800 DP running Tiger 10.4.11, it had been working well until about 10 days / 2 weeks ago when problems started, about the same

  • IPhone 3G WiFi Dropping, Signal Stength Still High, Extreme and DHCP?

    I've been having problems with my iPhone 3G WiFi (I had the same with my First Gen iPhone too), where it lost the ability to connect to the Internet, although the WiFi connection was still active and showing full signal. A reset of the Extreme and a

  • Features in version 12 not in version 13

    Adobe isn't forthcoming about the features that they have deleted in version 13.  So far I've discovered a dumbed-down version of Create-Slide Show, text panel is gone from Effects, & Color Variations is gone from Adjust Color.  Some people may not c

  • Problem in tablespace

    hi friends, AM not a professional dba ,so need an help i have doubt of creating tablespace in oracle database, i want to create a tablespace for particular user my doubt is wheather i want to create that in specified user or from dba users?

  • Database Triggers - Autonomous Transaction Issue

    Hi , I have a EMP table. I wrote a AFTER ROWLEVEL Database Trigger for EMP table. While Updating value in EMP table , my trigger is firing. Issue: My requirement is , I want to find the Count(1) in EMP table for the updated record.It is not including