Fernando hiar

Greenhorn
+ Follow
since Jan 11, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fernando hiar

Hello guys,


Everything good?


I am developing a java application that uses sound, I used the line clip that only carries a maximum of 32 sound files and how to carry some 50 sound files, I opted for SourceDataLine line, but on my machine and my brother's machine runs normally sound (Windows 7 and Windows Vista), respectively, today I was in college and I was testing the machine and two friends did not play sound (Windows XP and Windows 7), which can be?



Take a look at the code:



thanks,
11 years ago
Hi guys,

I have a problem in my code, I´m using the SourceDataLine to write in Mixer and TargetDataLine to read the stream, when I load the streams from SourceDataLine, that´s okay, when I read from TargetDataLine appear an error from AudioSystem.isLineSupported(), look that code:

why this?


thanks,
11 years ago

What is wrong with my code!?!?!??!? Why doesn´t paint?!?!?!



I´m using active rendering, thanks...
12 years ago
I´m doing this, but the information is separated, I want to assembly this classes to understand, because these tutorial explaint the BufferedImage, after Graphics and I don´t know how this classes wroking together to paint the Image on the screen?!
12 years ago
I´m just painting an Image, if I used the Graphics class.... the Image is BufferedImage or Image and I just to pass them to graphics to paint the image....How can I do this?!, I don´t wanto to use the paint() and paintComponent() methods. How can i paint the image using Image or BufferedImage?!
12 years ago
Hi guys, How can I transform BufferedImage or
Image in Graphics without to use the paint or paintComponent methods!?
12 years ago
I want to paint the image without to use the paint(Graphics g) or paintComponent(Graphics g)......but I want to understand What I´m doing............
12 years ago
How can I get a context graphic in java, but I need to render the Image before?!.... What the paintComponent really do to paint the Image on the screen?!

12 years ago
There´s no error of compilation, but the image doesn´t appear in the event..... I thought there´s an error of logic or the language....I don´t know....
12 years ago
I´m creating a program who is loaded in JPanel superior the images and when the user click in an imagem this image appear in Jpanel inferior...

there´s the code of Janela1(Window1)



there´s the code of the two JPanel superior and inferior who the classes is : PintarImagem and EventImagem...there´s the 2 classes:

PintarImagem(JPanel superior):



and EventImagem:



the issues is: when I call the Mouse event, the event call paintComponent of EventImagem class load the imagem of this method, but don´t paint the image in JPanle inferior, the question is Why? I debugged this code and I see, first the jvm call paintComponent of EventImagem and after the jvm call paintComponent of PintarImagem.... I don´t know what´s happening......

thanks,
12 years ago

I loaded the Image in the class CarregarImagem this code é alright, but when I draw the images the jvm don´t call paintComponent, why?


here my code:
PintarImage class:


Inicial class:

12 years ago
I see the code and understood about the even and odd line they´re a constant, but stay one doubt why the coordinate x and y of even line is different in values of odd line???

// 'start of first even row' (x,y) coordinate
evenRow 12 8

// 'start of first odd row' (x,y) coordinate
oddRow 40 23

evenRow = even line;
oddRow = odd line;

Thank you,


12 years ago
This part I understood.......... let me explain: I want to know why the even row begin with 12 x-axis and 8 y-axis and odd row begin with x-axis 40 and y-axis 23 and the number of tiles is 16 tiles in the x-axis and 23 tiles of y-axis why in the odd row 40 in x-axis if the number of tile is 16?
12 years ago
So....look these images:



so look in the row tile or the y-axis......right.....I have to know what´s the even row or odd row this is I know but I get the even and odd why I use the coordinate above in the first question for the even tile and odd tile this is my question....

I don´t know if I was clear,
thanks......
12 years ago
Alina....if I was you, I´ll put each image in ArrayList and make the methods to move each image......and after a valid movement I´ll use the method remove() 'the image of current position' of ArrayList and add the image and other position.........more or less in this.....

I hope to help you....
12 years ago