No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[CODE]#include<iostream> #include<conio.h> using namespace std; class base{ public: base() { cout<<"base constructor"<<endl; getch(); } virtual void out() { cout<<"I AM BASE"<<endl; getch(); } }; class derived : public base { public: derived(){ cout<<"derived constructor"<<endl; getch(); } void out(){ cout<<"I am derived"<<endl; getch(); } }; int main(){ base b,*bp; derived d; … |
|
I am working on a application for which i need to connect it to a database. I have chosen postgreSQL. But i cannot connect it to java. Can somebody help. I tried this [url]http://www.faqs.org/docs/ppbook/x20856.htm[/url] but i don't know how to set classpath.I am currently working with windows xp. |
|
Please send me the working link of 'free downloading oracle9i' and steps for downloading it. Thank you! |
|
I was trying to solve this query: [B]Find all the students who have taken the course taken by a instructor named 'XXX'.[/B] Well the division operator of relational algebra can do it easily. I want to know how to use the division operator in sql(if there is any) or any … |
|
Is it true that a relation which does not have a composite key will automatically be in 2nf. The definition states that every non key attribute should be fully functionally dependent on the primary key. So if there is no composite key every attribute qualifies as fully functionally dependent on … |
|
[ICODE]select eid from(select count(*) cnt,eid from certified group by eid)as foo where cnt=(select max(cnt) from (select count(*) cnt,eid from certified group by eid)as goo);[/ICODE] This query displays the eid with maximum no of entries in the table certified. Which in this case is no. of aircraft licensed to an eid. … |
|
This is the code of my key listener for a game.The keys move a plank upwards and downwards for two players.The problem is when one player keeps a key pressed then the other key event does not execute.what i want to do is that both players should be able to … |
|
[CODE]import javax.swing.*; import java.awt.*; class drawer extends JPanel { Color color; int x; drawer(int x,Color color){ this.color=color;//color of rectangle this.x=x;//size } public void paintComponent(Graphics g) { super.paintComponent(g); g.drawRect(0,0,x,x); g.setColor(color); g.fillRect(0,0,x,x); } } public class layers { public static void main(String[] args) { JLayeredPane layerd=new JLayeredPane(); layerd.setSize(800,800); layerd.setVisible(true); layerd.add(new drawer(50,Color.BLUE),2); layerd.validate(); … |
|
Note: NotePad.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.[code][/code] |
|
is there any layout manager or some other way to add a label or any other component starting from a specific point like we draw rectangles i need this because i want to move the label around with input. |
|
|
hello guys, Can any of you help me create a game in java?? There has to be two paddles, one at the top and the other at the bottom. The paddles have to stop the ball from getting out of the screen. The ball cannot leave the screen from the … |
[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; class plc extends JPanel{ plc() { this.addKeyListener(new MyKeyBoardListner()); System.out.println("key listner added"); } public void paintComponent(Graphics g) { super.paintComponent(g); g.drawRect(0,0,10,60); g.fillRect(0,0,10,60); } private class MyKeyBoardListner extends KeyAdapter { public void keyPressed(KeyEvent ke) { System.out.println(ke.getKeyCode()); } } } public class plank { public static void main(String[] … |
|
this code shows the second oval only when maximize is pressed otherwise only the one oval is shown and the first oval does not go to the getHeight() where as the one appearing after maximizing repaints correctly [CODE][/CODE][code]import javax.swing.*; import java.awt.Graphics; class drawpanel extends JComponent implements Runnable { int i=10,startx; … |
|
How do get the content(Text or Numbers) of a text box in a windows form and take it to the next windows form and use it there. |