No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
[QUOTE]m2 handPhone = new m2(); m2.expensiveBrand();[/QUOTE] it's not correct. you shoud write: [CODE]handPhone m2 = new handPhone("some brand", 123.456); m2.expensiveBrand();[/CODE]
Hello, I'm trying to create Frame with 2 JButtons and 1 JList. Buttons are Add and Remove. After clicking Add button JFileChooser creates and user choses a file. The file then must to be added to the JList. [CODE]public class GmFrame extends JFrame { private JButton bAdd; private JButton bRemove; …
leoeroy, you can create 2d array of objects like this [CODE]SpotInField myField[][] = new SpotInField[length][width]; for (int i = 0 ; i<myField.length; i++) { for (int j = 0; j<myField[i].length; j++) { myField[i][j] = new SpotInField(0,100,0,0,100,0); } }[/CODE] Put this code in main method and enjoy results :)
Hello. Can someone tell me please how can I find out monitor resolution from my Java code? Thanks in advance
Where is class Phrases code? It will be easier for me to find your mistakes having all your project's code.
Could you show all your gui code
Hello, just a little change in your code: [CODE]#include <conio.h> #include <iostream.h> #include <stdlib.h> void swap(int& a, int& b); int input(); void generation(); void show(); int i,j,a[50],n; void main(){ randomize(); input(); generation(); show(); for(i=0; i<(n-1); i++) { if (a[i]> a[i+1]) { swap(a[i],a[i+1]); for(j=i; j>0; j--) { if(a[j-1]>a[j]) { swap(a[j-1],a[j]); } …
The End.
Perveance