|
Images are always square. You can resize them.
you can put an layer upon the image and place a textfield in there - yes - that's possible:
http://www.java2s.com/Code/Java/Swing-JFC/Panelwithbackgroundimage.htm
http://www.javalobby.org/articles/ultimate-image/
greets
Torsten
I never finish anyth...
|
|
|
|
|
Hi,
Thnx for ur reply.
Dynamically system has to allow to resize the image of shape Diamond.
If I try to resize it from left, it will increase the size of image only in left side and its has to do that side only.
But the shape will be changed right?
What to do in this situation?
Placing a Label inside an image:
Here the diamond shape image has background where the label doesn't.
In this case also is it possible?
Thanks
Janaki
|
|
|
|
|
I install xampp in ubuntu
but when I start the xampp theres an error says that
icotp@icotp-desktop:~$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.7.1...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Another MySQL daemon is already running.
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
icotp@icotp-desktop:~$
|
|
|
|
|
I think this is in the wrong forum. XAMPP isn't Java. Try the Linux forum or the web development forum instead.
|
|
|
|
|
Hi guys,
I am trying to build Instant Messaging Jabber client using;
-Eclipse IDE
-Smack API(with smack.jar files)
-Openfire(as the server)
I would like an advice on how to build this client using eclipse and am finding difficult on how to build a simple program that sends message from one client to another client using the openfire server provided.
I would appriciate if anyone could help me with this.
Thanks in advance,
Ireland
|
|
|
|
|
I want the colors is a grey scale from black to white.
Example: I have X value is change all the time , max_X = 100, mix_X = 1,but i want to have color base on X value.
Color = X/(max_X – min_X) * (# of shades in scale)
Anyone help me please .....
Thanks
Jenny
|
|
|
|
|
Colour in Java is specified in terms of the proportion of red, green and blue (transparency or alpha comes into it as well but you can ignore that if you want to keep things simple). Each value ranges from 0.0 to 1.0. At either end of the scale you have:
new Color(0.0f, 0.0f, 0.0f);
new Color(1.0f, 1.0f, 1.0f);
As long as the three values (R, G, B) are all the same, you will end up with a shade of grey. So, progressively lighter shades of grey go:
new Color(0.25f, 0.25f, 0.25f);
new Color(0.5f, 0.5f, 0.5f);
new Color(0.75f, 0.75f, 0.75f);
After that it should just be some simple maths to convert your X value to the required float value to pass in to the constructor to get the required colour. As long as you make all three values the same, it will be grey.
|
|
|
|
|
Hi Guys,
This is the error am getting when i start my Tomcat Server.
Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
|
|
|
|
|
Which part of this message are you having trouble understanding? There is not much that can be added to a message that tells you exactly why it cannot start.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Another progess has used those ports .
Ctrl+Shift+Del -> process , you will find a process called "java.exe" , just stop it .
|
|
|
|
|
Hi all,
I have also gotten the same error, I used Eclipse and Tomcat Server to create a web dynamic application. As, I run my application by Eclipse is gotten the error. I solved simply, check if Tomcat Server is running in your computer, you should stop it before you run application. This fixed the error. (Because, when Eclipse runs your application in server, default, Tomcat Server is run by Eclipse.)
Best regards,
Nguyen Cong Doan
|
|
|
|
|
Platform: Ubuntu Jaunty 9.04
Java: Open JDK 1.6.0.x
Mysql Connector: mysql-connector-5.1.12.jar
The code below works fine on Windows But whats wrong with the code that it generates the following error :
Driver Loaded..<br />
SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1<br />
SQLState: 42000<br />
VendorError: 1064
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Connection;
public class TestException {
static{
try{
DriverManager.registerDriver(new com.mysql.jdbc.Driver());
System.out.println("Driver Loaded..");
}catch(Exception e){
System.out.println("Driver Not Loaded!");
}
}
public static void main(String[] args) {
try{
Connection conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/phpmyadmin","root","*******");
System.out.println("Connection is Ready");
conn.close();
}catch(SQLException ex){
System.out.println("SQLException: " + ex.getMessage());
System.out.println("SQLState: " + ex.getSQLState());
System.out.println("VendorError: " + ex.getErrorCode());
}
}
}
|
|
|
|
|
|
ya there is a db called phpmyadmin, actually i'm having this trouble in Eclipse IDE...but surprisingly using Netbeans I didn't get any such error and my Code was working properly. Is this the problem of IDE or its something else??
|
|
|
|
|
|
And would like some fries with that ?
|
|
|
|
|
|
|
How about "TooLazyToDoMyOwnWork.com".
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
|
Was searching for info on java reporting and found this site. Figured it was worth sharing. www.javareports.info
|
|
|
|
|
HI everyone..
please send me some prolects details to related to java..beens..J2ee for using as referels for some document
regards
Dilanka
|
|
|
|
|
This question is rather difficult to answer satisfactorily. I suggest you use Google to search for something that would satisfy you, or go to the Java Tutorials[^] and use some of the samples there.
In either case, if you wish to make it as a developer you need to learn how to do your own research.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi,
I developed an application in seam framework using Seam-Gen tool. I imported the application into eclipse. while running the build.xml file I am getting the BUILD FAILED error. The error is as follow.
C:\Program Files\jboss-seam-2.2.0.GA\seam-gen\build.xml:1674: The following erro
r occurred while executing this line:
D:\Development\booking\build.xml:316: Failed to copy D:\Development\booking\reso
urces\booking-dev-ds.xml to C:\Program Files\jboss-4.2.3.GA-Vue\server\C:\Progra
m Files\jboss-4.2.3.GA-Vue\deploy\booking-ds.xml due to java.io.FileNotFoundExce
ption C:\Program Files\jboss-4.2.3.GA-Vue\server\C:\Program Files\jboss-4.2.3.GA
-Vue\deploy\booking-ds.xml (The filename, directory name, or volume label syntax
is incorrect)
Can any one please help me in this regard.
Thanks,
Sunil.
|
|
|
|
|
C:\Program Files\jboss-4.2.3.GA-Vue\server\C:\Program Files\jboss-4.2.3.GA-Vue\deploy\booking-ds.xml
...[]while executing this line:D:\Development\booking\build.xml:316:
greets Torsten
I never finish anyth...
|
|
|
|