Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E24DA1066F for ; Fri, 18 Oct 2013 10:15:39 +0000 (UTC) Received: (qmail 16808 invoked by uid 500); 18 Oct 2013 10:15:38 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 16684 invoked by uid 500); 18 Oct 2013 10:15:30 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 16663 invoked by uid 99); 18 Oct 2013 10:15:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 10:15:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of damir.dezeljin@dezo.org designates 209.85.215.42 as permitted sender) Received: from [209.85.215.42] (HELO mail-la0-f42.google.com) (209.85.215.42) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 10:15:22 +0000 Received: by mail-la0-f42.google.com with SMTP id hp15so514323lab.1 for ; Fri, 18 Oct 2013 03:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dezo.org; s=google; h=mime-version:from:date:message-id:subject:to:content-type; bh=+k/b4XoN4BwmZ2MySXC9dRc/sdDeuU5FyyVHg8KVJC4=; b=a5w5IpDCdTs8/a6qA05lmjSjD/+ziJZ5TNrCne8voldQ+Hmol5jDM4y3ZCfCZOJgst OU0KyfCBaAEukgX29FlXD+31S8lv9qp5vQWJEEeNhLaPLLHFYBYlBNVl1aOhgVvjHe08 IXW0rfemHlPREGT0G4Xs9We/UXQlWQPd39G4w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=+k/b4XoN4BwmZ2MySXC9dRc/sdDeuU5FyyVHg8KVJC4=; b=dNFpPTnZTJuAHxY6aVjZdHRgeAdnLA+oaIE75SqWSZ/8E9mviO4dcQKbpj2nH9GKIs bT/E+YwoEFW7f9Ols3UoXf85iCNoJpfg74khin0uxdcrjr+KTHUUhK+Qqd6b+tUHEUlF k4W8+dsXsivgq1rkm1oaT7bspXkNhjthYbtnDc7pmeGsh/o2nMTiVIzY+Vte+0wJBJTl SrnO6kHSABUFnqOItFQzfOAEbIA7PquIofoijfF0eondybYn7AXriTonCRmngwqfksXR q4qa2WuW4pfyy2ER8qe4NH2hbH/Xrv9+VI6t45NquYL73XIbbl+vL5P86oBv6BWR9qSn w1vw== X-Gm-Message-State: ALoCoQlm4uoEbPSofV4eGshaBZVV2tiOjCrbCOWKrYGfF4woiajj/uRYZ5iBc35tlqzSxf+IVDq0 X-Received: by 10.152.120.5 with SMTP id ky5mr1891594lab.18.1382091301544; Fri, 18 Oct 2013 03:15:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.23.67 with HTTP; Fri, 18 Oct 2013 03:14:41 -0700 (PDT) From: Damir Dezeljin Date: Fri, 18 Oct 2013 12:14:41 +0200 Message-ID: Subject: How to apply styles to TableView rows To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=089e01227ca41375dc04e901350d X-Virus-Checked: Checked by ClamAV on apache.org --089e01227ca41375dc04e901350d Content-Type: text/plain; charset=UTF-8 Hello, Last week I got a task to develop a simple Java application for importing Excel files into MySQL database. As I didn't have experience with Java GUI, I did an investigation and I choose Apache Pivot for developing the GUI toolking / framework; I'll use Apache POI for reading Excel files. The application I'm developing needs to load in an Excel spreadsheet and display its data in a data grid format; a subset of displayed data needs to be highlighted (colored) to denote what data is going to be imported into a DB. I figured out the Apache Pivot TableView would meet my requirements for displaying a data grid. So I created a TablePane in Java and added it to a ScrollPane defined in a BXML file. Today I'll move also the TableView definition into Java code as it needs to be dynamic. Now I'm struggling finding the way how to highlight a certain rows. Various posts mention the TableView CellRenderer has to be extended; however, I didn't find the way or an example how to do it. Can someone help me out with an example or hints how to implement it. In case I need to extend a TablePane parrent which in my case is ScrollPane or any other class by defining my own, I would appreciate an example how to use my own class within a BXML file where all the GUI structure beside the TableView for data is defined. Thanks in advance, Damir --089e01227ca41375dc04e901350d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

Last week I got a tas= k to develop a simple Java application for importing Excel files into MySQL= database. As I didn't have experience with Java GUI, I did an investig= ation and I choose Apache Pivot for developing the GUI toolking / framework= ; I'll use Apache POI for reading Excel files.

The application I'm developing needs to load in an = Excel spreadsheet and display its data in a data grid format; a subset of d= isplayed data needs to be highlighted (colored) to denote what data is goin= g to be imported into a DB.

I figured out the Apache Pivot TableView would meet my = requirements for displaying a data grid. So I created a TablePane in Java a= nd added it to a ScrollPane defined in a BXML file. Today I'll move als= o the TableView definition into Java code as it needs to be dynamic.

Now I'm struggling finding the way how to highlight= a certain rows. Various posts mention the TableView CellRenderer has to be= extended; however, I didn't find the way or an example how to do it.
Can someone help me out with an example or hints how to implement it. = In case I need to extend a TablePane parrent which in my case is ScrollPane= or any other class by defining my own, I would appreciate an example how t= o use my own class within a BXML file where all the GUI structure beside th= e TableView for data is defined.

Thanks in advance,
=C2=A0Damir
--089e01227ca41375dc04e901350d--