anchit pancholi

Ranch Hand
+ Follow
since Oct 14, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by anchit pancholi

Hi,

I have full screen swing application, i have added taskpane at left (East part of bordar layout). Now i want to make this taskpane auto hide and visible on mouse over or touch at any corner of screen (of full screen JFrame).
So how can i add mouse listeners to edge of JFrame?

Please let me know if i am not clear enough.

Thanks
Anchit
10 years ago
Hi,

i have two table :- Products_tbl and Productdiary_tbl




i want to get price from Productdiary_tbl for latest date (so only one record i want ), if entry is not there then price will come from Product_tbl (if no record in subtable then take the record from main table) table like here product_id - 4 entry in not in Productdiary_tbl for that price will come from Product_tbl.

i used below query for get the data but i am not getting data :-




Thanks
Anchit


Hi,

i am using JComboBox which have product name product image, to make it autocomplete i used below listener but name and image in drop down is not getting highlight :-


Please let me know if code is not complete to understand.

looks CaretPosition is not getting set properly due to image in JCombobox. Any idea how can i set Caret Position to correct index?

Thanks
Anchit
10 years ago

Darryl Burke wrote:I wouldn't add an ActionListener to the JComboBox for adding to a cart. I would provide a JSpinner alongside to set the quantity and a JButton for 'Add to cart'

If the JComboBox initially displays a prompt (like ' --- Select --- ' then I would initially disable the spinner and button and enable them only when a valid selection is made (using an ActionListener added to the combo).



Hi Darryl,

Thanks for Suggestion, but i am looking forward use button kind of think in drop down. Do you know similar kind of thing can possible in SWT,Jgoodies or SwingX?

Thanks
Anchit
10 years ago
Hi,

Right now i am using swing combobox and action listener to get selected item. But Now i like modeify the working of current combox by adding button in drop down so if user click twise on button then item will be added twise in cart. i searched but didn't get specific answere according to my requirement, Can anyone suggest some replacement of combobox in which i can add button in drop down ? (or can i add button in drop down, which can act as a button not as item of combobox so that i can use listener on button)

Thank
Anchit
10 years ago
Hi,

i have Java application in which i want to add barcode scanning option.
1. Do i need to write a separate code for different different hardware to scan barcode from java class?
2. Is there any open source project which can help me to read barcode from any or particular hardware?


Thanks
Anchit
10 years ago
Hi Zachary,

Thanks for such a great help

Thanks
Anchit
Hi Zachary,

Thanks for reply.

I am using MYSQL.

Thanks
Anchit.
Hi,

I want to link two column of a two different table, if i update column of first table then it should automatically update to other table like :-
Master Table :- product_id, volume.
Child Table :- product_id,volume.

Master table product_id is FOREIGN KEY for child table.

is it possible if i update volume of Master table and it will automatically reflect in child table as well (and vise-versa)?

Thanks
Anchit
Hi,

i am not sure whether my question is right for this thread.
i have developed one very small point of sale 1 year ago but now i want to change it and thinking to have some Good UI . Does anyone suggest me any Open Source Point of Sale in Java with Good UI? so that i can modify the project according to my requirement.

Thanks
Anchit
10 years ago
Hi,

if i don't want to implement Serializable interface then is there any way i can serialize object ?
how can we manual serialize the object ?

Thanks
Anchit
11 years ago
My JVM is started 5 times by services, that is why it was running same program 5 time, see the log below :-



Any idea why JVM is running 5 times ?

11 years ago

Muhammad Saifuddin wrote:You might calling send email function under the loop? OR share the code snippets.


No it's not that and it's not like that .... if that is the case then could have resolved it before i post here...
11 years ago

Muhammad Saifuddin wrote:

but it is not working for me



Where its breaking? or showing any error? OR read this.



previously class not found exception was there now it get resolved, but one email is getting sent 5 times.
do you know what could be the reason ?

11 years ago
Hi All,

i have one java program which sends email when i run it but i am looking for something which send email when i shutdown and start my PC.
is it mandatory to create windows services for this ? do we have any easy process to create it ? like eclipse plugin.
i tried Java Service Wrapper but it is not working for me..


Thanks
Anchit
11 years ago