35,618 Topics

Member Avatar for
Member Avatar for blackmagic01021

I want to create a message table, where every incoming message is saved as a row in a message. According to the picture below. Any introductory help will be very helpful. I already have รก application where the messages are printed on a textarea, but for further inhancment I want …

Member Avatar for JamesCherrill
0
147
Member Avatar for blackmagic01021

I have a class that has a text area. the code is as follows package view; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.ScrollPaneConstants; public class LabelStatus extends JPanel { /** * */ private static final long serialVersionUID = 1L; …

Member Avatar for blackmagic01021
0
171
Member Avatar for Panathinaikos22

I have 2 files writen in java, if someone can please covert them in C# and give it. The problem is with type of variables and operators, many operators are not overloaded like in java, idk what to say... This one will not work in C# as integer result |= …

Member Avatar for wilen
0
279
Member Avatar for Majestics

Its not a new question, i already searched many forums and found many answers but the builders i found arent able to compete with builder of vb.net and c#.net, so i thought to take some decision from some experience people , please give me some of your suggestions. I already …

Member Avatar for CrazyDieter
0
345
Member Avatar for koduruabhinav

i have image on my web application. When i click that i will be redirected to track jsp.What that jsp does is track the image that is clicked and redirect to that image url .At present i asing response.sendredirect(URL) which will redirect in same window.Is there any possiblity to open …

Member Avatar for CrazyDieter
1
119
Member Avatar for jarograv

I am getting a null pointer exception on line 36 of this code, I do not understand how any of my values are null because they should all be filled with data from the text document. What am I doing wrong? import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.InputStreamReader; public …

Member Avatar for BumHunter
0
122
Member Avatar for joankim

Hi there. Recently, i wrote a program that would return ridiculously high numbers as BigIntegers. The program is working at all, but when the BigIntegers get to a value that I have estimated to be around 2^329554, and takes up between 30-45 kilobytes, i get this error: Exception in thread …

Member Avatar for joankim
0
149
Member Avatar for <HHH>

i'm trying to read data from .csv file and it give me grabage so i will be pleased if someone help me thanks import java.io.*; public class ReadFile { public void File2 () throws FileNotFoundException, IOException{ FileInputStream fstream = new FileInputStream("C:/myfile.csv"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new …

Member Avatar for joankim
0
351
Member Avatar for sadzee

What are Locally caught Exceptions in Java? Whats the dofference between the ones that are caught locally and ones that are not caught locally??

Member Avatar for nbajordan
0
89
Member Avatar for gusfraba

I've had nighmares about this since 3 days ago and couldn't find anything by googling so here I am. As the title says so i need to find a way to store and then retrieve images from a mysql database I have tired the code below to do so (the …

Member Avatar for imdeadsoul
1
2K
Member Avatar for beanboy

hi, i managed to upload files from client to server hard disk using apache commons. how could iretrieve files to client from server again? plz gimme an idea of implementation thx beanboy.

Member Avatar for imdeadsoul
0
1K
Member Avatar for Checkerboz

Hey! I got two classes here, one that does stuff with an image and one class utilizing the other class. So inside my picture class I have an Image object and in my other class I want to have a JFrame and I want to set the size of the …

Member Avatar for Checkerboz
0
354
Member Avatar for Pravinrasal

I want to display image from database to my htnl form but it id not displayed. Image copied from database to local c:\file_upload folder but from this folder i want to display in img src in html form .project doesn't give any error but image not displayed on html form. …

Member Avatar for imdeadsoul
0
283
Member Avatar for Thermalnuke

having a problem with a program im working on with inheritance. suppose to output the area, perimeter, and area i think i have it all set up correctly but its not out putting correctly here is the the superclass that inherites to the client form. public class CIRCLE extends CLIENT …

Member Avatar for Thermalnuke
0
137
Member Avatar for meghasinghal29

hi, actualy i want to bring values from servlet to the dropdown of jsp. in my servlet i fetch the values from the database into the variable and now i want to list thosevalues in the dropdown of jsp page. please provide me the syntax for that.

Member Avatar for Philippe.Lahaie
0
118
Member Avatar for rhyll07

Hello, need help from experts in jsp/servlet.. i have a program in jsp that needs to upload a file and save this in desired folder and send the filename to database.. and its working properly.. my problem is.. i dont know how to save the additional input text in database.. …

Member Avatar for Philippe.Lahaie
0
286
Member Avatar for jhamill

okay, i am trying to implement a program that cycles through a circularlly linked list to find different strings "assassins" and then eliminate the next person in the list. I believe that most of my code is correct with the exception of how I set up my linked list as …

Member Avatar for jhamill
0
265
Member Avatar for lena1990

hi all i have applet that i want to connect to the server when i run the applet from the appletviewer the applet connect to the server ,but when i run the applet from web browser i have the following exception java.security.AccessControlException: access denied ("java.net.SocketPermission" "127.0.0.1:3000" "connect,resolve") even i give …

Member Avatar for Darryl.Burke
0
317
Member Avatar for RiiPatel

Hi all, I am in new in Advance Java. Can you suggest me good books or videos or any site to learn from scratch.and from where I have to start? Thanks in advance

Member Avatar for testbmx
0
29
Member Avatar for bo0ga

If I highlext text on a website, is there a way for a program to automatically have it copied and pasted into an external program, say Microsoft Word? I would want to highlight text, and then right click and have a program function added to the other functions that show …

Member Avatar for bo0ga
0
169
Member Avatar for joankim

First I would like to state that I am almost positive that this is a bug in Java, not a coding mistake by me. This program is designed to print the first n (inputted) square triangular numbers (STN's). A STN is a number that is both a perfect square and …

Member Avatar for joankim
0
247
Member Avatar for Stjerne

Hello, I've no experience with layouts, and I want to learn it, especially how to place components in the right places. I'll give an example, and I was wondering if you could help me? **Main class:** import javax.swing.*; import java.awt.event.*; public class Main { public static void main(String[]args) { final …

Member Avatar for Stjerne
0
169
Member Avatar for c.pentasuglia

I'm working on a project, and i put in some code to tell the program when to stop. Basically it completes it's task then shuts itself down, however it outputs information to a text box aka log. I'd like to stop the program from running, yet leave the log open …

Member Avatar for c.pentasuglia
0
243
Member Avatar for c.pentasuglia

So i have a jar of a project that i was working on, and i want to use it as a library in another project (resource adapter). I have brought it into the libraries folder, and used an import. I basically want to be able to call that whole project …

Member Avatar for c.pentasuglia
0
297
Member Avatar for mrabrar09

<html> <body> <%@page import="java.sql.*"%> <form method="post" action="csea.jsp"> <table border="1"> <tr><th>Reg No</th><th>Name</th><th>Present/Absent</th></tr> <% String pa = request.getParameter("pa"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:Student"); Statement st = con.createStatement(); ResultSet rs = st.executeQuery("select * from student_details"); while (rs.next()) { %> <tr><th><%=rs.getString("reg_no")%></th><th><%=rs.getString("s_name")%></th> <th><input type="text" name="pa"/></th> </tr> <% } st.executeUpdate("update csea set pa='"+pa+"'"); con.close(); …

Member Avatar for Philippe.Lahaie
0
165
Member Avatar for ladybro

Hey folks, Basically, I am trying to recreate Conway's Game of Life in java. I'm getting input from a file and using it as the first generation. I set up my array and have input working correctly. However, when I'm trying to use a method evaluate my array at certain …

Member Avatar for JamesCherrill
0
177
Member Avatar for shean1488

Hi everybody, I'm trying to figure out how much memory was used for merge sort algorithm. I believe it is just one or two expressions, but can't come up with them by my own. public void mergeSort (T[] data, int min, int max) { T[] temp; int index1, left, right; …

Member Avatar for shean1488
0
333
Member Avatar for c.pentasuglia

Suppose i have a standalone java project that performs two main functions, send and recieve. I want to deploy it to the glassfish server to be used just like that. An EJB connects to it though a resource adapter, and i just want it to run one of those methods, …

0
104
Member Avatar for kh.taimoor

ii m getting error message "class ,interface or enum expected.can anybody help me please thanks.." import javax.swing.*; import java.util.*; public class StudentBook { ArrayList students; public StudentBook() { students=new ArrayList(); } public void addStudent() { String name=JOptionPane.showInputDialog("Enter the name of the Student"); String rNum=JOptionPane.showInputDialog("Enter the Roll Number of the Student"); …

Member Avatar for DavidKroukamp
0
198
Member Avatar for c.pentasuglia

Suppose i have a standalone java project that performs two main functions, send and recieve. I want to deploy it to the glassfish server to be used just like that. An EJB connects to it though a resource adapter, and i just want it to run one of those methods, …

0
111

The End.