uibooster-for-processing icon indicating copy to clipboard operation
uibooster-for-processing copied to clipboard

Feature-request: Defines column width in showTable()-method

Open SeongJongKwak opened this issue 3 years ago • 2 comments

https://discourse.processing.org/t/among-the-uibooster-library-examples-it-is-related-to-table-is-it-possible-to-change/38553

https://global.discourse-cdn.com/standard10/uploads/processingfoundation1/original/3X/8/4/841b24eb0fb4c49c13eb0f0d6bddde4153ba01fa.jpeg [IMAGE LINK] Please refer to the image. source code

import uibooster.*;
UiBooster booster;

void setup() {
  size(800, 400);

  booster = new UiBooster();

  // user showTableImmutable() for immutable tables
  String[][] modifiedData = booster.showTable(
      new String[][]{                                       // data in 2d array
              {"Jimmy Johnson", "35", "Zombieland"},
              {"Danny Durango", "23", "Hangover"},
              {"Larry Berry", "54", ""}
      },
      new String[] {"Name", "Age", "Favorite movie" },      // header
      "Favorite movies");         
      
      println(modifiedData);
      
      // window title
}

void draw() {
  background(10);
}

Can’t you adjust the size of ‘W1’, ‘W2’, and ‘W3’ before the ‘table’ window opens?

SeongJongKwak avatar Aug 29 '22 23:08 SeongJongKwak

hi @SeongJongKwak

thank you for your issue. But at the moment UiBooster doesn't support to change the width of the columns on creating a table window. I will change your ticket to a feature request. For the next releases I will see what can be done.

Milchreis avatar Aug 31 '22 09:08 Milchreis

@Milchreis Sorry for the late reply.

Dear Milchreis,

Thank you for your sincere reply. I am using your library. Thank you very much. I hope it gets better soon. And I hope you are always full of happy things. thank you.

SeongJongKwak avatar Sep 05 '22 13:09 SeongJongKwak