Majestics 84 Posting Pro

Agreed with Ezzaral, Check Line 32, you are using a variable without even intializing it. Check this page out http://www.javaworld.com/javaworld/jw-03-1998/jw-03-initialization.html?page=2.

Majestics 84 Posting Pro

You rock man, Thanx Alot.............................

Majestics 84 Posting Pro

Is there any way to extend gaps between jmenuitem?

Majestics 84 Posting Pro

Seems like u want to abort a thread cleanly if it fails to complete in a desired time. I think "interrupt" is one of the possible way's, u need a exception handler in which u can print a message or empty as u desire....

Majestics 84 Posting Pro

Print out the original string u got

System.out.print(userString);
Majestics 84 Posting Pro

Sorry, but i thought no answers from here so i posted some where to get my answer....

Majestics 84 Posting Pro

I just found table model listener.... And it solved a great deal of my problem. But Still i cant select a new cell for updation, each cellEditAt call tablemodelevent function call which iterate and generate a error... Any Help Regarding to this...

if(table.getSelectedColumn() == 3 && table.getSelectedRow() != -1 && tme.getType() == TableModelEvent.UPDATE)
table.editCellAt(table.getSelectedRow() + 1, 0);			{
Majestics 84 Posting Pro
if(table.getRowCount() >0)
if(table.getSelectedRow() == (table.getRowCount() - 1))	
table.editCellAt(0,3);
else
table.editCellAt(table.getSelectedRow()+1,3);

Well its the code in public void keyReleased(KeyEvent ke)

And its not working, i will post a video to make it more clear... Problem is it select next cell for edit but when it reaches to end it select the first row and after VK_ENTER it move from column 3 to 4, Thats my problem...

Majestics 84 Posting Pro

Well i want to edit a cell and when a user press enter next cell automatically selected in edit mode.... Its just a name entering form , when data is entered in one cell cursor moves to next.

Majestics 84 Posting Pro

Sorry, i forgot to mention the brackets.... Still the same problem....

Majestics 84 Posting Pro

I have using following code over jdk 6.0 but after first round it doesnt work ....

if(table.getRowCount() -1 == table.getSelectedRow())
table.editCellValues(0,columnno);
else 
table.editCellValues(table.getSelectedRow(),columnno);

These lines are in mouse clicked method... Problem is when it reaches to end, and when fw button is pressed it jumps to another column.... Any Suggestions;.....

Majestics 84 Posting Pro

Reduce the number of column from 50 to 30....

incoming = new JTextArea(15, 30);

Your Text is appearing but isnt adjusting over frame correctly...

Majestics 84 Posting Pro

I tried today many times but nothing work... So whats the procedure to give exam for this certification????

Majestics 84 Posting Pro

ORA-01000: maximum open cursors exceeded tips

I am getting following error.
I made a combo box with select query behind it, i used itemlistener to fetch data. Today during testing i found that if user move too quickly in combo box so select query will be fired for each number he passes and it gives an error. So what does it mean and how to resolve it... Thank you in advance.

Majestics 84 Posting Pro

Thanx Korbel, i found a better solution then above but u still given some excellent points.. It will be very helpful in my project.

Majestics 84 Posting Pro

I am using jcalendar... I want to bind it with a textfield, i am using button to display this calendar , but i want to display it below the date text field, any suggestions???

Majestics 84 Posting Pro

Sorry... I have only used A and B statement.. I asked my teacher today, he said both are right answer's but its an assignement to figure it out how? I applied them in main , also in constructor... Now after using them at class level i finally found my answer.... Greate Job.... I just want a autograph from u. :)

Majestics 84 Posting Pro

Well its just a question... I saw it in a book and answer's are these.... I just want to know the pofessional suggestions

Majestics 84 Posting Pro

1) Illegal modifier for parameter a; only final is permitted
2) Cannot define dimension expressions when an array initializer is provided

Majestics 84 Posting Pro

I use the above syntax in eclipse , but it given me the error..... Any suggestion

Majestics 84 Posting Pro

Which two code fragments correctly create and initialize a static array of int elements? (Choose
two.)
A. static final int[] a = { 100,200 };
B. static final int[] a;
static { a=new int[2]; a[0]=100; a[1]=200; }
C. static final int[] a = new int[2]{ 100,200 };
D. static final int[] a;
static void init() { a = new int[3]; a[0]=100; a[1]=200; }
Answer: A,B

Can any one explain how??? Thank you

Majestics 84 Posting Pro
Majestics 84 Posting Pro

Thanx Korbel, i just made copy possible
Now my task is to
1) run new file
2) close my old app.

And both are same file but on different location.

consider bee.jar , it starts from drive c and make a copy at drive f , now c:\bee.jar start f:\bee.jar and close itself.

Majestics 84 Posting Pro

I am creating a project, which one start copy itself to any drive and stop execution and run other file which was copied....

No progress yet... Has any one done similar type of project before.... Need a bit for starting guidance.... Thank you.

Majestics 84 Posting Pro

Thank you...... All for Great Help

Majestics 84 Posting Pro

Please help me solving few thought questions

1) 255.0.0.0 is class A subnet mask which mean 255 network portion but in ip address we can only use upto 126.255.255.255, after 127 class b range starts?

2) If we buy an IP , after doing subnetting of that ip, how will i use my bought IP.. I mean i bought 192.168.0.0 and i subnetted it in 4 network , what will be the function of main IP i bought then?

Thank you....

Majestics 84 Posting Pro

I googled alot about netbios but didnt understand it completely. Please help me a bit

1) Why we use netbios
2) What is netbios alternative
3) Why microsoft is not using netbios any more

Thank you all.. Single line answer is enough....

Majestics 84 Posting Pro

I already used that format in insert query and it worked fine... but in update query it is giving me error. thank you for a nice suggestion to use NOW() function.

Majestics 84 Posting Pro
mysql_query("UPDATE hostip SET time = '".date("d/m/y h:m:s")."' WHERE ipaddress = '".$ip."'");

Whats the problem in this query.... Its giving me syntax error...

Majestics 84 Posting Pro

Well i just want to say , dani web is a great forum to discuss IT but there is no area where we can discuss over security and secure coding. As many recent incidents proved that learning secure coding methods also necessary for programmers....

So.... Just a suggestion....................................... :)

Majestics 84 Posting Pro

Please answer this question as well

int *p;
what does these mean?
cout<<p;
cout<<&p (Especially what it mean)
Majestics 84 Posting Pro

SOrry guys to disturb you all... I just need a little help , can some one please give me a brief introduction to pointer...

also i have some question, what does these mean

int i;
cout<<i (mean to print i)
cout<<*i (what does it mean)
cout<<**i (what does this mean)
cout<<&i ( address of i)

Thank you.....

Also 

(int*())buffer (what does this mean).
Majestics 84 Posting Pro

Sorry folks, i m a bit confused in networking protocols so please help a bit
my questions are
1) Why udp is made if ip is present for communication
2) How routers communicate each other ? Through mac or Ip address
3) How router broadcast? Through Ip or udp

Thank you

Majestics 84 Posting Pro

is 192.168.0.1/8 is allowed? I have many tutorial which allow atleast 24 for this....
But an ip calculator calculate the above question.

Majestics 84 Posting Pro

I simply want to make a software which is dos based and can read harddisk address.....

Majestics 84 Posting Pro

I am going through bios..... So can u help me regarding this?

Majestics 84 Posting Pro

I want to read the boot sector of hard disk. And i think i found a way to do this....
But still any help will be appreciated...

Majestics 84 Posting Pro

How can we access hard disk addresses from c language, accessing ram address is easy? Also can we access MBR of NTFS through c , just a bit dissusion required for starting my work? Thank You All in Advance.....

Majestics 84 Posting Pro

Please help me with my sub netting concept...

what 10.2.1.1/9 mean?

Majestics 84 Posting Pro

I think the program you were going to create is the most simple for you. Also try to build a calculator, or a notepad.

Majestics 84 Posting Pro

1) Use i++ at the end, If you want to show user that please enter value one then use i+1 in print statement.
2) You need to set size for integer array before using it, int a[] = new int[6] // because you want to store 6 values
3) Take input in each array position a[position] = someintvalue
4) use for loop to print them all.
:)

Majestics 84 Posting Pro

You must have a cipher text and its original text (If You are Lucky)
Try Brute Force with different keys (Work 100% But takes alot time)
Try Intelligent Search for key (Require some data about the key)

Majestics 84 Posting Pro

Authors values for setSize is Correct, it correctly display the frame and its component. While choosing a fixed size frame Author possibly tried a value then improved it further until the display become correct..
I myself tried fixed values many times and reaches to conclusion after trying some values... :)Well any one has better trick please guide me then.

Majestics 84 Posting Pro

Check are u intializing each drawObjects before you use it

drawObjects[i] = new Shapes(); // Are u doing like this.........................
Majestics 84 Posting Pro

So where is the code............... Its a easy assignement
check:
scanner class for input through console mode
JOptionPane input dialogue box for input through GUI
code after creating a bit logic and submit here... We will help you further...

mKorbel commented: right +9
Majestics 84 Posting Pro

I have a experience of network programming in java... now i want to implement them in c with more better support, i have used c++ long time a ago... Now i dont know which compiler of c++ is better, which support socket api... and which operating system provide more flexibility to work... Advance thanx for your suggestions.

Majestics 84 Posting Pro

Well i asked my teacher to change my assignement , now its on hash function .. I have to implement MD2 hash... I search some website , found the theoratical section regarding to MD2 hash.. If some one already did this job please help me a bit, because time is very short... Just 2 or 3 line description which provide a base for start coding... I am extremly sorry i am using the same thread for different question...

Majestics 84 Posting Pro

MouseListener for Windows.... I was only told this ... I have searched a bit and found to try c or c++...

Majestics 84 Posting Pro

I want to create MouseListener library from scracth... Its just a assignement ... I have no idea to develop a thing in which i cant use that api directly from java... Please Help.

Majestics 84 Posting Pro

Use Decimal Format Class....

DecimalFormat df = new DecimalFormat("#.##");
df.format(doubleValues) // Return a String