Questions tagged [renderer]

A renderer is a software construct that accepts and transforms information so that it can be displayed in a given medium.

A renderer is a software construct that accepts and transforms information so that it can be displayed in a given medium.

930 questions
0
votes
1 answer

Why doesn't my JPanel hear mouse changes when inside a JTable?

Here is a simple example of the inner JPanels of my JTable not being notified when a mouse enters / exits. Why? import java.awt.Color; import java.awt.Component; import java.awt.Font; import java.awt.event.MouseAdapter; import…
sdasdadas
  • 23,917
  • 20
  • 63
  • 148
0
votes
1 answer

Trim submitted value in Mojarra TextRenderer

We have many XHTML pages, each page has some , , etc.. input components. I am trying to find out a generic way to trim all those values before form submission. I implemented a TrimInputTextRenderer class, XHTML…
uday
  • 315
  • 3
  • 7
  • 17
0
votes
3 answers

How to color specific rows in a JTable

I want the ability to highlight some rows of JTable, depending on the values in the row itself. For example, if the existing qty < reorder level, that row should be highlighted in the JTable. I know there is a table method…
chathura
  • 3,362
  • 6
  • 41
  • 68
0
votes
1 answer

extJs:Can prroperty grid custom render an array value?

I try to set a field value to a value which is type of array, but the grid can't display the row. my test codes shows below: Ext.onReady(function() { new Ext.grid.property.Grid( { customRenderers:{Test:function(v) { …
Sharp Kid
  • 135
  • 1
  • 4
  • 14
0
votes
3 answers

how to change color of rows in JTable

I have a JTable 5x5, and I want to write a procedure setColorTable(JTable table, int Row, int Col), when call Procedure setColorTable it will setBackground color for row and col in table. everyone can help me. thank you so much.
0
votes
4 answers

Two images in JTreeNode?

I have some custom JTree. That tree has nodes with custom icons. I also have a class that extends DefaultTreeCellRenderer with method getTreeCellRendererComponent as simple as this: super.getTreeCellRendererComponent(tree, value, sel, expanded,…
guest86
  • 2,894
  • 8
  • 49
  • 72
0
votes
1 answer

Java Swing setEditable(boolean) not working in JComboBox with custom renderer

I have a JComboBox of type myclass. I use CustomListRender to display one of the attributes of myclass, and it works fine. Then I set myCombobox.setEditable(true). JComboBox becomes editable, but by default text is set to somthing like this in…
Krishna Shrestha
  • 1,662
  • 14
  • 38
0
votes
2 answers

resizing component in jtable cell

I am trying to resize a slider inside a jtable cell. But when resizing the column header, I do pass in the concerned code (method getTableCellRendererComponent for column one), but nothing happens (the slider is not resized??). below is the code of…
0
votes
1 answer

Directshow Render window DLL,

Is there a way to pop up the directshow render windows from DLL. Same code pops up the video render window from .exe application. DLLs are libraries so you can not have a graphical sort of feed back I suppose. Well I know it is a reciepe for a…
Evren Bingøl
  • 1,306
  • 1
  • 20
  • 32
0
votes
1 answer

Put a JComboBox to JTable and make getting an element from list instead of editing the cell

I would like to make one cell in JTable to be a JComboBox object and be able to use it. It must be only one cell, not whole column. The table can contain the specific cell but not always, its placement is not static. My problem lies in putting…
dawrutowicz
  • 2,930
  • 2
  • 15
  • 19
0
votes
4 answers

Coloring Rows of JTables after Initialization

I'm clarifying my earlier problem by providing some sample code import java.awt.Color; import javax.swing.*; import javax.swing.table.DefaultTableModel; public class TestTable extends javax.swing.JFrame { private JButton jButton1; private…
Chris W
  • 145
  • 1
  • 2
  • 12
0
votes
1 answer

Access custom Cell Renderer of the TileList component AS3

I've implemented a custom cell renderer for the TileList component by extending the ImageCell class like this: package { import fl.controls.listClasses.ICellRenderer; import fl.controls.listClasses.ImageCell; import fl.controls.Label; …
astralmaster
  • 2,344
  • 11
  • 50
  • 84
0
votes
2 answers

Passing data and calling functions between host component and renderers in Flex

Is there any better way for passing data between component and its renderers (also calling methods)? I am using dispatchEvent(new CustomEvent(CustomEvent.SOME_EVENT, data)); or owner.dispatchEvent(new CustomEvent(CustomEvent.SOME_EVENT, data)); or…
randomUser56789
  • 936
  • 2
  • 13
  • 32
0
votes
2 answers

How to create multiselect combo

I want to create a multiselect combo box in Swing that displays the items selected by user delimited by semicolon or another character. For example: Select articles(s) <- Displays the user's selection Select articles(s) No article a the It the user…
ka3ak
  • 2,435
  • 2
  • 30
  • 57
0
votes
1 answer

How to read bean value within Renderer

I am writing a custom jsf Renderer for checkboxes and radio buttons to render without TABLE element. My question is if I have a select box like below
Nithin Satheesan
  • 1,546
  • 3
  • 17
  • 30