How Build video-player in html And css ? Programming by Kirubel_2 <head><title>navigation</title> <link rel="stylesheet" href="../css/nav.css"> <link rel="stylesheet" href="../css/tutorial.css"> <link rel="stylesheet" href="../css/vedio.css"> <link rel="stylesheet" href="… Re: how convert cur images to image? Programming Software Development by Reverend Jim Why not just load it into paint.exe then save as whatever format you want? Or you could download [ffmpeg](https://ffmpeg.org/) (free) and do ffmpeg -i myfile.ico myfile.jpg (or whatever format you want) ffmpeg can also be used to convert video between any formats. Also subtitle files. ffmpeg is a portable app (no installation required)… Re: How Build video-player in html And css ? Programming by Kirubel_2 body{ /* background: url(../img/w11.png); */ background: url(../img/m.jpg); background-size: cover; background-repeat: no-repeat; margin: 0; padding: 0; height: 101vh; overflow-y: hidden; } .container button{ background: transparent; … Paint - The BIG Picture Programming Software Development by TahoeSands For several weeks, I have been trying to wrap my brain around the concept of the paint(Graphics g) method. I have a pretty good idea how it works, but I am still struggling with the "practical" application of the paint method with respect to OOP. I can write small apps using paint(Graphics g) to draw/paint rectangles and lines within a… Re: Paint - The BIG Picture Programming Software Development by JamesCherrill Normal method is to use a javax.swing.Timer (not java,util.Timer, which is different) to call back after "a few minutes". In the callback you change the shape etc then call repaint() to trigger Swing to call your paint(...) method. ps: It's advised to override paintComponent, rather than paint - you can google for the reasons if you're … Re: Paint - The BIG Picture Programming Software Development by NormR1 [QUOTE]put all my "drawing code" inside the overridden paint method, all the graphics get painted at the same time[/QUOTE] Make each part of the drawing code depend on some controlling variables like a boolean that are set by the Timer or listener code before it calls the repaint method. The paint method then only does what it has been … Paint method don't work in swing, java:/ Programming Software Development by thes0mething Hello everyone on Daniweb!:) I'm all new with working with swing and I'm having some problems making my paint method work:/. Atm I'm just tryin to make it write a ball, which I can control into different directions. Right now there is quite alot of unnecessary stuff in my code but please don't bother about that:P. Here's the code: [CODE]… Re: Paint method don't work in swing, java:/ Programming Software Development by JamesCherrill 1. You are expected to use the Graphics object passed to you as a parameter 2. aBoolean == true is just like anInt + 0, ie horribly redundant 3. Override paintComponent, not paint 4. panel.paint(gr); never call paint directly. call repaint() and let Swing do the rest [CODE]public void paintComponent(Graphics g){ if (ball){ g.setColor(Color.… Re: Paint method don't work in swing, java:/ Programming Software Development by thes0mething [QUOTE=JamesCherrill;1534760]What do you mean "couldn't solve it"? What exactly can't you do? What does your latest code look like? What errors (if any) does it give you?[/QUOTE] I have just tried working a little bit on it today. I have removed some unnecessary things in the code and I have made the JLabel a JPanel again(thats why … Paint() method resetting variables? Programming Software Development by Benderx Hi everyone, I was writing a program to show visually some vectors I was implementing with Java but I ran into an issue. My program has 3 classes, a driver, a Vector class and a VectorDisplay. The driver and vector class are self explanatory, but here is the code. Driver: import phys.*; import java.util.*; public class Driver … Re: Paint method don't work in swing, java:/ Programming Software Development by JamesCherrill That's a good point from mKorbel - you make the frame visible before you have finished sizing it, adding stuff to it etc. Most of the time you'll get away with this because your method will finish executing before the Swing thread gets to paint anything on the screen. But with multiple threads you can't guarantee that, so its always possible that … Paint not painting properly Programming Software Development by stinkypete I am trying to write a multi-window text editor. I have a Page Control containing 20 pages, and each page (tab sheet) contains an instance of my editor. Which works mostly ok, except I sometimes get weird results when painting my editor window. The attached code is a greatly cut-down version (which isn't a text editor any more, just a TWinControl … Paint Multiple Items to screen Programming Software Development by ObSys Ok so basically I want to know how I can paint multiple items to the screen without using all of my laptop CPU power. I was thinking that it may be possible to arrange the items as a bitmap and then paint that bitmap to the screen but im not entirely sure how to go about doing this so would value any help that can be given. Thanks in advance for… Paint Method on GUI application Programming Software Development by murali2489 Hi All, I have a doubt in paint method of the Component Class. I know how to use that in Applet but im finding it hard to use it in GUI app. Im posting my code here, please edit it to make the program use paint method to render any GUI component. Be it any Component, any Rendering, i just want a push up on how to use that method. Thanks … Re: Paint Method on GUI application Programming Software Development by JamesCherrill You are just using standard Swing components, so there is no need for you to write (or even think about) a paint method. Swing will paint all those components for you. Why exactly do you want to write a custom ppaint method??? Re: Paint not painting properly Programming Software Development by stinkypete Thanks for replying. I have added [CODE] Canvas->Font->Name = "Fixedsys"; Canvas->Font->Size = 9; [/CODE] into my setCanvas method which seems to have addressed the font problem. I have just run the program and tabs 6, 11, 16, 17, 18, 19 display correctly, and all the others don't. They just show a green window … Re: Paint Method on GUI application Programming Software Development by murali2489 oh ok, could you please tell me on which situation, paint method is needed. Paint Program Instruction based image sending Programming Software Development by IcyFire Hi, i'm making a server client piant program that send what is painted on the server to the client(and vice versa). this program is supposed to use instruction based transmission of the image. i have a server client program that sends what is drawn on the server to the client but it uses image based tranmission of the image and i'm not sure how to… WM Browser Programming Software Development by drivehard-gopro I have tried to make my own web browser for my Windows Mobile 6 and have not had success with it. I have placed a combo box named cmbaddress, a WebBrowser control named WebBrowser1 and a picture box named pbgo (the go button). inside the go button I have written the following code: WebBrowser1.Navigate(cmbaddress.text) but this gives me an… Re: paint method and graphics Programming Software Development by hwoarang69 can you try runing this code on ur computer. if you get no flicking than it mean the problem is in my eclipse. plz let me know. import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JApplet; import javax.swing.Timer; public class main … paint method and graphics Programming Software Development by hwoarang69 i am create animation in japplet and i want to know if iam using paint method and draphics2d the right way. public void paint(Graphics g) { super.paint(g); Graphics2D g2d = (Graphics2D) g; g2d.fillRect(x, y, width, height); //player }/** end of paint method ***/ another … Re: paint method and graphics Programming Software Development by JamesCherrill Thread sleep isn't a good way to go, the Java API includes Timer classes that you can use to schedule updates to your animation at regular intervals. The paint looks OK. Here's the simplest possible runnable example of a good approach import java.awt.*; import java.awt.event.*; import javax.swing.*; public class … paint() in java awt Programming Software Development by vrc_sekhar hello everybody, ive devoloped an awt application in java, i want to call the paint() for drawing sytem time on a image through Graphics.drawString(String,int,int); now i want to refresh the time for each second by calling repaint(), but whats my problem is, each time i call repaint() the image i drawn using the paint() is being repainted. so i … Re: Paint method painting over Jlabel Programming Software Development by JamesCherrill You've made the common mistake of overriding paint rather then paintComponent. JPanel's paint method calls paint for all its child objects as well as calling its own paintComponent, but you have overridden it thus bypassing the calls to paint the label. Just override paintComponent instead of paint and let Swing do its work. [url]http://docs.… Re: paint method and graphics Programming Software Development by JamesCherrill OK. Tried it, got a small amount of flicker (maybe 2 - 4 flickers in total). I think its because you are forcing a repaint of the whole JApplet each time. I hacked in a change to do the drawing in a JPanel in the JApplet, so it's only the panel that's redrawn. Fore me this eliminated all the fickers. I also used a java.util.Timer to keep the … Re: paint() in java awt Programming Software Development by mcclth try this: public void update (Graphics page) { paint(page); } That way, instead of updating the whole page (which erases first), it just draws to it. Re: Paint Application In Java Programming Software Development by Ezzaral [quote=liltrig3;446135]thanks again. i do appreciate it. do have a code like that. so i can look on tht and develop mine? i just got five days. please. please my email is <snipped email> u can add me so tht we chat now. thank u very much[/quote] No, I do not have any code for that in particular. Just go through the tutorial and perhaps this… paint w/ vb.net Programming Software Development by arshesander Helo, i want to include paint application in my project but i dont know what to do? what i mean is do you any paint program using vb.net so that i can download?. i have no idea how to create it w/ my own.. thanks guys Re: Paint question Programming Software Development by Ezzaral If you are wanting to paint the line over a grid of JButtons, you'll need to create a small component to install as the glass pane (you read about glass pane [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html"]here[/URL]). The code to paint the lines will go in the paintComponent() method of that class. Here is… Paint with Python-Pygame Programming Software Development by computerfreak97 I am trying to develop a program using pygame that will let you "paint." There is just one problem, when I change the RGB values, all of the pixles change!!! Please HELP!!! Code: [CODE] import pygame, os pygame.init() pygame.display.init() screen = pygame.display.set_mode((830, 620)) draw = 0 selected = 0 points = [] col = [0,…