|
I was just using this as a generic example. The actual name is not JPanel. I was going to try and use this "JPanel" to draw graphics on and place it on another "JPanel". I think that the better approach is just to draw directly to the "JPanel" without adding a whole bunch of smaller "JPanel"s.
Thanks for replying.
AF Pilot
|
|
|
|
|
Apologies, I misunderstood.
Reagan Conservative wrote: I think that the better approach is just to draw directly to the "JPanel" without adding a whole bunch of smaller "JPanel"s.
Agreed, I see what you mean about inheritence now. Overriding the paintComponant method should do the trick. Have a look at this[^], it may help.
My failometer has shot off the end of the scale!
I seem to have misplaced my ban button.. no wait... found it!
|
|
|
|
|
I want to develop a company visitors software. the software will have the following columns:
Visitors name
Purpose of visiting
Who you are visiting
time in
time out
I am having a problem in how the interface should be. I am new in programming please can you descibe for me how the interface should be. especially the time out column. the managment should be able to see those who visited.
Thank you
|
|
|
|
|
Err, this has nothing todo with Java; unless that happens to be the language used in your school.
Alternatively, if this really is for work, use a sheet of paper that visitors sign in and out on.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Some remarks:
1) Don't cross-post, this is considered rude.
2) Provide a meaningful title for your message.
3) Read the posting guidelines (the first message on top of the message boards) before posting.
|
|
|
|
|
how can Read Barcode from an image
|
|
|
|
|
|
i'm trying to overload a method in a web service using netbeans, but the problem is i don't see the overloaded method in the test page , anyone got an answer for this
|
|
|
|
|
with mobile ,Can you tell me java or c# can easier to develop and more popular at The developing country,example viet nam
thanks
|
|
|
|
|
It really depends on the type of mobilephones you want to develop for.
I'd say that for most of the simple mobile phones, you'll better go with Java, but there are more and more smartphones coming up with windows mobile which will perfectly fit with C# (Compact Framework).
I won’t not use no double negatives.
modified on Wednesday, May 27, 2009 7:52 AM
|
|
|
|
|
|
Here is my code of JSP
<% if(request.getParameter("txtTextInput")!=null && request.getParameter("LangGroup").equals("English") ) {
String file=CreateSoundFile( request.getParameter("txtTextInput"), "en");
%>
<embed src="<%=file%>" ></embed>
while CreateSoundFile creates the sound file and give back its path
but the sound file is not played on the client and if the program is being run 2nd time the previous text is being played on the client browser where as the file in the folder on server is changed.
why the file is not downloaded at client when it exists on the serve r
|
|
|
|
|
You have to upload music file and then after you may play it.
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
i have postfix installed on my ubuntu and test it to send message to other user in my localhost, and i found no problem using it. But when i try to fetch the message using pop3, i do :
out.write(("USER :"+user+"\r\n").getBytes());<br />
out.write(("PASS :"+pass+"\r\n").getBytes());
and i always get the respon :
+OK Hello there.
+OK Password required.
-ERR Login failed.
+OK Better luck next time.
What is wrong with my code?
|
|
|
|
|
Are you sure that the username and password are correct?
|
|
|
|
|
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection cn=DriverManager.getConnection("jdbc:odbc:gaurav","","");
String sql="SELECT * FROM optrdata WHERE name=? ANd password=?";
PreparedStatement pst=cn.prepareStatement(sql);
pst.setString(1,t2.getText().trim());
pst.setString(2,t3.getText().trim());
THE ABOVE LINE OF CODE CONNECTS JAVA WITH FORXPRO NOW I WANT TO USE THE SAME CODE CONNECTED TO MY SQL PLEASE GIVE ME THE CODE FOR THE CONNECTIVITY OF MYSQL WITH JAVA....
|
|
|
|
|
gaurav raghu wrote: PLEASE GIVE ME THE CODE
NO!
HAVE YOU EVER HEARD OF GOOGLE[^]??? AND NOT TYPING LAZY DEMANDS IN CAPITALS!
My failometer is detecting vast quantities of FAIL!
"Its SQL - hardly programming..." (Caslen)
|
|
|
|
|
Since you're using the JDBC-ODBC bridge, the same code will work to connect to almost any database.
You just need to change your ODBC datasource connection.
|
|
|
|
|
Front end of my project is JSP and i'm suppose to use SQl Server as the database for the project so please provide my the code for the connectivity of java with sql server...
|
|
|
|
|
Your best bet would be to have servlets or some other Java based backend (JSF for example) instead of connecting to the database directory from within JSF.
You can then use standard JDBC to connect to the database. If you want to connect to SQL Server, the jTDS driver is one of the best.
|
|
|
|
|
import java.sql.*;
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:DSN);// DSN(Data Source Name)
Statement st=con.createStatement();
st.executeUpdate("insert query");
// Retrieve datas
ResultSet rs=st.executeQuery("query");
while(rs.next())
{
String name=rs.getString(1);
int age=rs.getInt(2);
}
|
|
|
|
|
hello friends,
i am creating an application for an online local clinic management software where i want their registered patients to upload their ct or other medical images so that the doctor may visit their profiles online and see their reports.
since the medical images have a dcm format that stands for dicom(digital imaging and communication in medicine). since the software that i have to view these files is a desktop application, i want to create an api for the same that can be called on my application and the images be viewed online.
please suggest how do i create this api for the software, those of you who want to see what the software looks like may search for "DicomWorks" on Google.
thanks in advance.
|
|
|
|
|
hi any help me how i write this statment in java
N-m
c[i]=c[i]+b[i].X
here c and b are int type array
and x is as polynomail of power N-m
|
|
|
|
|
I'm not the only person reading this forum. Your teacher is too!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi guys,
I'm currently working on a mobile phone application and need to save a file into the phone. However whenever I try using FileConnection, an exception will occur with the message "Application not authorized to access the restricted API". The FileConnection statement itself seems to be fine as I tried those from online examples, so I'm wondering what project settings I'll have to change to avoid this security issue. Please guide me with more details as I'm rather new to this, thanks!
Sincerely,
Ralph
|
|
|
|