36,051 Topics
![]() | |
Hi everyone, I need to ask a very broad based question about the JAVA Authenticator class. Is this class only meant to be used for authentication for the Http internet protocols or it can also apply to Ftp internet protocols and Https internet protocols?? Any help is greatly appreciated Yours … | |
Heya, Are there any possibilities to deactive or hide the "minimize" button on the JFrame like you can do with the "exit" button. I got around it by setting a listener for minimizing the window. When the window is minimized, I restored it and bring it to front again. Thanks | |
I am trying to create a class which could be a subpanel. It extends JPanel and implements AdjustmentListener. The JPanel is used here as a container and it keeps JLabels and JScrorrButtons layouted with gridBagLayout. This class instantiated in application doesn't work, none of components (labels and scroolButtons) don't even … | |
as above im am getting pretting good at java now and have make a few 2d games. i want to get into 3d now. i have tried google but it is really hard to find normal java 3d tutorials. i keep finding the applet ones which i dont want to … | |
How is it to pass `int [] rank` to main method? public class Card { private int [] rank= new int [13]; private String [] suit={"Spades","Hearts","Diamonds","Clubs"}; private static void rankMaker (int []rank) { for (int i=1;i<=13;i++) rank[i]=i; } public static void main (String []args) { System.out.println("Jack ="+rank[11]); } } Ignoring … | |
Hi everyone, I have a rather silly question but please bear for with me for a while. Does anyone have the Java Sun api for this class sun.net.[url]www.http.HttpClient[/url] I tried googling, went to sun's site but also could not find the api for this class. I would appreciate it if … | |
someone can teach me about the random genrated? let say i would like to generate a random number between 100 to 200 and store it into one integer variable, what is the code?????? | |
Is it possible to start thread in paintComponent() method ? I would like that thread to invoke the drawLine() method and count new parameters (points) for this method, and to draw a chart of function in this way. Here's the code,hoply describe better my purposes: [CODE] public class generator2 extends … | |
Hai all! Could any one help in drawing the Jtable in Mongolian orientations. i.e., Rows should be trated as column and columns should be treated as rows. How to achive it.Is there any option doing so. I was not able to achive it using ComponentOrientation. [B]Name Name1 Name2[/B] Test Test1 … | |
Hi everyone, If i were to set the http proxy for a particular url i did this [code] Properties systemProperties = System.getProperties(); systemProperties.setProperty("http.proxyHost", proxy); systemProperties.setProperty("http.proxyPort", port); [/code] Is the way that i did the best way to do it?? Richard West | |
I'm trying to create a calculator using the gridbag layout, but I can't even get started. This layout managers keeps starting stuff in the direct center of the frame and wont put anything anywhere else. I tried this: c.anchor = GridBagConstraints.SOUTH; I just can't seem to get this thing working. … | |
Hi everyone, I really need some advice and guidance on the following code [code] import javax.swing.*; import java.util.*; public class PopupAuthenticator extends Authenticator { public PasswordAuthentication getPasswordAuthentication() { String username, password; String result = JOptionPane.showInputDialog( "Enter 'username,password'"); StringTokenizer st = new StringTokenizer(result, ","); username = st.nextToken(); password = st.nextToken(); return … | |
I just got a JSP hosting account and I'm wondering how I can connect to the PostgreSQL DB and execute queries. According to the host's FAQ, the database URL is: jdbc:postgresql://localhost/username,username,password . | |
Hi, I am running a system which consists of eight concurrent Java processes. All these processes run on the same box and are backend daemon processes which means they are designed to be started and then run continuously, as they are backend processes they have no user interface. Thus the … | |
hi, i'm fairly new at java, and i'm expected to make a plotting program soon, and i am stuck as to what to do. i haven't found any good tutorials online (most of them just confused me or they made a plotting program that i didn't exactly have in mind)... … | |
Hello everyone, I am looking for education materials of developing C++ application with Eclipse. Could anyone recommend some good education materials? Thanks in advance, George | |
Hi guys , i actually have a eclipse jface listbox in my application and the problem goes like this : I know if i want to add some items to the list box i can simple just setItems or addItems but the thing is that i have this listener in … | |
I have this code that I am using in C# calling a Response.Write to call another aspx page within a frame. [B]Response.Write("<script language=javascript>parent.Frame.location.href('detail_search.aspx?NameOrCat=1&strFor="+strName+"&catDesc="+strCategory+"&clickedButton=0&Where="+this.WhereSelect.SelectedValue+"&searchOption="+this.rbtnStartsContains.SelectedValue.ToString()+"§ion_id="+this.ddwnSection.SelectedValue.ToString()+"');</script>");[/B] This logic works on explore 6.0 but I can not figure out why it does not work on explore 5.0 and explore mac. Does anyone know how … | |
Hi, My jsp form has a table that has 7 columns, one of them is a "Comments" textarea field. Is it possible to display Comments field beneath/under first 6 columns, that it will look like a separate row and display it ONLY when radio button on the row has been … | |
Sorry , one simple question how do i get the current time ? In the sense of mm/dd/yy . My java is weak I know must make use of the calendar class but im not too sure how it works | |
I'm glad I found this forum. Just doing seraches has helped me already. However, I am having a problem with my assigment. I want to open data.txt file, read the file line by line. Each line has four items, int, string, int, and double. Then put the items into an … | |
hi all, I am trying to connect to Oracle database from a black berry device. I am not sure how to go about starting this assignment. I am open to suggessions. Thanks Srinivas | |
I wrote a JSP page that connects to a Oracle database. I did a SELECT statement to find out procedures and I printed the procedure into a form. In this form I can modify the procedure and save it. Then I created a sql statement to modify the procedure and … | |
Hi everyone, I am trying to read emails in from a stmp server without javamail api's and i so far have only managed to read the e-mail messages but i can't seem to read any attachments that come with it. I am not very sure as to how i should … | |
Hi folks, I have to answer the following question: "Write an applet which contains a panel whose background colour varies as the elevators of three Scrollbar objects are varied. Each Scrollbar object affects one colour constituent." I think I'm pretty close, but I can't figure out why only one of … | |
HI ive been trying to do some java program and when ive tried to run this program which, ive had 3 errors saying cannot resolve symbol for 'DrawFrame/DrawPanel' im not sure wat the issue here is, the program is as follows: import java.awt.*; import java.awt.geom.*; import javax.swing.*; public class Drawing … | |
hello, i'm harish from chennai. i'm in my final year M.Tech (I.T.). i'm planning to do my final year project in java. I would want some suggestions for the title for my projects. i would appreciate your early response. My mail id is [email]venugopal.harish@gmail.com[/email] | |
![]() | hi all, i want to create an on screen keyboard that running on linux. can anyone give me some idea or sample application on that. thanx. |
allright here is my question!!! if i have a login page with user name and password and i have a situation where in two users are logging in with the same id with a little time gap though (assuming that the other user is still logged in) how will u … | |
Hi All, I am working in jsp,and there is an image on my webpage.The image is created dynamically based on the data on the webpage.The scenario is like this. 1.I make some changes in my web page data and press recalculate buuton on the page. 2.this resubmits the page and … | |
Is there a way to send a command to CP (like run an exe file)? In C++ you can use the system() function, but i think in java you use Runtime. Thanx in advanced! | |
I have some coding on my home page, [url]http://www.progressenterprise.com[/url] for a Bravenet hit counter and the Google Page Ranking tool. When I run my search engine optimisation tool it always picks this code up as an alert, with no explanation. Can anyone advise whether having these items on my page … | |
Hey everyone, this forum helped alot before so unfortunantely i am back again with more pop ups. Here is my hijack this log: Logfile of HijackThis v1.99.1 Scan saved at 11:51:29 AM, on 6/28/2005 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe … | |
Ok I have done this program where there are 2 buttons, one to enter price and one to calc average, so the user enters an randome amount and click the enter price button then user can keep entering more and then click calc average button to get average, but problem … | |
I've created an html form that allows the user to login, or register. Here is what I've thought about(just for the registration page, not login): HTML FORM --> servlet ---> servlet calls java class that verifys the data, and shoves it into the database... ----> Makes a few tests --- … | |
Hi, This is one of those dumb newbie questions, I'm afraid. I'm trying to learn Servlets/JSP by making a small application that allows you to register yourself as a user. I'm using the latest tomcat version for this, and I'm using a linux environment. For some reason, when I try … | |
Hi. A virus appeared on my computer a few days ago and I've not been able to get rid of it, yet. In fact, I think it's expanded and let in a lot of other viruses, dyfuca and elite toolbar among them. AVG, Adware and Spybot Search and Destroy all … | |
This problem is especially annoying because it works on my computer. I think it has something to do with this computer being the one that it was compiled on... Anyways, here's the page: [url]http://hp-h.com/p/gzero14/java/HydraSWApplet.shtml[/url] Since I used basically the same html for some other applet and that one works, I … | |
Could someone please tell me how to hyperlink to a page? Say if I had a combobox and the user selected an item, how could I hyperlink to a page? | |
With school out and summer in full swing I decided to learn C++ in order to keep myself busy. I've been playing around and learning a lot. So far I've been able to make a program that solves quadratic equations! Alas, I've encountered a problem I can't figure out for … | |
Hello Smart People, I'm implementing an Ant Simulator (swarm search stuff) and I'd like to be able to load different "species" of Ants (.java classes that implement an Ant interface). I've been having trouble creating "num" of a certain species and initializing their initial position. If num = x, then … | |
hey I am trying to understand java server faces ... if anyone of you has any sample (may be for the beginners... anything?) application ... can you plz mail to [email]cyber_corleone@hotmail.com[/email] plz also tell mewht I need to do in order to execute the application ... | |
Hi everyone, I am trying to add html tables to a html document and the html table appears but here is the problem in that only certain attributes of the table is being adhered to and the rest ignored. This is what i am doing [code] String table = "<table … | |
Hi All: I am new to this List. I am creating a Swing GUI based Word Processor which takes in English Text and using KeyListeners converts it into Unicode Devanagari - the Script used for writting The Hindi Language of India - which is dispalyed in a JEditorPane set to … | |
Hi everybody! The application I´ve been working is almost done, first of all thanks to all for your help. But now I want to do something extra and don´t know if is possible. My application starts when I call a bat file with the javac and the java command to … | |
I have a "dynamic" JComboBox. What I mean by that is items are removed and added on "the fly". The getSelectedIndex() is returning -1 when an item is selected. I looked this up and it indicates the selected item is not in the list....What in the world does that mean? … | |
hi.. I reached to the end of my project..but still struggling with date time issue in JSP... I am using mysql as database... simply to say my question is, how to insert and retrive datetime from database to my JSP page...can anyone put the code for that..i will be the … | |
Hello everyone, When running the following block of source codes (the MMAPI library I am using is downloaded from [url]http://www.sun.com/software/communitysource/j2me/mmapi/[/url]) [Code] public static void main(String[] args) { try { Player player = Manager.createPlayer"http://localhost/sample.wav"); player.start(); } catch (MediaException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } [/Code] java.lang.UnsatisfiedLinkError … | |
HI everybody! I am starting a visual basic application from java with the following routine: Runtime rt = Runtime.getRuntime(); try { Process p = rt.exec("Grabacion"); } catch (Exception e) { e.printStackTrace(); } I want to know if there is any method in java that can make this application "grabacion" stop … |
The End.