Click here to Skip to main content
14,237,256 members
   

Java

 
QuestionCode to Read Raw data from Wireless Modem in java Pin
Member 1409909024-Dec-18 0:53
memberMember 1409909024-Dec-18 0:53 
AnswerRe: Code to Read Raw data from Wireless Modem in java Pin
Richard MacCutchan24-Dec-18 0:58
protectorRichard MacCutchan24-Dec-18 0:58 
GeneralRe: Code to Read Raw data from Wireless Modem in java Pin
Member 1409909024-Dec-18 1:03
memberMember 1409909024-Dec-18 1:03 
GeneralRe: Code to Read Raw data from Wireless Modem in java Pin
Richard MacCutchan24-Dec-18 1:04
protectorRichard MacCutchan24-Dec-18 1:04 
GeneralRe: Code to Read Raw data from Wireless Modem in java Pin
Member 1409909026-Dec-18 0:48
memberMember 1409909026-Dec-18 0:48 
GeneralRe: Code to Read Raw data from Wireless Modem in java Pin
Richard MacCutchan26-Dec-18 2:10
protectorRichard MacCutchan26-Dec-18 2:10 
AnswerRe: Code to Read Raw data from Wireless Modem in java Pin
jschell27-Dec-18 13:27
memberjschell27-Dec-18 13:27 
QuestionJava Panel Program Pin
Member 1408268117-Dec-18 11:36
memberMember 1408268117-Dec-18 11:36 
I have a problem for RUN this code please help(Im working in Eclipse and i dont get any 'error report' but not works) (I dont know what i need any interface,abstract or method or something like that pls copy paste this code in your eclipse and help me ty )

package PaketX;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import javax.swing.JPanel;
@SuppressWarnings("serial")
class P06 extends JPanel implements ComponentListener {
	int width = 800, height = 600;
	Color AtaRasgeleRenk() {
		int r = (int)(256*Math.random());
        int g = (int)(256*Math.random());
        int b = (int)(256*Math.random());
        return new Color(r,g,b);
	}
	public P06() {
		setPreferredSize(new Dimension(width, height));
		addComponentListener(this);
	}
	@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		int i, j, m = 7, n = 9;
		int x, w = Math.round((float)width/n);
		int y, h = Math.round((float)height/m);
		for(i = 0; i < n; i++) {
			x = i*w;
			for(j = 0; j < m; j++) {
				y = j*h;
				g.setColor(AtaRasgeleRenk());
				g.fillRect(x, y, w, h);
			}
		}
	}
	@Override
	public void componentResized(ComponentEvent e) {
		width = getWidth();
		height = getHeight();
	}
	@Override
	public void componentHidden(ComponentEvent e) {}
	@Override
	public void componentMoved(ComponentEvent e) {}
	@Override
	public void componentShown(ComponentEvent e) {}
}

AnswerRe: Java Panel Program Pin
Richard MacCutchan17-Dec-18 22:33
protectorRichard MacCutchan17-Dec-18 22:33 
Questionjava program cannot compile Pin
Member 1409285317-Dec-18 9:55
memberMember 1409285317-Dec-18 9:55 
AnswerRe: java program cannot compile Pin
Richard MacCutchan17-Dec-18 22:23
protectorRichard MacCutchan17-Dec-18 22:23 
QuestionConnecting to website and checking elements Pin
Valentinor15-Dec-18 1:57
memberValentinor15-Dec-18 1:57 
AnswerRe: Connecting to website and checking elements Pin
Richard MacCutchan15-Dec-18 3:49
protectorRichard MacCutchan15-Dec-18 3:49 
GeneralRe: Connecting to website and checking elements Pin
Valentinor15-Dec-18 4:19
memberValentinor15-Dec-18 4:19 
GeneralRe: Connecting to website and checking elements Pin
Richard MacCutchan15-Dec-18 4:40
protectorRichard MacCutchan15-Dec-18 4:40 
GeneralRe: Connecting to website and checking elements Pin
Valentinor15-Dec-18 4:54
memberValentinor15-Dec-18 4:54 
GeneralRe: Connecting to website and checking elements Pin
Richard MacCutchan15-Dec-18 5:01
protectorRichard MacCutchan15-Dec-18 5:01 
GeneralRe: Connecting to website and checking elements Pin
Valentinor15-Dec-18 5:54
memberValentinor15-Dec-18 5:54 
GeneralRe: Connecting to website and checking elements Pin
jschell15-Dec-18 7:05
memberjschell15-Dec-18 7:05 
AnswerRe: Connecting to website and checking elements Pin
jschell15-Dec-18 7:07
memberjschell15-Dec-18 7:07 
GeneralRe: Connecting to website and checking elements Pin
Valentinor15-Dec-18 9:30
memberValentinor15-Dec-18 9:30 
QuestionHandle Multiple Threads With One Server Pin
Member 1408670212-Dec-18 0:45
memberMember 1408670212-Dec-18 0:45 
AnswerRe: Handle Multiple Threads With One Server Pin
Richard MacCutchan12-Dec-18 21:54
protectorRichard MacCutchan12-Dec-18 21:54 
AnswerRe: Handle Multiple Threads With One Server Pin
jschell15-Dec-18 7:12
memberjschell15-Dec-18 7:12 
QuestionMerge sort question Pin
Member 1408406810-Dec-18 5:31
memberMember 1408406810-Dec-18 5:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.