36,051 Topics

Member Avatar for
Member Avatar for itsmeisuru

Hi, I have a value in a string variable in java, and I want that string to get print using a printer. Please help me..

Member Avatar for jon.kiparsky
0
93
Member Avatar for Dean_Grobler

Hey there, I'm in somewhat of a predicament. Can you send HTML form data to a servlet on another computer over the net or something? If so, what would one put in the <form action="_"> attribute? Thanks!

Member Avatar for masijade
0
69
Member Avatar for Dean_Grobler

Hey guys, I've taken on a project where I have to code an applet that gathers information and sends it to a database. The thing is though, that the client's website is being hosted by some other unknown company. I have the impression that in order for this to work, …

Member Avatar for masijade
0
370
Member Avatar for JPramod

Hi, I am running Ubuntu in my machine and I tried this code: [CODE] import java.io.InputStream; import java.io.IOException; import java.applet.Applet; import java.awt.*; public class execute extends Applet{ String output=""; public void init(){ try { // Execute command String command = "ls"; Process child = Runtime.getRuntime().exec(command); // Get the input stream …

Member Avatar for mKorbel
0
743
Member Avatar for sumprit

Hi, everyone i am still could able to use Nested sub-header though i have found a link. Will anyone please come come forward and provide me some valuable suggestion. I have found the link but i could not able to use database values. http://www.swebb99.f2s.com/GroupableHeader/ How to include database values here.... …

Member Avatar for mKorbel
0
145
Member Avatar for jhonilson

Hi. I am using TinyMCE editor in my web but when I submit the form the text is save in the database without format. Could you tell me please How I can submit formatted text with JSP?? NOTE: *i am using netbeans 6.9 *the form is "multipart/form-data" *the tinymce version …

Member Avatar for jhonilson
0
74
Member Avatar for Ukiya006

Hi, I am pretty new to Java, only started learning bits here and there last Sept. Recently, I have been trying to implement a SMS sender with the help of RXTXcomm.jar What I didn't realise was that the RXTXcomm.jar that I have only works for 32bit Windows. I only realise …

0
64
Member Avatar for sciprog1

Hello Members, How do you color a range of cells in a WritableWorkBook (in Jxl)? Thank you!

Member Avatar for sciprog1
0
58
Member Avatar for gingerfish

hello programmers is it possible to extract some part of 2D array and make a new 1D array? for example from this array String[][] twoDarray= { {"s", "y", "r"}, {"s", "n", "r"}, {"w", "y", "r"}, {"r", "y", "p"}}; take first column of twoDarray[0] and make this `arrayString[] newArray = {"s","s","w","r"};` …

Member Avatar for gingerfish
0
800
Member Avatar for Mestika

Hi everyone, I'm working on a small project and have run into some problems. Briefly described, what I'm attempting to do is: I've a rather large text file with a different sentence and I need to find all the words in each sentence and add them to some sort of …

Member Avatar for JamesCherrill
0
457
Member Avatar for bhallarahul

can u please tell me how to make a graph or say what is a logic behind designing graph in jsp

Member Avatar for peter_budo
0
93
Member Avatar for jitsux

So I tried to write a program that creates 15 random strings then allows the user whether he wants these strings sorted in descending or ascending order. the original strings and the sorted one to be displayed accordingly as well. Here is my attempt: [CODE]class Sorted strings{ final static int …

Member Avatar for masijade
0
127
Member Avatar for Taimoor Rana

Hello lovely people, I created an application in which I use pictures to create background and other things. But when i send my application to someone so they can have a look at it, the image are not displayed. I know why they are not displaying(the image directory isn't the …

Member Avatar for masijade
0
99
Member Avatar for nickliutw

I'm working on a manage friend list program which allow you to add friends, remove friend from list, and display friend list. I have not finish this program yet. But I keep getting compile error at line 42 which I'm trying to create a method allow user to enter name …

Member Avatar for nickliutw
0
228
Member Avatar for Amoryethel

Hi, I'm in the midst of creating a BrickBreaker game, and I'm having a bit of trouble repainting the Ball back to where it originally started at the beginning of the game. Which only happens when the ball hits the bottom of the screen (initY == bottomBound || initX == …

0
59
Member Avatar for MrHardRock

Hey everyone, I have my code written I just have one error I am stuck on, any help is greatly appreciated, thanks in advance. My one error is on line 80 saying "illegal start of expression" pointing at the 'p' of public [CODE] import javax.swing.*; import BreezySwing.*; public class binary …

Member Avatar for cretaros
0
155
Member Avatar for cretaros

Can someone help me in implementing a JDate picker without using packages, whereby will click the calender icon and the calender will appear.

Member Avatar for cretaros
0
2K
Member Avatar for ahmed3415

Hi there, I need help with my assignment it has to do with Client-server programming and the following is what i have been asked to do for this assignment. So far i have the server reading from the file and the client is able to read the contents of the …

0
89
Member Avatar for neemo6

Wondering how one goes about testing which button was clicked in an actionperformed method. For example if I have 2 buttons named button1 and button2, and create an if statement what is the proper syntax, ive tried this but get errors. Where am i going wrong? [CODE] //declaring buttons Panel …

Member Avatar for neemo6
0
189
Member Avatar for goyofoyo

so I am creating a program that has a human bicycle car and truck and they all run on a street but they can collide. so I am confused on how I should write it, the car should be able to collide with the other three objects. I have more …

Member Avatar for VernonDozier
0
402
Member Avatar for Tellalca

Hey; I'm getting into Java. I'm coming from C++ base and I wonder how can we use "const" parameters in Java? For example if I don't want the function to be able to change the value of a parameter, what do I do? [CODE]void modify(RefObject parameter) { parameter.set(new RefObject); //should …

Member Avatar for Tellalca
0
387
Member Avatar for lookuta2011

hi guys am new to java and i have to display rotating images on a gui and use multithreading to alternate the four images. and i managed to create the gui but the images are not visible. the rotating images must be in the center of the frame. help..

Member Avatar for JamesCherrill
0
103
Member Avatar for javacle

I'm looking for a compact and small database engine to use, because i want to design an application that will store, record and get data from a database, i'm thinking of using VB or java as the programming language, the database that will work best for which programming please i …

Member Avatar for kinger29
0
174
Member Avatar for nHulk

Here's the thing, I need to create three dropdown lists each for day, month, year. Once these are selected, after clicking a button, the three selected values need to be concatenated and bound to a date column in a database table. String month=request.getParameter("month"); String date=request.getParameter("date"); String year=request.getParameter("year"); how to concat …

Member Avatar for nHulk
0
245
Member Avatar for dresposure

Hello every body............ I am about to do a project on chatting application. Can any1 plzzz tell me how to create a .bak file using Java.:)

Member Avatar for masijade
0
295
Member Avatar for computerwizard

What I would like to do is print the current jsp filename without the ".jsp" extension. I can print the absolute url, or the relative url, but I can't figure out how to print just the filename without the file extension.

Member Avatar for javaAddict
0
171
Member Avatar for Hockeyfreak889

i need to make a program that implements a heapsort using a binary tree. i understand the algorithm for how to do the sort, and i understand how it would be done using an array, but for my class i have to use a binary tree. The problem i am …

0
83
Member Avatar for ggyyree

Hi there, I am considering develop something use a Access database, which has been formed earlier by other my colleagues. However, I am trying to develop a cross-platform application, and I believe Access is MS related and is not friendly to Linux. There are many options of the database like …

Member Avatar for Ezzaral
0
169
Member Avatar for lynnajoe

Hi, I am confused as to all the posts by newbies. If they are new (which I am) how do they know all this code they post? I have a question and it is very basic. All I want to do is to get one JButton to pull up an …

Member Avatar for yancouto
0
136
Member Avatar for yosi501r

Hi everybody, I want to get the HTML source code of a page like: [url]http://morfix.mako.co.il/default.aspx?q=connection&source=milon[/url] (the page is in hebrew) But, after entering a hebrew page the characters I get are like � ׳�׳ ׳’׳�׳™ ׳¢׳‘׳¨׳™ ׳¢׳™׳‘׳¨׳™, ׳�׳™׳�׳•׳� ׳�׳ ׳’׳�׳™ I want to see the Hebrew as it is. The current code: …

Member Avatar for mKorbel
0
184
Member Avatar for nard23

[CODE]public class Tokenizer{ public static void main(String args[]){ String Arr[] = new String[20]; Scanner scan = new Scanner(System.in); System.out.println("Enter a String: "); String st = scan.nextLine(); Tokenizer tk = new Tokenizer(); tk.makeToken(st, Arr); } public void makeToken(String st, String Arr[]){ int i=0; StringTokenizer Tokens = new StringTokenizer(st); while(Tokens.hasMoreTokens()){ Arr[i]=Tokens.nextToken(); i++; …

Member Avatar for nard23
0
89
Member Avatar for stupid guy

hi all, i m trying to insert a textfield's value in a table through applet.The table name is samp and it has only one column named 'name'.I did following control panel->admin tools->data source->and then i have added a 'bike2' as new data source. I have 4 files created. 1.Entry.java 2.Bikinfa.java …

Member Avatar for mKorbel
0
397
Member Avatar for tracydo

I have this problem with given answer but don't understand why. May someone help explain? Thanx if (x>5) y=1; else if (x<5) { if (x<3) y=2; else y=3; } else y=4; ----------------- what is the value y if x=3? answer was: y=3

Member Avatar for JamesCherrill
0
122
Member Avatar for unkn0wnStu

Hi, I'm trying to create a highscore database for my game, and would like to start off with a view high score frame. When the user clicks this frame will pop up, but for some reason I can't set the player and score information to my JLabels. I'm not sure …

Member Avatar for JamesCherrill
0
3K
Member Avatar for tinachan

I was surfing net for updates and I found Mobile Hands-on Lab v1.5. It has modules that cover Qt, Web Development and Java Me. It give an outline to the module contents, explains the Development Environment, describes the key aspects of the programming language, also provides with an optional brief …

Member Avatar for peter_budo
0
146
Member Avatar for kako13

Hi, I am trying to copy the selected jTree elements on the left to the jTree on the right. However, I had been unable to acomplish it even when I had been looking at some books, google, forums... I had attached a screenshot. Thanks.

Member Avatar for mKorbel
0
98
Member Avatar for Jessurider

can anyone tell me what's the error in this rmi calculator program....... especially the clint.java......... here when i run the rmi calculator.........i gets an applet calculator.....but for all the mathematical addition,sub,div,mul......i'm getting the null value.......i also doubt at whether the try catch is placed wrongly............

Member Avatar for jwenting
0
129
Member Avatar for scarletfire

System Specification A local football club wishes to store information on its current squad of players: Each Player’s personal information (first name, last name, age, height and weight) should be recorded in a class Person. Each Player’s record for the season should be stored in a class Player. The information …

Member Avatar for scarletfire
0
162
Member Avatar for deviliq

Hello there! :) How should i solve for x in this equation: p*e^-x + q*sin(x) + r*cos(x) + s*tan(x) + t*x^2 + u = 0 with the user to input the values of p,q,r,s,t and u. i'm thinking of looping from 0.0001 until i-dont-know-what and then testing each value of …

Member Avatar for deviliq
-1
242
Member Avatar for deviliq

hi there [B]how do i determine the average Number of Queue Items that leave the queue (example: processes leaving the ready queue in order to be Running in the CPU) per second?[/B] i need this value to calculate for the average waiting time. the formula is: w = n/X where …

Member Avatar for deviliq
0
1K
Member Avatar for germaine.tay

Hi, I have a list of record which I got from database. I've placed the checkbox on the right, how do I get the value from it? [CODE] <form action="editOrder.jsp"> <tr> <td><%= ord.getOrderID() %> </td> <td><%= ord.getRemarks() %> </td> <td><%= ord.getOrderDate() %></td> <td><%= ord.getMailingAdd() %> </td> <%--<td><%= ord.getStatus() %> </td>--%> …

0
45
Member Avatar for ea25

Hi all, my first post here :) I'm new to java so please bare with me. I'm writing a very simple applet to get my skills going in Java. Practically my applet fetches an image from an external URL (using java.net.URL) and paints it in my applet. So far so …

0
88
Member Avatar for sj5536

hi i want to create swing application that has google map i searched on net but i hanot got any useful resource

Member Avatar for peter_budo
0
314
Member Avatar for sumprit

Hi..., i have a problem. if anyone can please give me some suggestion then i could able to proceed further. My problem is that i need to show database values in JTable. i have two database table and i query to display data in a JTable. I am just sending …

Member Avatar for javaAddict
0
158
Member Avatar for bhattpratik

Hello Everyone !!!! [COLOR="Red"][B]Is It Possible To Create JSP at A runtime ?[/B][/COLOR] It Means Can we Get The Data From One JSP And then Show it on another JSP which is Generated [B]By Coding [/B]Through Runtime ? Please Help......:S

Member Avatar for masijade
0
107
Member Avatar for Chitru

i was coding GUI in Java. i'm just a beginner and i can't figure out on what program is mistaken please help me on this: [B]Compilation error is:[/B] helloworld\FourthApp.java:38: class, interface, or enum expected public static void main(String[] args) { ^ helloworld\FourthApp.java:40: class, interface, or enum expected } ^ 2 …

Member Avatar for masijade
0
649
Member Avatar for bharathisankhya

Hello everyone, Can anybody tell me how to call javascript in Reasonable Servlet Faces(RSF).

0
69
Member Avatar for sumprit

hello everyone, i am using OSM in a swing application. Now what i needed is that when i clicked the mouse then it must perform Zoom in/out on the OSM. i could not able to perform the actionClick action for the mouse. How can i able to do it. If …

Member Avatar for sumprit
0
112
Member Avatar for gekkoswave

Hi in this program i want it to run for 720 loops but it keeps stoping short for some reason. There is no compilation error or runtime error. [CODE]import java.util.LinkedList; import java.util.Random; public class Simulation { private LinkedList<Customer> customerList; private int minutesThatHavePast; private int customerNumber; private int customerProcessTime; private int …

Member Avatar for jon.kiparsky
0
160
Member Avatar for ubi_ct83

Hi all, i'm developing a web-base system.user enter the data in mysql.my main system retrieve the data using jdbc.my problem is, i dont know how to make the system keep on checking the new data in database.i want it always check the mysql for any new data. i need your …

Member Avatar for ubi_ct83
0
105

The End.