flicker

Swing component flickering when updated a lot

北慕城南 提交于 2019-12-29 09:03:17
问题 I've got a couple thousand lines of code somewhere and I've noticed that my JTextPane flickers when I update it too much.. I wrote a simplified version here: import java.awt.*; import javax.swing.*; public class Test { static JFrame f; static JTextPane a; static final String NL = "\n"; public static void main(String... args) { EventQueue.invokeLater(new Runnable(){ public void run() { f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setVisible(true); f.setSize(400, 300);

Swing component flickering when updated a lot

安稳与你 提交于 2019-12-29 09:02:29
问题 I've got a couple thousand lines of code somewhere and I've noticed that my JTextPane flickers when I update it too much.. I wrote a simplified version here: import java.awt.*; import javax.swing.*; public class Test { static JFrame f; static JTextPane a; static final String NL = "\n"; public static void main(String... args) { EventQueue.invokeLater(new Runnable(){ public void run() { f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setVisible(true); f.setSize(400, 300);

Possible to stop flickering java tooltip in heavyweight mode?

℡╲_俬逩灬. 提交于 2019-12-24 02:16:18
问题 Similar Q to ToolTip flicker in Java if outside JFrame? A constantly updating lightweight tooltip works fine, but once it moves out the window bounds or is made heavyweight (by disabling lightweight popups), it's flicker city. Tried the "-Dsun.awt.noerasebackground=true" hint which works inside a window, but at the expense of some painting artefacts over other components (this example is just a blank panel). Outside a window bounds it doesn't help, there's still horrible amounts of flicker.

jQuery SlideDown Flickering in Firefox

房东的猫 提交于 2019-12-23 14:55:02
问题 once more a jQuery, Firefox flickering issue. (no flickering in IE6/7/8, Safari) I uploaded an example page here: http://sithlord.bplaced.net/testing/jquery_flickering/flickering.html There are two div containers. The inner div is the one I'm hiding. The outer one is the wraping container with the style elements. I found the flicker only occur with the selectbox. Without the SelectBox there is no flickering. But thats not all: (I cant post a second hyperlink: its the same link as above; only

Firefox jquery scrollTo flicker bug

允我心安 提交于 2019-12-23 10:09:56
问题 I've seen quite a few threads here talking about flickering in Firefox, but none that quite describe the problem I'm having. I've got a horizontal scrolling website, fixed position menus, and the jquery plugin .scrollTo handling next and previous buttons. This works great in Chrome and Safari (don't know about IE), but in Firefox there is a flicker every time you scroll right of left with the arrows in the upper right and corner. See An Example Here I've tried setting all the elements that

sIFR load before rest of page?

試著忘記壹切 提交于 2019-12-23 01:30:12
问题 Is it possible to have sIFR "preload" or load before the rest of the page content? At present it is the last thing to load (due to the text position) and as it's quite an obvious part of the page I get a huge mash-up of text replacement all in a quick flurry which is not very appealing. It looks like the site is having an epileptic fit. Once loaded, all is fine though :) Any work-arounds to the load-fitting? Cheers Hugh 回答1: There are a two separate issues here: Replacing the elements as soon

flickering of image in SWT

喜欢而已 提交于 2019-12-23 01:13:42
问题 I am building an SWT application, I have used a ScrolledComposite and a Composite inside that. This has a few more buttons and checkboxes . All this is inside a Composite . Now I tried to put this main composite in the tab. It worked fine but the image flickers a lot even if I don't scroll or resize. If I put this main composite inside a shell, its working perfect without any flicker. Why is this happening? 回答1: Did you set the SWT.DOUBLE_BUFFERED style bit on your Composite? That might fix

Win32 Text Drawing Puzzle

巧了我就是萌 提交于 2019-12-22 13:49:10
问题 I've got a little text drawing puzzle under Win32. I'm trying to draw some instructions for users of my application at the top of the window. Please refer to the following window (I've changed the background color on the text so you can see the boundaries) (source: billy-oneal.com) I'm currently using DrawTextEx to draw the text to my window, but the problem is that it does not fill the entire RECTangle that I give it. Not drawing that area is just fine, until the window resizes: (source:

How to eliminate the flicker on the right edge of TPaintBox (for example when resizing)

只谈情不闲聊 提交于 2019-12-22 04:56:05
问题 Summarization: Say that I have a TForm and two panels. The panels are aligned alTop and alClient. The alClient panel contains a TPaintBox, whose OnPaint involve drawing codes. The default value of DoubleBuffered on the components are false. During the drawing process, flicker is obvious because the form, the panels all paint their background. Because the form is covered by the panels, it is probably fine to intercept its WM_ERASEBKGND message. If not, one could see flickering on the panels,

Update image without flickering ASP.NET C#

。_饼干妹妹 提交于 2019-12-22 04:14:11
问题 Im writing a web site which has a page that must show an image. This image is created by an HttpHandler using querystring commands, how can I make this works without any kind of flickering? Thanks in advance, if you need some code Im happy to share it! 回答1: I used the following code for a project, where I had a similar problem. Maybe this can help solve your issue. (function($) { var cache = []; // Arguments are image paths relative to the current page. $.preLoadImages = function() { var args