Results 1 to 2 of 2

Thread: How to create a JMESA checkbox with Java

  1. #1
    Join Date
    Dec 2019
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to create a JMESA checkbox with Java

    I work with JMESA, JAVA and I need a checkbox

    I have the following code Java

    HtmlColumn activo = new HtmlColumn("activo");
    activo.getCellRenderer().setWorksheetEditor(new CheckboxWorksheetEditor());
    activo.setTitle("titulo");
    activo.setFilterable(false);
    activo.setSortable(false);
    htmlRow.addColumn(activo);


    When I run the project I get the error

    java.lang.IllegalStateException: Not able to convert the value for the checkbox.
    Causa
    Not able to convert the value for the checkbox.


    How can I create a JMesa checkbox with JAVA?

  2. #2
    Join Date
    Nov 2020
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You try this

    JCheckBox checkbox = new JCheckBox();

    checkbox.setText("Enable logging");
    checkbox.setSelected(true);
    checkbox.setIcon(icon);

Similar Threads

  1. Form wizard and jMesa tables not co-operating
    By sdaubs in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 02-18-2013, 02:16 PM
  2. create text to textbox using java script
    By prashant_ora in forum Looking for such a script or service
    Replies: 4
    Last Post: 09-15-2011, 02:41 PM
  3. Can I put 3 java scripts together to create one?
    By robin9000 in forum JavaScript
    Replies: 0
    Last Post: 06-08-2009, 05:00 PM
  4. create mysql table - php/java ???
    By pepe_lepew1962 in forum Other
    Replies: 0
    Last Post: 11-20-2008, 06:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •