Accesing elements in a matrix

Hi guys i am coding this Sales program.
The program asks the user for the sales of two weeks.
I want to access the elements of the matrix, so i can make comparations; for example: which sale is the highest sale,etc.
how can i solve this?
this is the code:
i declared the matrix :
float [][]two = new float[2][5];load the matrix
for(i=0; i<2;i++){
               System.out.print("Week " + ++b + ": ");
          for(j=0;j<5;j++)
            two[i][j]=Float.parseFloat(enter.readLine());
          }prints the matrix:
for(i=0;i<2;i++){
               System.out.print("Week " + ++b + " ");
               for(j=0;j<5;j++)
               System.out.print(two[i][j] + "           ");
          }this is the point of the code where i would like to access the elements do the comparations...
thanks for any response.

can get the highest sale of the total ten sales. i
have to compare one element/sale with the rest No you don't. You only have to compare each one with the highest so far.
i entered the sales with a "for", but how i can
concentrate i an indiviual sale element?You used a for loop to put the sales elements into the array? Well, use a for loop with the same structure, but instead of writing each element, you'll read it and compare it to a separate variable that holds the highest found so far. If the current one is higher, you store it's index or value in the variable.

Similar Messages

  • Random numbers to assign elements in a matrix

    Hi,
    I have a 4 x 4 matrix:
    0000
    0000
    0000
    0000
    for (int x = 0; x < 4; x++)
    for (int y = 0 ; y < 4; y++) {
    cell[x][y] = new Cell();
    cell[x][y].type = "0";
    and I need to have any 4 random cells to be R and any other 4 random cells to be B (with no overlap) so that it looks similar to this:
    0RR0
    0B00
    R0B0
    BB0R
    I have no clue how to do this, any code to get me started would be very much appriciated. Thank you so much!!!
    ~Britney

    Just call rndShuffle and supply init as parameter.
    Each time you do that you get a random sequence
    (shuffling) of the int's it contains,
    private static Random _rnd = new Random();
    public void rndShuffle(int[] path) {
    for (int i=path.length; i>0;) {
    int p = _rnd.nextInt(i--);
    int tmp = path[p];          
    path[p] = path;
    path[i] = tmp;
    Thanks for your help. How can I use this random shuffle method if I have an array of Strings instead?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

  • Using (implementing?) a gui element like the itemlist in the invoice-form

    Hi there,
    I have to add a list of models (Yamaha SR500,Yamaha XT,Honda XL) selected from a userdefined table to the item form (a matrix or whatever). This list is quite huge, so I have to search in this selectionbox like I can do in the items for an invoice.
    I also need to delete these elements from this matrix.
    So, it's sth. like the itemcollection of an invoice.
    Does anyone know how to get sth. like this ????????
    Some sample-code ???
    Quite new but willing
    Regards,
    Holger

    Hi Holger,
    My first advice is trying to piece your problems. And then ask about details, not an overall solution for your problems.
    Then, try to find what you need in the forum. Lots of code is posted.
    You could start looking at this two issues:
    Code for filliong a matrix from a recordset from Sebastian Danober.
    Check this other post with code for adding folder to an existing form.
    There are other post in the forum about how to create a form with a matrix, etc.
    Regards,
    Ibai Peñ

  • Matrix display of Radio button in JSF

    Hi,
    I need to show a matrix using JSF in the following way .
    . A B C
    X 1 2 3
    Y 4 5 6
    Z 7 8 9
    I'm having a table in database named "matrix" which is having 3 fields.
    field1 is a number,field2 and field 3 are foreign keys which references to
    table "A1" and table "X1".
    A1 is having elements A,B,and C
    X1 is having elements X,Y and Z
    Elements of table MATRIX are as follows
    table:MATRIX
    field2 field3 field1
    A X 1
    A Y 4
    A Z 7
    B X 2
    B Y 5
    B Z 8
    Now I need to display the field1 of "matrix" table according to X and Y direction values(Those values are dynamic ones).
    As h:datatable only supports X direction display, I thought I'll use any available GRID component for this kind of display.Unfortunately I couldnt get any faces component for this.
    Is there any ready-made component available? Or do I need to write my own component for this? If so, can you guys help me by providing any similar kind of component which I can change for my requirement?
    Please help me out a possible solution.

    The trick is more likely in formatting the data in a bean such that you can easily display it using a h:datatable or h:panelGrid. So in stead of wanting to display the data is it is in the database, perform some translations on it to make the transition to a web display easier.
    With a clever datastructure you can usually display most of anything with out of the box JSF components. if you cannot, you should investigate the extension frameworks (primefaces, richfaces, tomahawk, icefaces) to see if one of them has a component that fits more with your requirements.

  • Controls on the side of the Real Matrix what do they do?

    When you place a matrix on the Front Panel it comes with a set of two number controls on the left. Clicking on the help option only produces : "Real Matrix  No description available"
    I have the student's version.

    jbutera wrote:
    They are the row and column of the currently displayed item in the matrix.
    More precisely, they are the indices of the element shown in the upper left corner of the indicator display. This is only useful if your matrix is bigger than the displayed portion and you want to scroll.
    (I don't understand the talk about a matrix being in a cluster. It isn't unless you explicitely place it inside one. Even then, it would be resizeable to show more than one element. A matrix control/indicator behaves just like any 2D array. A matrix is a native data type since LabVIEW 8.0, I think.)
    Message Edited by altenbach on 01-24-2007 05:37 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    realMatrix.png ‏6 KB

  • Please help : How to print a matrix from the console...

    Hi..
    Please help:
    How to print a matrix on the console , but i want to take all the input from the console.. like...
    if the matrix is of size...
    mxn
    where
    m : row
    n : column
    and the all the elements of the matrix from the console it self... .
    Please help...

    Thanks...
    I am able to print the elements of the array but i am not able to assign those values to the array ....
    How to do that...
    I just did a little change in my code...
    import java.util.Scanner;
    public class CreatingAMatrix {
        public static void main(String[] args) {
         // TODO Auto-generated method stub
         System.out.print("Enter the number of rows: ");
         Scanner scanner1 = new Scanner(System.in);
         int m = scanner1.nextInt();
         System.out.print("Enter the number of coulmns:");
         Scanner scanner2 = new Scanner(System.in);
         int n = scanner2.nextInt();
         System.out.println("The size of the matrix is : " +m+" x "+n );
         int[][] a = new int[100][100];
         for(int i=0;i<=m;i++)
             for(int j =0; j <= n; j++)
              Scanner scanner3 = new Scanner(System.in);
              int o = scanner3.nextInt();
             System.out.println();
         for(int i=0;i<=m;i++)
             for(int j =0; j <= n; j++)
              System.out.print(a[i][j] + "\t");
             System.out.println();
    }I am getting an output as this
    output:
    Enter the number of rows: 2
    Enter the number of coulmns:1
    The size of the matrix is : 2 x 1
    1
    2
    1
    2
    3
    5
    0     0     
    0     0     
    0     0     
    how should i assig those input values to my array..
    Please help

  • Comparing data matrix

    We will display 10 by 10 matrix data to the user. The user will modify this data. Before hit the database,need to compare which are the cells should be treated as 'INSERT', which are 'UPDATE' and DELETE.
    In the data grid (10 by 10 matrix form), the cell value may be blank and all are numeric values.
    Please suggest the best way to handle this situation.
    Thanks in advance.

    You store each element in the matrix as a separate row? That doesn't seem like the best way to do it to me, but I'm no db expert.
    If you want to compare the old matrix to the new one, then just iterate over each element, and compare them. If it was blank, but now it's not, insert the new value, etc. Why do you need to use insert or delete? Couldn't you just use update for each one?

  • What component to display a matrix

    I want to create a grid with horizontal and vertical header, like Excel tables.
    All the cells of this grid are independant :
    seems to me that in a datagrid, the cells of a same row represent differents fields of a unique dataProvider element.
    but here I want that each cell represent an independant element.
    For example I would like to have a model that is a matrix, maybe an ArrayCollection of ArrayCollections, and each element of this matrix is displayed in the corresponding cell.
    What component would you use ?

    Here is the mxml part of my renderer (Labels are bound on var sound:XMLList that has only one XML element) :
    <s:Group>
         <s:states>
            <s:State id="noSound" name="noSound"/>
            <s:State id="soundRecording" name="soundRecording"/>
            <s:State id="soundRecorded" name="soundRecorded"/>
        </s:states>
        <s:Rect width="100%" height="100%" >
            <s:fill>
                <s:SolidColor id="background" color="0xFFFFFF"/>
            </s:fill>
            <s:stroke>
                <s:SolidColorStroke color="0x000000" weight="1"/>
            </s:stroke>
        </s:Rect>
        <s:Label x="5" y="5"
                 text="{sound.@id}"
                 includeInLayout="{isExpanded}" visible="{isExpanded}"/>
        <s:Label x="40" y="5"
                 includeIn="soundRecorded"
                 includeInLayout="{isExpanded}" visible="{isExpanded}"
                 text="{sound.@pathName}" toolTip="{sound.@pathName}"
                 width="100%" maxDisplayedLines="1"/>
        <s:TextArea id="descriTA" x="5" y="22"
                    includeInLayout="{isExpanded}" visible="{isExpanded}"
                    width="150" height="60"
                    change="{descriChange(descriTA.text)}" text="{sound.@descri}"/>
        <s:Image id="playImage" source="{SoundGrid.playIcon}"
                 mouseDown="{playImage.source = SoundGrid.playIconDown}"
                 mouseUp="{playImage.source = SoundGrid.playIcon}" mouseOut="{playImage.source = SoundGrid.playIcon}"
                 includeIn="soundRecorded"
                 includeInLayout="{isExpanded}" visible="{isExpanded}"
                 x="5" y="84"
                 toolTip="play"
                 click="playClicked()" />
        <s:Image id="recordImage" source="{SoundGrid.recordIcon}"
                 mouseDown="{recordImage.source = SoundGrid.recordIconDown}"
                 mouseUp="{recordImage.source = SoundGrid.recordIcon}" mouseOut="{recordImage.source = SoundGrid.recordIcon}"
                 includeIn="noSound"
                 includeInLayout="{isExpanded}" visible="{isExpanded}"
                 x="5" y="84"
                 toolTip="record"
                 click="recordClicked()"/>
        <s:Image id="stopImage" source="{SoundGrid.stopIcon}"
                 mouseDown="{stopImage.source = SoundGrid.stopIconDown}"
                 mouseUp="{stopImage.source = SoundGrid.stopIcon}" mouseOut="{stopImage.source = SoundGrid.stopIcon}"
                 includeIn="soundRecording"
                 includeInLayout="{isExpanded}" visible="{isExpanded}"
                 x="5" y="84"
                 toolTip="stop"
                 click="stopClicked()"/>
        <s:Image id="importImage" source="{SoundGrid.importIcon}"
                 mouseDown="{importImage.source = SoundGrid.importIconDown}"
                 mouseUp="{importImage.source = SoundGrid.importIcon}" mouseOut="{importImage.source = SoundGrid.importIcon}"
                 includeIn="noSound"
                 includeInLayout="{isExpanded}" visible="{isExpanded}"
                 x="50" y="84"
                 toolTip="import"
                 click="importClicked()"/>
    </s:Group>

  • Boolean matrix - Please Help

    Would anyone be able to help me out with code to create a boolean (1/0) for a GUI? Iam looking to use a matrix of up to 10 rows and columbs that would resize depending on an entered value. It would then be possible to use the mouse to click on each element within the matrix to make it a 1 or a 0. I would appretiate any help.

    yay !!!!
    import java.awt.*;
    import java.awt.event.*;
    import java.util.BitSet;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    * @author  Ian Schneider
    public class BooleanMatrix extends JPanel {
        BitSet bits;
        int w = 10;
        int h = 10;
        /** Creates a new instance of BooleanMatrix */
        public BooleanMatrix() {
            resizeMatrix(w,h);
            MouseUpdater updater = new MouseUpdater();
            addMouseListener(updater);
            addMouseMotionListener(updater);
        public boolean isSet(int x,int y) {
            return bits.get(idx(x,y));
        public void toggle(int x,int y) {
            bits.flip(idx(x,y));
        private int idx(int x,int y) {
            return x + y * w;
        public void resizeMatrix(int w,int h) {
            bits = new BitSet(w * h);
            this.w = w;
            this.h = h;
        public Dimension getPreferredSize() {
            return new Dimension(w * 10,h* 10);
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            for (int i = 0, ii = w; i < ii; i++) {
                for (int j = 0, jj = h; j < jj; j++) {
                    if (isSet(i,j))
                        g.setColor(Color.green);
                    else
                        g.setColor(Color.red);
                    g.fillOval(i * 10 + 2,  j * 10 + 2, 6,6);
        class MouseUpdater extends MouseInputAdapter {
            public void mouseClicked(MouseEvent me) {
                int x = me.getX() / 10;
                int y = me.getY() / 10;
                toggle(x,y);
                repaint();
            public void mouseDragged(MouseEvent me) {
                mouseClicked(me);
        public static final void main(String[] args) throws Exception {
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(f.EXIT_ON_CLOSE);
            f.getContentPane().add(new BooleanMatrix());
            f.pack();
            f.setLocationRelativeTo(null);
            f.show();
    }The rest of the exercises are left to the student :)

  • BSP  checkbox element (wrapping property) ???????

    Hi all,
    I want to use something like the wrapping property within the checkbox.
    Problem:
    The Checkbox has no wrapping property. Do you know something like wrapping for Checkboxes, because my text after the box is too long.
    Thanks && Kind Regards
    Kathrin
    Message was edited by: Kathrin Gossmann

    Hi Kathrin,
    I think you should post in the dedicated BSP Forum instead of the General ABAP.
    Maybe the solution to your problem is just to juxtapose 2 differents elements (using a matrix Layout or something similar)
    Best regards,
    Guillaume

  • Problems using Labview as ActiveX Server

    Hello,
           I have been having difficulty using Labview as an AcvtiveX server. I have reviewed all the postings on this subject and most are either pre Labview 8.2 and thus do not account for the changes made between 8.2 and 8.5 which broke the Activex server functions. I have looked at the recommendations for changing the to code to export (exported vi's in a DLL or Source distribution) and have tried these with no success. The closest example I have found was posted here http://forums.ni.com/ni/board/message?board.id=170&thread.id=283417 the example code they posted does ont work for me and still generates and error 3005.
          What i need is simple. I want to turn my applicaiton into a Vi server.. Expose a vi that acceses elements in the Vi server.. (controls, queues, Globals etc) that are in the Vi server context. I would then like to build a vi .. or dll that calls the 'exposed' vi in the vi server to pass data to or from the vi server. The V test.zip example file in the above indicated post is a pretty good example of this .. it just does not seem to work when i build it in 8.5. Are there any GOOD and 'current' examples of using labview as the ActiveX server (Compiled) and calling exposed vis from an external application Labivew, Visual Basic.. etc??  I am only interested in cases where Labview is the Sever. or both client and server.
           I have used a tool "ActiveXplorer" to examine the registered "exe" when the viserver is run. It always shows that there is no Type Library associated and the object is not creatable. There is a .tlb created by the project build however, where as the previous version 8.2.1 of Labview did not build that correctly. I have also tried this on 8.6 with similar error 3005 generated. sooooo what am i missing?
          Thanks
           Louis Ashford

    Mike,
           Thank you for your response to my question. The problem is that the example you site does not use the Labview vi as the Server. Excel is actually the vi server and the automation open is using and excel automation object. I am sure that Excel creates proper automation objects .. Labview however does not seem to. So while this example shows how labview can function as a client it is not an example of a compiled Labview Sever being accessed by a 'laview vi'. Possibly I am not looking at the vi that you are thinking of.
           The examples i am aware of:
                        "ActiveX Event Callback for Excel.vi... (Excel is server not Labview vi)
                        "ActiveX Event Callback for IE.vi (same Labview vi is client)
                        "Write Table to XL.vi" ( again excel is the server)
                        "3D Graph Properties - Torus.vi" (accesses an activex Control 'not' and Activex EXE)
                        "3D Lorenz Attractor Draw at Compeltion using 3D Curve.vi (Uses an activex  control not activex Exe server)
                        "3D Parametric Surface - Ribbon.vi (Uses an activex  control not activex Exe server)
                        "3D Surface Example - Fluctuating Sine Wave.vi (Uses an activex  control not activex Exe server)
                        "Excel Macro Example.vi (Uses excel as automation server..not Labview)
                        "FamilyTree.vi (uses MSComctlLib.ITreeView object not Labview as server)
                        "SlideShow.vi" (uses PowerPoint._Application not Laview as server)
          Most of the posts I have seen are for versions prior to  Labview version 8.2 (where the ActiveX server was broken) I have seen only a few posts that actually address the issue i am talking about. however thus far no real solution has been offered. I get the same results when compiling and testing this with 8.6..  as well. So have you tried this Mike? Possibly i am missing something very simple..
          The example i did find and gave the link to is a pretty simple one. This does not work on my machine at all. You can select the automation server that is registered with windows after running the server one time and this then breaks the client vi.. I have found by reselecting the GetViReference property node in the Client vi that it will the 'fix' the client vi as far as labview is concerened and it no longer shows and error. Now when you run the Client vi it will infact find the vi server and will launch it ok. However. The open automation object then hangs.. for quite some time then returns the error
    "Error -2146959355 occurred at Server execution failed
     in Client_reader.vi" Obviously the automation Exe (server) was seen because it was opened yet it did not return a valid reference so the subsequent property nodes in the client.vi will fail. Something is wrong with Labviews opening of or creating of automation objects..
              Thanks,,
                    Louis Ashford

  • Problem  in Combo Select

    Hi,
    In my form i have a combo. My requirement is, for example i load 5 data A,B,C,D,E in combo. First i select the 'A' and load the corresponding elements in the matrix, next i select 'B' and the corresponding elements of 'B'  was loaded in matrix now again i select 'A ' it should check 'A' is already selected and the corresponding elements are already displayed in matrix again the elements of 'A' should not be loaded in matrix. Plz tell how to check this.
    Thanks in Advance.
    Regards,
    Madhavi

    Hi Madhavi,
    here are the main parts of my little example.
    Some hints:
    The form is managed in a shared class (only one form at a time)
    The Matrix is loaded via a DataTable
    The Matrix is ReLoaded on every time the "ABCDE-Combo" is selected (except the value is already selected)
    In the example I load Businesspartners into matrix where their CardName starts with A or B or....or E (you must adapt it for your needs)
    SboCon.SboDI is the SAPbobsCOM.Company
    SboCon.SboUI is the SAPbouiCOM.Application
    Some global vars (initialize them somewhere when the form is opened!):
        Private Shared oForm As SAPbouiCOM.Form
        Private Shared oUds As SAPbouiCOM.UserDataSources
        Private Shared oDts As SAPbouiCOM.DataTables
        Private Shared oDtBp As SAPbouiCOM.DataTable
        Private Shared oMtxBp As SAPbouiCOM.Matrix
        Private Shared SelVals As System.Collections.ArrayList ' The values of the combo which already selected by the user
    Init the vars somewhere (where you normally do this) on form load:
                oForm = '...set it in your way
                oDts = oForm.DataSources.DataTables
                oUds = oForm.DataSources.UserDataSources
                oMtxBp = oForm.Items.Item("MTX_BP").Specific
               ' DataBinding and related:
                '### Data Tables
                oDts.Add("DT_BP")
                '### UserDataSources
                '# ABCDE Combo:
                oUds.Add("UDS_SELBP", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 100)
                oForm.Items.Item("CBX_SELBP").Specific.databind.setbound(True, "", "UDS_SELBP")
                '### Fill ABCDE Combo
                oForm.Items.Item("CBX_SELBP").DisplayDesc = True
                oCbx = oForm.Items.Item("CBX_SELBP").Specific
                oCbx.ValidValues.Add("0", "Please select...")
                For val As Integer = Asc("A") To Asc("E")
                    oCbx.ValidValues.Add(Chr(val), "Load " & Chr(val) & " BP")
                Next
                oUds.Item("UDS_SELBP").ValueEx = "0"
    The Combo Select Event:
                If pVal.ItemUID = "CBX_SELBP" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT Then
                    If Not pVal.BeforeAction Then
                        If oUds.Item("UDS_SELBP").ValueEx != "0" Then
                            Dim oCbx As SAPbouiCOM.ComboBox = oForm.Items.Item("CBX_SELBP").Specific
                            If SelVals.Contains(oUds.Item("UDS_SELBP").ValueEx) Then
                                ' BP already selected - do nothing
                                SboCon.SboUI.StatusBar.SetText("Already selected!")
                            Else
                                If Not SelVals.Contains(oUds.Item("UDS_SELBP").ValueEx) Then
                                    SelVals.Add(oUds.Item("UDS_SELBP").ValueEx)
                                End If
                                Dim query As String
                                oDtBp.Clear()
                                oMtxBp.Clear()
                                ' Build query for BPs where their names starts with the Combo-Value
                                query = "SELECT CardCode, CardName FROM OCRD WHERE "
                                For i As Int16 = 0 To SelVals.Count - 1
                                    If i > 0 Then query &= " OR "
                                    query &= "CardName LIKE '" & SelVals(i) & "%' "
                                Next
                                query &= " ORDER BY CardName"
                                ' load the MTX via DataTable (reloaded every time based on collected combo-values)
                                oDtBp.ExecuteQuery(query)
                                With oMtxBp.Columns
                                    ' Zeilen-Nr.
                                    .Item("0").DataBind.Bind("DT_BP", "CardCode")
                                    .Item("1").DataBind.Bind("DT_BP", "CardName")
                                End With
                                oMtxBp.LoadFromDataSource()
                                oMtxBp.AutoResizeColumns()
                                SboCon.SboUI.StatusBar.SetText(oUds.Item("UDS_SELBP").ValueEx & " added!", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                            End If
                            ' reset Combo to "Please select..."
                            oUds.Item("UDS_SELBP").ValueEx = 0
                        End If
                    End If
                End If
    ATTENTION: REPLACE the "!=" with less (<)/greater(>) symbol, they're not shown in ths forum
    I hope I didn't forget sth. - here it works..
    Cheers,
    Roland
    Edited by: Roland Toschek on Sep 25, 2008 11:54 AM

  • Project unable to save/release

    Dear anyone,
    As we have created a complete Project
    but at the time of release/save it shows the following error msg.
    1 WBS Element VEPL/C/MTRX_IT
    2 Enter an existing allocation structure
    3 WBS Element VEPL/C/MATRIX
    4 Enter an existing allocation structure
    and following is the tech msg. window
    Message no. KD013
    Diagnosis
    You have entered a settlement structure which does not exist.
    Procedure
    Enter an existing settlement structure or define a new one in the implementation guide.
    Pravin

    Hi,
    It seems there is problem in settlement allocation structure. So plese check your entries in Allocation structure ( T Code: OKO6 )
    If you dont want to use settlement , then please remove settlement profile from your Project Profile and try saving.
    Reward points if useful.
    Regards,
    Amit
    Edited by: Amit More on Apr 29, 2008 8:37 AM

  • Pro's and con's of creating an entire web page with Edge?

    I was just curious if anyone else had thought about this?
    along this line of thinking, I noticed that in hte preview versions of Edge, you added the "text" of the animation directly into the web page your animation was in.  Now, it is all kept outside of hte page.  Great for ease of uese but what about SEO?
    Again, just curious - I could see some VERY DIFFERENT web pages being created this way! :-)

    I should add that using the Accesibility element property (Title/Tab Index) will also assist in your SEO quest when used with the Publish as Static Html.
    Darrell

  • Select Option mis aligned

    Hello
    Can you please help me with aligning with the date range select option with the radio button group on the left and with the
    button on the right, the select option for "DATE" seems to be slightly mis-aligned.
    all the above UI elements are included in a 'Group' UI element which as matrix layout. I tried to play around with the 'vAlign'(top,baseline,middle,bottom) settingfor the different UI elements without any luck, this setting doesnt' seem to have any effect on the position of the select option.
    please let me know if you need any other info.
    Thanks

    Hi,
    Here is what you could try out,
    1. Create a transparent container and put the Date Select Option( View Container ) in that.
    2. Set vAlign for the radio buttons and Transparent container to Middle.
    3. Experiment with the vAlign a bit with various combinations till you get desired result.
        For e..g dont put any vAlign on Transparent container, but retain them for radio buttons.
    This is a tough one to solve, you can get it very close but not completely. This is because the caption for the select option control seems to be always set to vAlign as bottom.
    If this does not work.You may need to put the date selector on a different line or in another group with some gap between the Radiobutton group and the Date group.
    Hope this helps.
    Regards,
    Jon

Maybe you are looking for