35,618 Topics
![]() | |
How do i know the difference between a construction and a method? | |
Hi , How can I open an external program like ( word, notepad ) in JavaFrame Window ? not in external window ? thanks | |
hi frds in my proj, a jsp file has prod type (either prod or non prod) if we select prod it will display prod related items, if not it will display non production item. but i want both to be displayed at a time. action class: [CODE] [B] ArrayList [U]prodNonprod … | |
Hello everyone i looking forward to learn j2ee using Oracle 10g platform ... anyone have Tutorials for this. i'd be very thankful for this help. hint..> i use jdeveloper thanks in advance | |
Hi, i was hoping that someone could help me understand what graph isomorphism is and what are some of its practical application examples ?? i really don;t get it, and is it possible to code it in Java (what i mostly see is only in C or C++)... | |
Hye,i have problem with looping.... this is my coding for now. [CODE]try{ Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection("jdbc:mysql://localhost/finalproject", "root", "Amillia89"); Statement stmt=con.createStatement(); // String pick = "select * from synonym where words like= "+st+"% "; ResultSet rs=stmt.executeQuery("select * from synonym where words like \""+st+"%\""); String words=""; if(rs.next()){ words=rs.getString("words"); ResultSetMetaData rsmd = … | |
Need help on setting the values of username and password for my log-in menu: [CODE]import javax.swing.*; import java.awt.*; class Profile extends JFrame { private JPanel p,p1,p2,p3; private JTextField tf; private JPasswordField pf; private JLabel l1,l2; private JButton b; Profile() { p = new JPanel(); p1 = new JPanel(); p2 = … | |
Hi, guys! My project is to create a chat software in Java. For security i must use Digital signatures+ Java Postgre sql... How to do it? Steps, codes, references, etc... HELP ME! | |
Hello all I have a query,may be silly but i have to clear it.IT IS REGARDING THE UPCASTING.I want to "when we can invoke the methods of base class using the object of derived class.then what is the need of assigning the subclass object to base class reference." I mean … | |
I have two array a[] and b[] but i want to transfer the contents into two dimensional array c[][] is that possible......... Please help me | |
[CODE] <% String userName = request.getParameter("username"); String password = request.getParameter("password"); String rm_me = request.getParameter("rm_me"); String rm_uname = request.getParameter("rm_uname"); if (userName != null && password != null) { if (rm_me != null) { Cookie ckU = new Cookie("username", userName); Cookie ckP = new Cookie("password", password); response.addCookie(ckP); } else { if (rm_uname … | |
hi, I have a browse button for sending single image with other text inputs in jsp type I have chosen Multipart-Form data . I got 'parameter not set error' for blob field. I am using MySql database. I am using DefaultFileItemFactory clss [CODE] FileItemFactory factry= new DefaultFileItemFactoy(); FileUpload upload= new … | |
I am building a new jsp template and have been asked to make sure that the header elements eg two images at the right and left hand side are content manageable from our cmc so that users can put different images in there and reuse the template. I have set … | |
hey everybody, i have a text file containing some names i place extract those names and i place it in an array an then i compare it with the input from JTextField i am able to compare them and find the values that match. what i want is if the … | |
Hello.. I am working on this project which is to use a matrix to encrypt a string& a text file and to decrypt them as well. The matrix that I need to use is this one, but I still don't know how to make it shift each character to the … | |
[code] <%! public String haversine(String lat1,String lon1,String lat2,String lon2) { int r = 6371; String val=null; double dlat=((Double.parseDouble(lat2))-(Double.parseDouble(lat1))); double dlon=((Double.parseDouble(lon2))-(Double.parseDouble(lon1))); double a = (Math.sin(dlat/2)*Math.sin(dlat/2))+(Math.cos(Double.parseDouble(lat1))*(Math.PI/180))*(Math.cos(Double.parseDouble(lat2))*(Math.PI/180))*(Math.sin(dlon/2)*Math.sin(dlon/2)); double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); double d = r * c; if(d>1) val= ((d)) +"km"; else if(d < =1) val = ((d*1000)) +"m"; return … | |
Hello all, I know this might sound silly to some of you, but I have created and successfully tested an app that I think would run on my phone. I mean, it runs just fine on the emulator. Now how do I install it onto my real phone? I tried … | |
Dear IT People, I want sample code and suggesitions for do JUnit test for my servelet class. If any body done it plz send me code/give me suggestion hw to do in goole i got junit for java class.I stuggle for this past 2 days if any body please help … | |
Dear IT People, I want sample code and suggesitions for do JUnit test for my servelet class. If any body done it plz send me code/give me suggestion hw to do in goole i got junit for java class.I stuggle for this past 2 days if any body please help … | |
Hey everyone, thanks for reading. Basically, I am using the netbeans GUI developer, and when I add a button on a jframe (We will call this JFrame1), I have the button create an object of type JFrame, called JFrame2. Now, JFrame2 contains a loading bar with updated progress information on … | |
Hi guys. I have some questions about very long diagram that I have to make. In short lines the task is this: airplanes and airports. The airports have these characteristics: One runway and multiple hangars. Some of the airports are only military. The airplanes have these characteristics: Capacity. Speed. Max … | |
hello everyone, I am doing a program for a class which is suppose to say the amount of pages one needs to read and then say if any of the homeworks have the same amount of pages. My teacher wants me to override the compareTo() method and then test it … | |
Ok, 2 questions. 1. I have an applet, but it is IN the page, like, part of the HTML I think, how do I get it to like "pop up" and be its own window. It will eventually become a game tool, so it would be easier to use if … | |
the output is supposed to be like this: [B]1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1[/B] what I have is this: [B]1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1[/B] [CODE]import java.util.*; class Array{ public … | |
Hello everyone...I'm trying to create a journey planner for an underground system...but the first thing Is to create the skeleton of the underground system... my problem is I don't know how to add more links to a single node when the station has an intersection with other lines... [CODE]public class … | |
i'd like to ask how one can get rid of all the components in a JPanel (buttons, labels, comboboxes etc), so that you can add new components (at run time that is) | |
Hi guys, I have a class called [B]Gen [/B]under a package [B]diaby[/B], project name diaby. I then have my other project andy, with class [B]Anders [/B]under package [B]andy[/B]. I have built successfully project dan, gone into its dist folder and copied the jar into project kim's common jars/libraries, included the … | |
At present i have a folder lantern with files lantern/*.class or java also in lantern are graphics folders. lantern/img with files /lantern/img/image1.gif for example The folder lantern folder is in is called build and its in my class path. each file in lantern/*.java has package lantern; i type java lantern/multiframe … | |
Had an assigment making a bankaccount, and validating the account owners age, this is just a bit of the code..... [code]public boolean checkDate(String myDate) // my date should be in the format 20111224 { int year = Integer.parseInt(myDate.substring(0, 4));// convert the year 2011 to int int month = Integer.parseInt(myDate.substring(4,6)); //convert … | |
return printLCS(i-1, j-1) + index(x, i); i found this in a recursive java program, well [B]that is being done is[/B] return index(x, i) (returns a character) and same time continue recursion? |
The End.