/**
* @(#)aboutUs.java
*
*
* @author
* @version 1.00 2010/10/7
*/
import javax.swing.*;
import java.awt.*;
public class aboutUs extends JFrame{
private desPanel des=new desPanel();
public static void main(String args[]){
aboutUs frame=new aboutUs();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
public aboutUs() {
desPanel.setTitle("About us");
String desc="This Choose Your Flavor is a shop that allows customers to customize their drink.\n"+
"There are several franchise across Malaysia. We serve the freshesh and healtiest\n"+
"fresh juice. What best about Us is that we provide free of charge delivery.";
desPanel.setDescription(desc);
desPanel.setImageIcon("all.jpg");
setLayout(new BorderLayout());
add(desPanel,BorderLayout.CENTER);
}
}
judgemental
0
Light Poster
Recommended Answers
Jump to Postprivate desPanel des=new desPanel();
Let me repeat:
Where is the desPanel class defined?
Jump to PostBecause you haven't done anything to make it show.
You create a new panel, but you need to place that in a visible window such as (for example) a JFrame
Jump to PostPlease read my post again. I recommended you add an .* to the end of the line so that it was the same as the line before it.
Jump to Postwhat is wrong with this code?
You are wasting everyone's time by posting code and asking this question. See the previous responses to this question.
Jump to PostThe way you post is irritating. You post some code get suggestions for that code and you post something entirely different as if you ignored those who tried to help you.
Keep in 1 post your code and the error message you get and where. Posting just the lines …
All 47 Replies
NormR1
563
Posting Sage
Team Colleague
judgemental
0
Light Poster
NormR1
563
Posting Sage
Team Colleague
judgemental
0
Light Poster
NormR1
563
Posting Sage
Team Colleague
judgemental
0
Light Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
judgemental
0
Light Poster
NormR1
563
Posting Sage
Team Colleague
NormR1
563
Posting Sage
Team Colleague
judgemental
0
Light Poster
NormR1
563
Posting Sage
Team Colleague
judgemental
0
Light Poster
NormR1
563
Posting Sage
Team Colleague
kramerd
29
Posting Pro in Training
JamesCherrill
4,667
Most Valuable Poster
Team Colleague
Featured Poster
judgemental
0
Light Poster
kramerd
29
Posting Pro in Training
NormR1
563
Posting Sage
Team Colleague
JamesCherrill
4,667
Most Valuable Poster
Team Colleague
Featured Poster
judgemental
0
Light Poster
JamesCherrill
4,667
Most Valuable Poster
Team Colleague
Featured Poster
judgemental
0
Light Poster
judgemental
0
Light Poster
Dean_Grobler
48
Posting Whiz in Training
judgemental
0
Light Poster
Dean_Grobler
48
Posting Whiz in Training
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
JamesCherrill
4,667
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.