Majestics 84 Posting Pro

Interfaces must contain methods which uses the classes object as a parameter. Look at ActionListener Interface, in this interface you will get actionPerformed method. This method uses ActionEvent object. All the backend work is done by ActionEvent object. You must implement your interface in a manner like this.

Majestics 84 Posting Pro

Its a simple project but with network understanding. For Lan Monitering you must be connected as a gateway so you can map p.c's which are attached with network. For starter search api's which can help you getting connected p,c information. Please watch these api's
http://jnetpcap.com/
, arranging them as a jtree node after getting p.c addresses is v easy...

Majestics 84 Posting Pro

Its a kind of virus, usually present in your c drive. I already faced it and removed it through avg(free edition).

Majestics 84 Posting Pro

Tools -> Java Platform (select latest jdk kit , or one u require)

Majestics 84 Posting Pro

I remember i used to initialize the head with the first linked list address in C/C++ language. But in java there are no addresses concept, Jvm handle pointer for you. So instead of making traditional linked list in java like c/c++ , why dont u try something new. Also LinkedList classes are available in java, then why are you re-inventing the wheel.

Majestics 84 Posting Pro

How can i ready physical layer of osi through c language? Is there any other language to perfom this task?

Majestics 84 Posting Pro

`select s.sname as stationname , sum(di.quantity) as quantity from demand_information di, demand d, company c , station s where s.sno = d.sno(+) and di.demandno = d.demandno and d.cno = c.cno and c.cname = $P{companyname} and to_char(d.demanddate,'MM-yyyy') = $P{gdate} and di.pno = (select pno from products where productname = $P{productname}) group by s.sname'

Following is my query ... i want to print all the stations , so i am using s,sno =+ d.sno ( left outer join) on station but nothing is working right... Please give it a view. Thank you.

Majestics 84 Posting Pro
Majestics 84 Posting Pro

Its just a simple question , but i m totally confused that why php and asp hosting are cheaper then jsp. Also what jsp provide which are not provided by php and asp? Thank you in advance for your kind replies.

Majestics 84 Posting Pro

I want to assigne value to string array but i dont know the size of the array from start... Is there any way to do it
Programatically

for(int i=0 ; i < unkownSize; i++)
string[i] = some value

I hope my question is clear.

Majestics 84 Posting Pro

Problem solved... It was a net bean bug... I simply change order of action listener and every thing working well...
Thank you for giving time.

Majestics 84 Posting Pro

productentries = new productEntries(c) // c refer to sql connection

Majestics 84 Posting Pro

Any About this error
run:
Exception in thread "AWT-EventQueue-0" java.lang.VerifyError: (class: stockinventoryforecast/productEntries, method: <init> signature: (Ljava/sql/Connection;)V) Constructor must call super() or this()
at stockinventoryforecast.mainPage.actionPerformed(mainPage.java:226)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6504)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6269)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4860)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Exception in thread "AWT-EventQueue-0" java.lang.VerifyError: (class: stockinventoryforecast/productEntries, method: <init> signature: (Ljava/sql/Connection;)V) Constructor must call super() or this()
at stockinventoryforecast.mainPage.actionPerformed(mainPage.java:226)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6504)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6269)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4860)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2713)
at java.awt.Component.dispatchEvent(Component.java:4686)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:680)
at java.awt.EventQueue$4.run(EventQueue.java:678)
at java.security.AccessController.doPrivileged(Native Method)

Majestics 84 Posting Pro

This error simply means you havnt initialized object. Paste the complete error message so we can clear your problem

Majestics 84 Posting Pro

Its not a new question, i already searched many forums and found many answers but the builders i found arent able to compete with builder of vb.net and c#.net, so i thought to take some decision from some experience people , please give me some of your suggestions. I already worked on code alot , now i want to work alot faster.

Majestics 84 Posting Pro

http://www.daniweb.com/software-development/java/threads/99132/starting-java-java-tutorials-resources-faq
On top of java forum this link is mentioned. Its nicely discussed thread with all suggestion and help.

Majestics 84 Posting Pro

Thank u v much, i found the solution myself....

I simply use setValueAt function in the default table model.

Majestics 84 Posting Pro

I am trying to make a excel sheet like structure, in which for each row when one cell is updated then it will update the other cell with formula... I think many people are familiar with excel sheet usage and formula... I just debug my code , it seems though table changed is called again and again when table.setvalue is called.... i havnt found any solution yet , so please kindly give me some of your kind suggestions.

Majestics 84 Posting Pro

Sorry, i cant understand this new forum... so cant arrange them... I will learn with time.

Majestics 84 Posting Pro

Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
at javax.swing.event.TableModelEvent.<init>(Unknown Source)
at javax.swing.event.TableModelEvent.<init>(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)
at stockAndSale.tableChanged(stockAndSale.java:239)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(Unknown Source)
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
…

Majestics 84 Posting Pro
at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source)
at javax.swing.JTable.setValueAt(Unknown Source)

I am setting a table row manually.... its just for checking purpose , i have 10 rows and 10 columns but still i am getting this error, please help me to resolve it....

Majestics 84 Posting Pro

I dont know what is ur purpose of creating a user with admin privilege without root permission. But creating a user with root privilage will be a bad idea... create a simple user and switch to root by using "su" command, its safier then creating over heads.

Majestics 84 Posting Pro

Look creating a web browser isnt that simple, u can use already deployed project to understand the working or extend them like http://lobobrowser.org/java-browser.jsp. If you want to open URL in a webbrowser like firefox or IE then use JDESKTOP Api. Hope this Help...

Majestics 84 Posting Pro

I am using jasper report (ireport for designing). I want help regarding to set relative path of the images and jar files for report... As the jasper report pick up the absolute path so it create problem when the drive is changed or even pc is changed... Kindly please help me solving this problem. I m making desktop application.

Majestics 84 Posting Pro

are u using two different pc's?

Majestics 84 Posting Pro

You need an array of integer to place the number's which are use for division. Like

int dividend[] = {2,5};

Then you need a while loop

while(i<dividend.length)
if(start % a[i])

I have checked your code... Look at this line

for(start = start ; start <= end; start++){

You have done a blunder , try int i instead of start. and i want you to figure it out why.

Majestics 84 Posting Pro

First of All "rs.getString(indexno)" is treated as an string , it has no effect... You must write rs.getString(indexno). and is this complete code?

Majestics 84 Posting Pro

Problem lies in the column name, which you are using in the rs.getString() method. Correct your column name.

Majestics 84 Posting Pro

Just write your own function, it will be overwritten automatically. Search the necessary function which you want to edit.

Majestics 84 Posting Pro

Seems like you are working on bydefault class of JBUTTON, you can customize classes in java according to your needs...

AS JBUTTON implements imageobserver class you better check you desired function and overwrite it according to your own needs.

Majestics 84 Posting Pro

Swap these two line.

employee =Integer.parseInt(JOptionPane.showInputDialog(null,"Enter number of employees: "));
int size[]= new int[employee];
Majestics 84 Posting Pro

Check Line 15....... This is creating infinite Loop for you.

Majestics 84 Posting Pro

Nothing works, I simply bought a new switch to forward the connection............ and it worked... thank you all.

Majestics 84 Posting Pro

it isnt wireless , it is wired... I am using Xp sp2, and have a static ip too with all correct parameter's.

Majestics 84 Posting Pro

I have a laptop, i have pluged it with a wire which is near to the router it worked but when i connected it a wire which is 60m away from router it says "UN-identified network", please help me to resolve it.

Majestics 84 Posting Pro

There are two solutions for this ,
1) SERVER BASED (LEARN TO USE SOCKETS)
2) WEB BASED (LEARN TO USE JAVA EE)

Majestics 84 Posting Pro

Well count any not null column in the table. Then the below code will help u.

if(resultset.next())
long count = Parse to Long (resultset.getString("columnname"));
Majestics 84 Posting Pro
Majestics 84 Posting Pro

Convert Write String to a function which takes int as a parameter and returns the String to execute.
Let me explain more

method String writeString(int)
{
return Here is ur code
}

Declare a variable locally increment it and send to function.
Majestics 84 Posting Pro

Its too simple
String.split("(Space)") // Leave a space here ... Second split function returns a String array so u need a String array to carry the values.... Like

String a[] = String.Split(" ");

And then print them or use them for ur logic...

Hope this Help....

Majestics 84 Posting Pro

what java have to do with this? If you want to optimize sound then use a algorithem to optimize the sound.

Majestics 84 Posting Pro

I think you want to get the current salary of the user when u change the combo box value, try read this article
http://docs.oracle.com/javase/tutorial/uiswing/events/itemlistener.html
Make a method which on change or selected values in combo box search the file for the specified value and place it on the textfield.

Hope this helps....

Majestics 84 Posting Pro

Alot questions??? You made me confuse mkorbel
Well let me put it very simple
I want to create a content filtering software which filter the website on specific keywords which are feeded in the software....
:)

Majestics 84 Posting Pro

I hope u havnt taken it filter in java :-), i want to create a filter for internet which do content filtering on some keyword, but dont know how to start , any body just an hint please..... Thank you

Majestics 84 Posting Pro

Thank you all, i found the solution myself.... :)

Majestics 84 Posting Pro

I m trying to pass a 10.10 value to double and it takes 10.1 instead of this? Any solution.

Majestics 84 Posting Pro

So , how do i set it.... I have 10 computer linked with a single switch , a router is attached too which has dhcp on, i want to do content filtering..... Please help

Majestics 84 Posting Pro

what if we are using xp.... i will download the necessary software... please give me the necessary instruction.

Majestics 84 Posting Pro

I have only one lan card, i want to set up a proxy server and redirect all other pc to my pc for content filtering, does any one knows any better method, because i cant afford new lan card.

Majestics 84 Posting Pro

Its a simple problem... I placed the socket code under a button, if server is present it respond very quickly if not it takes time to respond.... I want to shorter that time , is there any way?