Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~6K People Reached
Favorite Tags

26 Posted Topics

Member Avatar for jazz_vill

Hi I want to count the number of occurence of each characters in a string from a client then the server will compute the occurences and pass back to the client the result.You may have noticed that I used String for result coz im planning to send a string to …

Member Avatar for Reshma_2
0
2K
Member Avatar for j23

Another suggestion in order to ask for the numbers once is to ask the user to separate each number by a separator you prefer maybe a comma or a whitespace. Split the string using the separator. [code] String input = JOptionPane.showInputDialog("Enter the numbers separated by a comma:"); //split the string …

Member Avatar for stultuske
0
128
Member Avatar for syspect

Try to look on [URL="http://docs.oracle.com/javase/tutorial/uiswing/components/table.html"]JTable[/URL] or [URL="http://docs.oracle.com/javase/tutorial/uiswing/components/list.html"]JList[/URL]

Member Avatar for jazz_vill
0
191
Member Avatar for Nandomo

Try to click the component on the GUI Builder in Netbeans right click->Customize code. It will show you the generated code on that particular component. Also don't just rely on generated code because on some point you need to customize that code so it will meet your requirements. Better try …

Member Avatar for jazz_vill
0
141
Member Avatar for pro_learner

I'm not sure if this is what you want. Here is an example. We may have different implementation on fetching data but the point here is the abstraction so that your view does not know how the data are fetched. For the sake of completeness and clarity I added a …

Member Avatar for pro_learner
0
149
Member Avatar for javabeg123

[CODE] import java.util.Random; public class Sequence{ public static void main(String args[]){ //loop counter int counter = 0; int randomNum; Random r = new Random(); do{ randomNum = r.nextInt(9); System.out.print(randomNum); counter++; }while(randomNum != 0); System.out.print("\nLength of the sequence was "+counter); } } [/CODE] Sample Output: 7176430 Length of the sequence was …

Member Avatar for jazz_vill
0
109
Member Avatar for jazz_vill

I have a Java Desktop Application I made and I am now on the process of deploying the application. I tried to use Java Web Start but came up with certain problems. My application is fully working when I start it locally or inside my IDE. But when I try …

0
136
Member Avatar for pxndx

You can make an update function that updates your jtable everytime you add/remove employee. Call this function after you add or remove an item in your table. it might look something like this. [CODE] public void updateTable(JTable table){ DefaultTableModel model = (DefaultTableModel)table.getModel(); List<Employee> employees = employeeDao.getEmployees(); model.setRowCount(0); //empty your table …

Member Avatar for jazz_vill
0
160
Member Avatar for jazz_vill

I'm trying to populate our database using some curl command like curl --user username:password [url]https://somewebsite.com[/url] curl - d "name=New User Name&address=New User Address" [url]https://somewebsite.com/api/add/new[/url] The instructions that they gave to me uses curl but I want to do it in Java so I decided to use HttpClient here's my code …

Member Avatar for jazz_vill
0
270
Member Avatar for jazz_vill

I'm kind of confused about this. I want to create two threads that works in the same data. For example if I have an array of Strings then I want this two threads to work in each unique item say add a letter 'p' in each strings. My question is …

Member Avatar for jazz_vill
0
92
Member Avatar for jazz_vill

Hi I'm looking for a thesis topic and I came up with the idea but I want to consult some of you first if this might be done. Java Code Automatic Refactoring and Code Optimization. but I have read that this might be mutually exclusive because code optimization might make …

Member Avatar for TrustyTony
0
139
Member Avatar for jazz_vill

Hi I was tasked to create an admin panel which is more on database data manipulation. I want to use AJAX,XSLT, and PHP I've been studying a lot lately but most of the examples loads contains only a single page. Say I have navigation/menubar template I want to know how …

0
58
Member Avatar for jazz_vill

I want to know how will I pass this table values using a form. I have a list of products and each item belongs to a section and each section has different attributes. The attributes section are columns where the user can input a number of products he wants to …

Member Avatar for Designer_101
0
188
Member Avatar for jazz_vill

I have this function [CODE] function displayOrderList() { $path = "file.csv"; $file = fopen($path,"r"); $row = 0; while (($column = fgetcsv($file,1024," "))!== false) { $row++; $price = $column[0]; $product =$column[1]; $productid = $column[2]; $price_id ="price".$row; $qty_id = "qty".$row; $total_id = "total".$row; echo "<tr align=center> <td><input type=\"text\" name=\"qty[]\" id=\"".$qty_id."\" value=\"0\" size=\"5\" …

Member Avatar for almostbob
0
62
Member Avatar for jazz_vill

Hi I have this table inside a form and in this form Im also fetching data from a csv file to display product informations in a table. I want a javascript code that when a user inserts a quantity value of the product he wants to buy the total column …

Member Avatar for parry_kulk
0
122
Member Avatar for jazz_vill

I have this table forum and topic and i want to query forumname, description, total topics in the Forum idk how to do this i tried an sql statement like this SELECT f.forumname,f.forumdesc,max(t.forum) as total_topics from Forum as f INNER JOIN Topic as t WHERE f.forumid = t.forumid; of course …

Member Avatar for urtrivedi
0
238
Member Avatar for veledrom

if its a webserver this will help [url]http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-9.04-lamp[/url] another alternative is to use xampp for linux a.k.a. lampp [url]http://www.apachefriends.org/en/xampp-linux.html[/url]

Member Avatar for veledrom
0
185
Member Avatar for riotburn

this might help [url]http://www.codeproject.com/KB/printing/printingwitherror.aspx[/url]

Member Avatar for jazz_vill
0
419
Member Avatar for OmniX

you can also set the root directory of your server to www/2/ folder if your using Apache webserver edit the httpd.conf and change the root directory there. or you can also put your 3.php file in your www folder since that is your default root.

Member Avatar for OmniX
0
78
Member Avatar for jazz_vill

Hi my Prof. wants me to create a forum website from scratch. This forum contains only basic functionalities like creating a forum,a new thread in the forum, post a reply. So I created a database which contains these tables: Users Groups Forums Topics Posts now in my homepage I want …

Member Avatar for macneato
0
102
Member Avatar for jazz_vill

I manually set-up a partition during my installation of Ubuntu 9.10. I only created a swap partition about 512mb and a root partition of 10gb and no partition for /home but I have a partition for all my data files. What I really want is a separate partition for programs …

Member Avatar for here2serve
0
121
Member Avatar for laelzio.mosca

its also a good practice to have a getter and setter function. like if you want to set the car doors you can call car.setdoors(5); then if you want to know the the number of doors in a car you can then call a getter method. car.getdoors(); or you can …

Member Avatar for kvass
0
118
Member Avatar for salamjamal10

The split method splits the string to depending on the regex specified then converts the string into an Array of subtrings. Localps solution is almost correct except that the index where wrong it should be, System.out.println( "\nReversed name:" ); String[] Name = name.split( "," ); System.out.println(Name[1] +" "+ Name[0]);

Member Avatar for salamjamal10
0
116
Member Avatar for prankyrules

well it depends if you have your primary key say UserID INT AUTO_INCREMENT then all new datas are appended ex. if your last entry before you updated it is UserID = 100 then your new data entry should start with 101 to N where n = number of new data

Member Avatar for jazz_vill
0
107
Member Avatar for isuruj
Member Avatar for jazz_vill
0
87
Member Avatar for jazz_vill

Hi I need help on how to use LDR and ADC0804 in 8051 microcontroller. So far I have this in my project but I want to replace the switch with LDR (dark activated). What happens here (attached file)is that I use the switch to decrement/increment the number of cars and …

Member Avatar for jazz_vill
0
993

The End.