xetra11
11/23/2020, 9:42 PMKirill Grouchnikov
11/23/2020, 9:51 PMKirill Grouchnikov
11/23/2020, 9:54 PMJXTable
from SwingX and JideTable
from JIDE extend the core JTable
component which operates at the level of renderers - where each cell is not a "live" component on its own, but rather rendered / painted from the same small set of configured renderers. This is done in order to keep the performance at an acceptable level. Editing a cell creates a separate "live" editor component that is positioned within the matching cell bounds.Kirill Grouchnikov
11/23/2020, 9:54 PMxetra11
11/23/2020, 9:57 PM@Composable
fun CharacterList(
character: List<Character>
) {
character.map {
Row {
val boxModifier = Modifier.border(1.dp, Color.Black)
.then(Modifier.padding(horizontal = 2.dp, vertical = 4.dp))
Box(boxModifier) { Text(it.name) }
Box(boxModifier) { Text(it.dna) }
Box(boxModifier) { Text(it.dynasty) }
Box(boxModifier) { Text(it.culture) }
Box(boxModifier) { Text(it.religion) }
}
}
}
xetra11
11/23/2020, 9:57 PMKirill Grouchnikov
11/23/2020, 10:03 PMxetra11
11/23/2020, 10:21 PM