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
9
votes
1 answer

JTable, custom header renderer and sorting icons

While setting a custom renderer on a JTable header I get the expected visual behavior (borders, font, alignment, ...) but I can't manage to get the LaF sorting icons that usually appear when the rows are sorted. This is the code for setting the…
S3lvatico
  • 262
  • 3
  • 9
9
votes
2 answers

How can I put a view on top of a glSurfaceView with a transparent background?

My app is composed (from back to front) of an image background, then a glSurfaceView containing a 3D object and on the top 2 buttons. I want the background of the GLSurfaceView to be transparent and see the image behind. I've tried two solutions,…
PopGorn
  • 131
  • 1
  • 5
9
votes
2 answers

JTree set background of node to non-opaque

Please have a look at the SSCCE. How can I make the non-selected tree nodes' background transparent. At the moment the background of non-selected nodes is white. My cell renderer, however, should paint it non-opaque if it is not selected (and green…
haferblues
  • 2,155
  • 4
  • 26
  • 39
9
votes
3 answers

Difficulties understanding the renderers mechanism of swing's JTable and JTree

Often when using JTable or JTree, user define its own cell renderer. It is very common to inherit user's component from DefaultTableCellRenderer, and implements the renderer method getTableCellRendererComponent. It turns out that…
aviad cohen
  • 637
  • 1
  • 6
  • 16
8
votes
0 answers

How do I obtain a matplotlib renderer to pass?

I would like to call the draw() function of a matplotlib Spine instance. The documentation for Spines shows that draw() needs a 'renderer' parameter: draw(self, renderer) Code documentation for Renderers is nonexistent, as far as I can tell. All…
Darien Marks
  • 446
  • 4
  • 18
8
votes
3 answers

Electron: dialog.showOpenDialog not returning a promise?

I would like to show an Open Dialog box from within a rendered script. I am getting conflicting information from different sources, but, as far as I can tell, the documentation at https://electronjs.org/docs/api/dialog suggests I should be able to…
Manngo
  • 14,066
  • 10
  • 88
  • 110
8
votes
1 answer

Using OpenGL to replace Canvas - Android

I am attempting to replace the Canvas-based rendering system that I already have with the faster opengl-es surface, however, I can't seem to get an openGL renderer to conform in such a way that it acts as 2d field, rather than a perspective view.…
Kleptine
  • 5,089
  • 16
  • 58
  • 81
8
votes
3 answers

Layout preview rendering problems in android studio(Android Studio 1.2)

I have the following error in my preview window in the latest version of Android Studio (1.2) that stops me from being able to view the layout I am creating, I have tried restarting android studio several times as well as cleaning, rebuilding the…
MichaelStoddart
  • 5,571
  • 4
  • 27
  • 49
8
votes
1 answer

changing how Nimbus LaF handles JTree node highlighting

I have been working to transition a Java application from WindowsLookAndFeel to Nimbus, largely successfully, despite Nimbus foibles. My users overall like the Nimbus LaF but didn't like some details, some of which I changed by consulting previous…
user1359010
  • 243
  • 3
  • 11
7
votes
2 answers

Put JTable in the JTree

in connection with thread Jtable as a Jtree Node I put JTable to JTree, but JTree View isn't rendered correctly on start_up, how can I setPreferredSize for JTable, because PreferredScrollableViewportSize shrinked JTable with rendering TableHeader +…
mKorbel
  • 109,525
  • 20
  • 134
  • 319
7
votes
0 answers

Messages between `BrowserView` and the `renderer` React page in `Electron

I'm trying to figure out how to exchange messages between the main process and the BrowserView. I've been using the ipc between the main process and the renderer process within a "simple" react renderer page. But now, using the same technique, I do…
Raphael10
  • 2,508
  • 7
  • 22
  • 50
7
votes
2 answers

How can mock the value of a state and data in my react test

I'm writing tests for my react page but my page uses an isLoading in its state, when loading the page renders 'Loading', when loaded but no data (from the fetch request) is renders 'No data found' and when loaded with data (from the fetch request)…
Reeves62
  • 139
  • 1
  • 3
  • 13
7
votes
1 answer

How browser restructure the invalid html structure, is there any rules or approach?

Note: answer will be like this .. yes ..there are rule and approach.. it's depend on adoption agency algorithm etc. you can follow those (links) etc. and your short description . i am not looking for any algorithm or more.. from example if an a…
نور
  • 1,425
  • 2
  • 22
  • 38
7
votes
2 answers

Either i am using Angular Renerer2 wrong, or it is broken. Can anyone figure this out?

Using plain old javascript, this is so simple: myElement.style.setProperty('property', 'value', 'important'); In Angular, not so much. I have done an exhaustive search absolutely everywhere and can not find one single example for how to do this, so…
DevMike
  • 1,630
  • 2
  • 19
  • 33
7
votes
4 answers

convert html to image in byte array java

How can i easily convert html to image and then to byte array without create it thanks
cls
  • 109
  • 1
  • 3
  • 7
1 2
3
61 62