Click here to Skip to main content
15,897,334 members
Home / Discussions / Java
   

Java

 
AnswerRe: Setting Path Variable Permanently?? Pin
Fredrik Bornander21-Feb-10 5:53
professionalFredrik Bornander21-Feb-10 5:53 
GeneralRe: Setting Path Variable Permanently?? Pin
AmbiguousName24-Feb-10 3:31
AmbiguousName24-Feb-10 3:31 
AnswerRe: i want toimplement dfs and bfs code in java by reading data from files Pin
Richard MacCutchan20-Feb-10 4:15
mveRichard MacCutchan20-Feb-10 4:15 
QuestionMultiObject Problem Pin
002comp17-Feb-10 1:52
002comp17-Feb-10 1:52 
AnswerRe: MultiObject Problem Pin
Nagy Vilmos22-Feb-10 21:59
professionalNagy Vilmos22-Feb-10 21:59 
QuestionWhat is this project asking me to do??? Pin
polska0316-Feb-10 10:36
polska0316-Feb-10 10:36 
AnswerRe: What is this project asking me to do??? Pin
Richard MacCutchan16-Feb-10 12:03
mveRichard MacCutchan16-Feb-10 12:03 
QuestionJLayer Pane Pin
Jay-Tech15-Feb-10 17:21
Jay-Tech15-Feb-10 17:21 
JLayerPane - three problems

1 - I need fix row and column in layer pane and when mouse click it return my coordinates, not actual?
2 - I want to draw in this Layer, But could't?
3 - When i try AffineTransform, my coordinate origin does not moved?

If anybody have solution please reply........

class LayerPane extends JComponent
  { 
 	void LayerPane(int x1,int y1,int x2,int y2,int x3,int y3,int x4,int y4,int recW,int recH)
  	{
  		JLayeredPane lp = new JLayeredPane();
	        f.setLayeredPane(lp);
         	GridLayout grid = new GridLayout(1600, 1440,recW,recH);
         	lp.setLayout(grid);
		lp.setBounds(x1-5, y1-30, recW, recH);
		lp.setLocation(x1-5,y1-30);
		lp.setOpaque(true);
		Color color = new Color(0, 0, 0, 0.4F);
		lp.setBackground(color);
		MyListenerLP myListener2 = new MyListenerLP();
		lp.addMouseListener(myListener2);
		lp.setVisible(true);
 	} 
 		
    public void paintComponent(Graphics g)
    {
            g.setColor(Color.blue);
            g.drawLine(x,y,x+50,y+50);
        	System.out.print("\nx,y is = "+x); // not execute, why?
      		System.out.print(", "+y);
    }
	class MyListenerLP extends MouseInputAdapter
 	{
    	public void mouseClicked(MouseEvent e)
    	{
        	int x = e.getX();
      		int y = e.getY();
      		System.out.print("\nX,Y  = "+x); // execute
      		System.out.print(", "+y);
     		repaint(x,y,x,y);
    	}
 	}
  }

Question== String comparison [modified] Pin
AnnnS11-Feb-10 2:28
AnnnS11-Feb-10 2:28 
AnswerRe: == String comparison Pin
Richard MacCutchan11-Feb-10 4:26
mveRichard MacCutchan11-Feb-10 4:26 
GeneralRe: == String comparison Pin
AnnnS11-Feb-10 4:31
AnnnS11-Feb-10 4:31 
AnswerRe: == String comparison Pin
Nagy Vilmos22-Feb-10 22:32
professionalNagy Vilmos22-Feb-10 22:32 
GeneralRe: == String comparison Pin
AmbiguousName7-Mar-10 20:41
AmbiguousName7-Mar-10 20:41 
GeneralRe: == String comparison Pin
Nagy Vilmos7-Mar-10 22:22
professionalNagy Vilmos7-Mar-10 22:22 
QuestionJavascript File upload Pin
Kushi Bobby7-Feb-10 17:18
Kushi Bobby7-Feb-10 17:18 
AnswerRe: Javascript File upload Pin
42774807-Feb-10 18:06
42774807-Feb-10 18:06 
AnswerRe: Javascript File upload Pin
Richard MacCutchan7-Feb-10 22:31
mveRichard MacCutchan7-Feb-10 22:31 
JokeRe: Javascript File upload Pin
42774808-Feb-10 0:21
42774808-Feb-10 0:21 
GeneralRe: Javascript File upload Pin
Richard MacCutchan8-Feb-10 0:35
mveRichard MacCutchan8-Feb-10 0:35 
GeneralRe: Javascript File upload Pin
42774808-Feb-10 0:38
42774808-Feb-10 0:38 
QuestionPhyton to Java Pin
BombayGuy5-Feb-10 12:32
BombayGuy5-Feb-10 12:32 
AnswerRe: Phyton to Java Pin
42774805-Feb-10 20:32
42774805-Feb-10 20:32 
QuestionSlot Machine Java Help [modified] Pin
bmnot4-Feb-10 23:48
bmnot4-Feb-10 23:48 
AnswerRe: Slot Machine Java Help Pin
Richard MacCutchan5-Feb-10 1:00
mveRichard MacCutchan5-Feb-10 1:00 
GeneralRe: Slot Machine Java Help Pin
bmnot8-Feb-10 11:21
bmnot8-Feb-10 11:21 

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.