Two columns list

Hello!
I'm trying to make a wordtraining program for my homework. I'm therfore searching for a componet wich I can have two columns, one for the swedish words, and one for the english. In VB.NET is it a componet called ListView, but I can't find any like it in Java.
/Get

JTable looks great for the problem. But it looks
difficult to use. Well, thanks for the answer!Is the JTable component difficult to use? Yes, if you do more complex tasks that require custom editors and renderers. It is not too difficult to use for simple tasks like displaying columns of texts/items. I suggest you look into the Swing tutorial, JTable section. You'll get some sample code that may help you.
Bon chance

Similar Messages

  • PHP MySQL 2 column list

    I am building at site in dreamweaver using PHP/MySQL.
    I have a page that will list a bunch of categories. I would
    like to have them in a two column list instead of one. It will look
    better as far as the design goes. How can I do this. I would like
    each column to be an equal amount as possible

    On 13 Mar 2007 in macromedia.dreamweaver.appdev,
    newhorizonhosting.com
    wrote:
    > I have a page that will list a bunch of categories. I
    would like to
    > have them in a two column list instead of one. It will
    look better
    > as far as the design goes. How can I do this. I would
    like each
    > column to be an equal amount as possible
    Have a look at Tom Muck's Horizontal Looper extension:
    http://www.tom-muck.com/extensions/help/HorizontalLooper/
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • How can we bind Two Static Lists to a single Column.

    Hi All,
    My requirement is
    1) I have two different Static List's.
    2) These two static list's are saved to the same column in the database table.
    3) In the UI, I will be having different dropdown's. And each dropdown is bound to this column. Say if I have two dropdowns, in the first dropdown it has to show first static list values and in the second dropdown it hase to show second static list values.
    4) I can change the dropdowns and save(to the same column).
    I am totally stuck here. How can we implement this????

    Hi,
    Thank you very much for your response. The link was not useful for me.
    The actual scenario here is,
    I have a table with columns say (Id, detailId,Type, Unit, Value). here id & detailId acts as composite primary key and it looks similar to this.
    Id     DetailId     Type     Unit     Value
    111     1111     A     Min     12
    111     1112     B     KBytes     13
    111     1113     C     MBytes     14
    So for this I had created two static list View objects (Say ST1 & ST2). The possible values for ST1 are {'sec','min','hours','days'} and the possible values for ST2 are {'Bytes','KBytes','MBytes','GBytes'}.
    And from above table you can observe that these two view objects are mapped to same attribute(Unit) of the table.
    So what I am trying here is, as my UI page contains, 3 different dropdowns(say af:SelectOneChoice) along with 3 textboxes. one textbox and one dropdown in the same line.
    These 3 are related to above 3 types, dropdowns should contain the Units and textboxes should contain the values, i.e based on the type we have to display that.
    I tried so many combinations, but I am not able to succeed in getting this. So your help is highly needed here.
    Please let me know if you are not understood any of the above conditions.
    Thanks & Regards,
    Ravi.

  • How can I get two column selection list in my html form

    I required to have two column selection list in my jsp page to show name and description of a product. How can i achieve this functionality or is there any other alternative to do so.

    If i understand correctly: you can't actually create two columns in a list because it can only hold one value. The only way to achieve what you want is by concatenating the two values you want to display and put this as the value of the listbox.

  • Create Site Column and add it to two different list as dependent lookup column

    I want to create two lookup lists that will have one common column. The common column values will vary depending on the list.
    For ex: List A holds Countries (USA) and their Currency code (USD). List B holds States (New York) and their code (NY). The lists are completely independent of each other. I would like to create a common site column named "Code" of type
    Text and use it across these two lists. Is it possible?
    My solution so far -
    a. created the site column (programmatically) which is pretty straight forward.
    b. created list definition with two fields (Title and Code).
    c. created list instance for Country list. Added data rows in the elements.xml. But not sure how to add Code field as dependent lookup.
    If I remove the code field from the elements.xml, the solution deploys successfully creating the Country list with just the Title field. But I need both the fields. Any help is appreciated.
    Here is a look at the elements.xml with data rows for Country list instance
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <ListInstance Title="List Instance" OnQuickLaunch="TRUE" TemplateType="10001" Url="Lists/CountryList" Description="Country Values">
    <Data>
    <Rows>
    <Row>
    <Field Name="Title">USA</Field>
    <Field Name="Code">USD</Field>
    </Row>
    <Row>
    <Field Name="Title">Japan</Field>
    <Field Name="Code">Yen</Field>
    </Row>
    <Row>
    <Field Name="Title">Australia</Field>
    <Field Name="Code">AUD</Field>
    </Row>
    </Rows>
    </Data>
    </ListInstance>
    </Elements>

    Hi,
    According to your post, my understanding is that you want to add lookup field to the list in elements.xml.
    I recoment you to create lookup column as site column, then bind the lookup column to the contnet type, and then use the contnet type in the list.
    For more information, you can refer to:
    http://spcodes.blogspot.com/2013/02/create-custom-content-type-with-lookup.html
    http://social.msdn.microsoft.com/Forums/office/en-US/d5ec08d5-cfa7-4bbb-9459-78d04674ee59/add-a-lookup-column-in-the-schemaxml?forum=sharepointcustomizationlegacy
    http://www.justanothertechnologyguy.com/2013/01/how-to-create-and-connect-lookup-fields.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Calendar --  How to view "to do list" in two columns per day in Month view?

    In OSX 10.6.8, my old Calendar would automatically go into two column view to show all my "to do" items, but 10.8.5 Calendar isn't doing this when I put over 12-14 items and just says "2 more..." instead of going to two columns and truncating them.  -- Is there a way to turn this 2x column view on?  or another way to show all of my to items?
    Any ideas/help appreciated.  TIA

    the "Employee Directory" shows you the photos by default. Should not be that hard to add an url via personalizations that points to that directory.
    good luck.

  • Qualified list item based on two columns

    - fact table inludes following columns
    key1
    key2
    measure1
    In segment designer, update counts:
    the query must counts two columns "key1 and key2" that key1 and key2 together must be distinct.

    Here you go:
    SQL> WITH bill AS
      2  (
      3          SELECT 1000 AS billno, 101 AS advertiserid, 102 AS agencyid, 5000 AS total_value FROM DUAL UNION ALL
      4          SELECT 1001, 101, 103, 5000 FROM DUAL UNION ALL
      5          SELECT 1002, 101, 102, 1000 FROM DUAL
      6  ), account AS
      7  (
      8          SELECT 101 AS account1_id, 102 AS account2_id, 'John' AS name, 50 AS empid FROM DUAL UNION ALL
      9          SELECT 101, 103, 'James', 40 FROM DUAL UNION ALL
    10          SELECT 101, 105, 'Joe', 60 FROM DUAL
    11  )
    12  /* End Sample Data */
    13  SELECT a.name
    14       , a.empid
    15       , a.account1_id
    16       , a.account2_id
    17       , SUM(b.total_value)
    18  FROM   account a
    19  JOIN   bill    b ON  a.account1_id = b.advertiserid
    20                   AND a.account2_id = b.agencyid
    21  GROUP BY a.name
    22         , a.empid
    23         , a.account1_id
    24         , a.account2_id
    25  ;
    NAME                 EMPID          ACCOUNT1_ID          ACCOUNT2_ID   SUM(B.TOTAL_VALUE)
    John                    50                  101                  102                 6000
    James                   40                  101                  103                 5000

  • How do I compare two columns of data in Numbers to find the unique results?

    Hello all,
    I'm looking for a way to compare the data from two columns so I can find the unique results and display that data in a third column. To be specific, here's what I'm doing.
    Column A is a list of email addresses for people I have already written. Column B is a list of email addresses for people I would like to contact. I am not sure if there are email address from Column A in Column B, but there may be and if there are, I must find out so that I don't send a second email to these recipients. How can I have Numbers look at both columns and tell me which email addresses in Column B are not in Column A?
    Thanks for the help!!!

    gfmp123,
    Here's an alternate use of MATCH to find duplicates. I hope you find one of the two solutions, Wayne's or this one, useful for your case.
    The expression in Column C is:
    =IFERROR("Dup in Row "&MATCH(B, A,0), "")
    Regards,
    Jerry

  • Count first two columns

    Hello,
    I have a count requirement that i havent been able to solve by searching sdn.  Maybe someone can help.
    I have a query built on a multiprovider that points to two basic cubes.  The basic cubes do not contain a count key figure.  The first two columns of my query are characteristics.  My requirement is to count the occurences of the combination of the first two column (characteristics).  I am looking for a way to do this in the query so i do not have to reload the cubes as they have large volumes of data.  All the suggestions i have been able to find on sdn seem to be only for counting a single characteristic.  Is there a way to count the combination of two?
    Regards,
    TMS

    Hi Create a count using the formula or calculated ket figure for the count unique id like client id for your infocube.
    so you will have a count for each row now. place this count object in your column.
    now select the two char or the group whatever you want a count in your row.
    select query properties and select the display tab and make sure the option - hide repeated key values is selected (normally by default it is selected). Then select each of the char in rows and in free char and set the option under display tab result rows - always suppress.
    Execute the query now. you will get the list of char and their count. sort the count by descending to get the most duplicate entries by their highest number on top in the count coulmn.
    you can also ignore the rows which donot have a duplicate i.e count more than 1 by creating a new condintion on the count key figure > 1 and restricting the condition  by only the group of char you have given in the column. so that you can also do a drill down by free char in your query and it will only show the duplicates group.
    Hope it helps.
    regards,
    Siva

  • Export option in ALV report downloades first two columns blank

    Hi ,
    Before posting this query I searched the solution in SDN but I did't find the solution.
    My problem is  After displaying report in ALV format ,if I press Export --> Local file --->spreadsheet ;  file will downloaded to excel sheet but first two columns(only heading no data ) will be blank  and next two columns with proper data.
    I checked field catalog defination it seems to be ok,  any other mistake ?
    Please suggest.
    Narayan

    Hi
    It's the option you have in the path System->List->Save->Local file
    I means it's the standard option to export an abap list into a local file, so you should try this path too and check if the resul it's the same
    I think you should choose  Export --->spreadsheet: here before saving the file an excel document will be open
    Max

  • I need to find similar text in two columns: e.g. cell a1 has The Art of War and there is another similar cell in another column that has Art of War HD

    I have text (list of items) on Column A
    I want to find the the same word/number of characters on Column C and to place the formula on Column B and I want the matching result. 
    A1 the art of War 
    I know that somewhere in column b there is a term similar (start with the same characters) The Art of War HD in Spanish
    So I want  a match between these two columns so on the result on cell B1 it will give me "The Art of" (if I ask for 10 matching characters).
    Thanks,

    Hi,
    Please try the following method:
    Get the Column A and Column B the front 10 characters to Column C and Column D
    Match the Column C and Column D
    Formula:
    C1: =LEFT(A1,10)
    D1: =LEFT(B1,10)
    E1: =IF(DELTA(C1,D1),"same","not same")
    Regards,
    George Zhao
    TechNet Community Support

  • Two Column Text Flow Problem

    Aside from Pages not importing Word (from a Mac) properly when there's columns involved I have another column problem.
    I'd like to find a way to make a document that has two equal side-by-side columns, lets call them Column A on the left and Column B on the right. So when I start typing in Column B on the right and reach the bottom of the page the text continues on that new page in Column B.
    As far as I can tell it's impossible to do this as every time I reach the end of a page, the text jumps to the left into Column A. Is there any way to set it up so when you type in one column pages automatically jumps to that same column on the next page without having to add section or layout or column breaks for every single page?
    This is a bit of a nightmare. It seems Pages can't do a simple two column document as it insists on linking them together for every new page it creates as you type text.
    Can anyone help me?

    There are definitely some liimitations in how Pages handles its flow of information. I dislike the fact that once you have placed your pages the way you want from the pages within a template there is no way of having the text automatically flow from one to the next (irritating since some of my templates are designed to be journals)
    Pages won't do what you want. I am sure there are programs which are better suited to do so because they are designed for that particular market. I thank you, however for not stamping your feet and demanding that it be the very next thing for them to accomplish on their growing list of things to do next.
    (and I tried a few different things, hoping to figure out a way to do this. One of which was to design a templlate which was half the width of a sheet of paper. It was determining what was placed on the second side which was difficult.)
    now, of course, depending on how long your document was going to be you could try something different by making an infinitely long sheet of paper. At every point where the header would be you just incorporated a text box or shape with a wrap so your text would skip down to the next virtual page.
    Of course, this sounds like far more work, and distracting to the natural creation process of a writer. Find the software which removes itself from your creative juices and lets you concentrate on being the awsome writer you are.
    Just my 2¢ CDN (about half a penny US.)
    Gerry.

  • Two column text box with header

    I have a text box that is set to flow as two columns. The beginning of the text box has a header then a list of bulleted items. My problem is that when the text flows to the second column, it is set at the top (in-line with the header). What I would like is to do something like set a top margin just for the second column so it will line up with the body text from the first column. Is there an easy way to do this or should I just use two text boxes and position the second box where I want it?

    Simplest is to use two text boxes.
    Dave Saunders has a script (http://pdsassoc.com/index.php?Nav=downs&Ban=Downloads&Info=downloads.html) that can do it with one text box by putting your head in a one-column table that intrudes into the second column. I've never used his script, and I see his website says CS and CS2, so I'm not sure if it would work with your version.
    You could probably achieve what you want (because I see you don't actually need the head to straddle, just the texts to top align with each other) by forcing a huge leading on one character in a frame that's set to First Baseline Offset by Leading.
    Ken

  • How do I count the unique value pairs in two columns of a table?

    I have a table (Table 2) that is populated with data from an imported .csv file. On table 1 I need to count the unique value pairs in two columns of Table 2.
    Here's what I have:
    Date                                        Person
    7/10/2011                         A
    7/12/2011                         W
    7/12/2011                         X
    7/12/2011                         X
    7/12/2011                         X
    7/12/2011                         Z
    7/14/2011                         Z
    7/15/2011                 X
    7/16/2011                         Z
    I'm focusing on person "X" and can easily count how many days that person shows up but what I want is to see on how many unique days that person shows up.
    Here's the result I'm looking for (Person "X" shows up on 2 different days - 3 times on 7/12/2011 and once on 7/15/2011):
    X                    2
    I can't seem to find a function that allows me to do that. I also am not allowed to modify Table 2 so that leaves me to come up with a solution on Table 1.
    Any ideas would be greatly appreciated.

    Hi John,
    Not being allowed to modify Table 2 is a minor inconvenience. Just copy (using a formula) the necessary two columns onto Table 1.
    Yellow columns may be hidden. The procedure progresses from left to right. All formulas are entered into row 2 then filled down that column to the end of the table. The table must be as long as the list in column A of Table 2.
    A2: =Table 2::A
    Fill right to column B.
    Fill both columns down as far as needed.
    I've used actual Date and Time values in column A, formatted to show only the Date part, but the technique will work with text in these cells, provided all cells representing the same 'date' have exactly the same content.
    C2: =A&B
    This concatenates the contents of each row of columns A and B into a single text string.
    D2: =COUNTIF($C$2:C2,C)
    This counts the number of occurrences of the Date&Name string on the current row from the first regular cell in column C (C2) to the current cell.
    E2: =IF(COUNTIF($B$2:B2,B)=1,MAX($E$1:E1)+1,"")
    This constructs the index of first occurrences of each name, in the order they first occur. The index is used by LOOKUP in column F.
    F2: =IF(ROW()-1>MAX(E),"",LOOKUP(ROW()-1,$E,$B))
    This uses the index value created in E as a search-for value to extract a single copy of the names in column B. The result is a list of all distinct names in the list. Note that spelling differences will be counted as distinct names.The IF statement stops the listing when the last distinct name is extracted.
    G2: =IF(LEN(F)>0,COUNTIFS($B,"="&F,$D,"=1"),"")
    This counts the number of 'first occurrences of distinct Date & Name strings for each name on the list (ie. the number of distinct dates on which each name appears in the original list).
    All of the functions used are described, with at least one example for each, in the iWork formulas and Functions User Guide. You can download the guide, and the Numbers '09 User Guide, via the Help menu in numbers.
    Regards,
    Barry

  • MMS Hidden columns appearing in Document Library Settings / Column list

    Hello all,
    Before you read this please be aware that I have found a resolution (that might be helpful to others) but I am wondering if anyone else has experienced the same thing and the cause.
    Our scenario is as follows:
    We use a Content Type hub
    Most Content Types include one or more Managed metadata columns
    The MMS Notes (hidden) columns (e.g. mms_column_name_0) have appeared on the 'Document Library Settings page under 'Columns' for 2 document libraries only. They appear under the actual name of the column (e.g. mms_column_name).
    They are NOT visible to the user however (i.e. they are not selectable to be used in a view)
    Looking at SharePoint Manager the mms Notes column's are marked as being Hidden = false. Altering this to true has the desired effect.
    But has anyone else experienced the same issue as I'm inquisitive as to the cause.
    The only thing I can think of that caused this to happen was us using 'Metadata navigation settings' (which allows you to configure navigation hierarchies) for the first time on one of the 2 Doc Libs effected . However, on testing it on other document
    libraries the unhiding of columns has not occurred.
    Can anyone shed any why this may have occurred?
    Jason

    Hi jasonl27,
    this behaviour:
    This is by design. Two separate lists do not have any type of relationship established to distinguish that the
    columns are the same. For example, take an arbitrary column called "Position" being created on two different custom lists. Because the column Position is a custom column created
    in the list, it has no mapping to other lists. The "Position"
    in one list could refer to a title of a person
    in one list, or a physical location on a different list. SharePoint cannot tell if these two items are the same or completely different. As a result, a new column name is added when we move the item.
    perhaps you may try to do these steps:
    $site = Get-SPSite -Identity "http://......../"
    $web = $site.RootWeb
    $field=$web.Fields["column name"]
    $field.Update($true)
    $field.Hidden= "True"
    $web.Dispose()
    $site.Dispose()
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Maybe you are looking for

  • Compilation using an extended class...

    I'm beginning to program in Java after several years away. I cannot for the life of me see why this is not compiling. I'm reading a Wrox book on Java Server Pages and working examples as I go along. This problem should be a snap but not for me. I hav

  • My ipad mini screen is broken

    I lent on my ipad mini screen in the bottom corner and now there are loads of vertical and horizontal lines on the screen which block the view. Would this be an LCD replacement or external glass replacement. Does anyone have any experience of this an

  • Macbook Pro 15inch i7 8gbram won't shut down (spinnig wheel, blue...)

    Hey! Problem's stated in in the subject line... Other question is, is it harmful for the computer to shut it down with the power button? grisu

  • WINDOWS INSTALLER PROBLEM WITH DESKTOP MANAGER

    Please help!! I am a user of the Blackberry Desk Top Manager, running under Windows XP Service Pack 4.5. I recently downloaded the latest version of Desk Top Manager and I am getting the following error: - Flashing intermittently, whilst running the

  • PHP Contact Form Validation - HELP!

    Hello, I've created my contact page on my website but I'm not happy with the validation and im getting emails through which are empty and with no contact details?? Could someone please help me! This is my php code which is linked to my html page <?ph