Questions tagged [cellrenderer]

145 questions
0
votes
1 answer

hiding part of JList string via custom ListCellRendered

Here is the 'protocol syntax' I am using to add messages of type (general), (whisper), (guild), or (global) // add the message in list box ChatJInternalFrame.modelChatList.addElement("(general)" + characterName + ": " + chatMessage); Here is where…
KisnardOnline
  • 653
  • 4
  • 16
  • 42
0
votes
2 answers

Changing font color on a column in treeview gtk

I've a treeview and I want to change the text color on one column. How could I do this?? thanks
Matias
  • 265
  • 3
  • 11
0
votes
1 answer

gtk# CellRendererCombo in TreeView

I want to have a Gtk.TreeView that has for the first Column to be a ComboBox, in which I'll be able to select the Value I want the first Column to be. Here's my code below. Gtk.TreeViewColumn compteColumn = new TreeViewColumn(); …
HexaGridBrain
  • 522
  • 7
  • 24
0
votes
1 answer

Updating TreeView after changing CellRendererCombo (Gtk#)

Could somebody point me in the right direction on how to update a Gtk.TreeView after changing a CellRendererCombo in Gtk#? Since the only example I found was in Python, I tried to port the example to C#, but without success so far. The Python…
draptik
  • 470
  • 3
  • 19
0
votes
1 answer

Custom cell in list in Flash AS3

I am no expert in Flash, and I need some quick help here, without needing to learn everything from scratch. Short story, I have to make a list where each cell contains an image, two labels, and a button. List/Cell example: img - label - label -…
Sti
  • 8,275
  • 9
  • 62
  • 124
0
votes
2 answers

Cells content not shown in JTable until JTable getting focus

Hi have a JTable which each cell is a JPanel (using cell renderer) The content of the cells is not shown until I click somewhere in the JTable to get focus.. (When I used JTextArea instead of JPanel for each cell it worked well) I tried to use…
DudiD
  • 215
  • 2
  • 7
  • 16
0
votes
1 answer

Rather than model, get value of cellrenderer in a GtkTreeView

For set data to the treeview, I'm using the set_cell_data_func at some columns. source like this: myRenderer = gtk.CellRendererText() column = gtk.TreeViewColumn("col1", myRenderer, text=columnId) column.set_cell_data_func(myRenderer, func1) def…
-1
votes
1 answer

Unable to access component state inside AgGrid cellRenderer

In my React app using functional components, I have a a local state (myObj) which is populated via context object from parent (based on API response). I use this local state to populate the AgGrid and within this grid, I have a row-level Edit link…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
-2
votes
1 answer

JPanel with multiple lables as a listcellrenderer

I want to create a java chat application with the message being displayed in the a list. Each list item will have the message details such as user's name, date, message and seen/not seen. I'm using a JPanel as my cellRenderer component and this…
-2
votes
2 answers

How do I list nicely in a Jlist?

I am making a travel planner desktop app. And I have come so far so its only the listing left. I wanna use an Jlist with a defaultListModel or something. But how Do I list all like this??? The result I wanna get is like this: line : Spårvagn…
Josef
  • 527
  • 2
  • 5
  • 22
1 2 3
9
10