Howto get an object that will perform date & time calculations
then format it for output in some different locales with
different date style.can ne1 tel me the answer of this
question.pls
47
Hi frnd can i any one kindly can post for me portlet,hibernate
and spring example application and with flow explantion
configuration using Jdeveloper.and related links ar tutorials
kindly please send me .its urgent for me .thanks in
advance...........else can any one send to kondaiah.goddeti@gmail.com
5
Can u give me sample code for ServiceImpl and DaoImpl, in
j2ee .
46
I am unable to find or learn about print command. I have a
graphical program in core java in applet but i want to give
print command but i have coding for that so if anyone know
about this plz mail me on avdhesh_chauhan007@yahoo.co.in
98
Am chittibabu from vadavalli,
My father name is nanjan.he is working in state bank of
india at vadavalli,
My mother name is ramal. She is house wife.
My brother name is rajaram he is working in Privete Company.
I was born on 25-january-1984 at bhavanisager in Erode District.
I have completed my school in government higher secondary
school bhavanisager.
After that I came to coimbatore for higher study.i have
joined Bsc computer science in sri ramalinga sowdambigai
college of science and commerce, affiliated by bharathiyar
university, coimbatore.
In the same college, I have continued UG degree also. but I
got a job in Systech infovation as a software programmer,so
I discontinued Msc Degree.I have one and half years
experience from this concern. Here I have completed two
products; one is Tranport management solution for balaji
goods carriers at tirupur. Another one is Embroidery
Management Solution for Angel Embroidery at tirupur.
After that I got an another job in metis technologies as
senior software engineer. I have one year experience from
this company.here I working in school management product.it
is developing version by version.
16
there are 67 seats in train . there are only 5 seats in a
row and in last row there are only 2 seats. One person can
reseve only 5 seat at a time. If person reserving seat ,
the care is atken that he may get all in row. if seats are
not available in row then the arrangement is so that person
group get nearby seats. the following class is given public
class seat { char name; int seat; boolean isSeatempty }
1.Draw require class digram and object diagram. 2.Write
function seatallot(int noofperson) to allocate seat with
seat nuber printed for the each name.
I have deployed a .war file in my application server
comprising of struts and hibernate.If i want to change the
"dialect" property of hibernate cfg file how can i change(I
have only .war file)... Thanks in advance
187
I want to use the markerfor playing a video using the
jmf.Suppose my video length is of 2 hours.I want it to play
ex-15 mintue or 20 mintue and should stop after assigning
the time.I am providing my piece of code............please
help me....
package com.jha.cdac.lila.praveen;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.File;
import java.net.URL;
import javax.media.ControllerAdapter;
import javax.media.Manager;
/**
*
* @author vinays
*/
import javax.media.Player;
import javax.media.RealizeCompleteEvent;
import javax.media.Time;
import javax.swing.JFrame;
public class PlayVideo extends javax.swing.JFrame{
Player player;
Component center;
Component south;
// this code is required for playing the video file of
mpeg,mp4,mp3,3gp,rm,flv,
//wmf,mpv,vob,qt and the asf extension
public PlayVideo() {
File file = new File("Lesson1.mpg");
try {
load(file);
// load()
}
catch (Exception ex) {
//Logger.getLogger(LessonNarrative.class.getName
()).log(Level.SEVERE, null, ex);
System.out.println("Error while loading
file............"+ex);
}
}
//the piece of code given below is used to load the
file which user want to play.
public void load(final File file) //load the file
throws Exception {
URL url = file.toURL();
final Container contentPane =
getContentPane();
if (player != null) {
player.stop();
}
// MediaLocator mediaLocator=new MediaLocator
(file.toURL());
// DataSource dataSource=Manager.createDataSource
(mediaLocator);
// player=Manager.createPlayer(url);
player = Manager.createRealizedPlayer(url);
ControllerAdapter listener = new ControllerAdapter()
{
@Override
public void realizeComplete(
RealizeCompleteEvent event) {
Component vc = player.getVisualComponent();
player.getVisualComponent();
if (vc != null) {
contentPane.add(vc,
BorderLayout.CENTER);
center = vc;
} else {
if (center != null) {
contentPane.remove(center);
contentPane.validate();
}
}
Component cpc = player.getControlPanelComponent();
if (cpc != null) {
contentPane.add(cpc,
BorderLayout.SOUTH);
south=cpc;
} else
{
if (south != null) {
contentPane.remove(south);
contentPane.validate();
}
}
pack();
// //setTitle(file.getName()); //to get the
title of Video or Audio File
}
};
Time tm=new Time(30.4402403);
Time tm1=new Time(5.7256199);
player.addControllerListener(listener);
player.setMediaTime(tm1);
player.setStopTime(tm);
// player.setMediaTime(new Time(5.0));
//player.setStopTime(new Time(73));
player.realize();
player.start();
}
public static void main(String args[]) throws
ClassNotFoundException {
PlayVideo pv = new PlayVideo();
JFrame f = new JFrame("Lesson1");
f.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
System.exit(0); }
});
f.getContentPane().add("Center", pv);
f.pack();
Dimension screenSize = Toolkit.getDefaultToolkit
().getScreenSize();
int w = 420;
int h = 140;
pv.setLocation(screenSize.width/2 - w/2,
screenSize.height/2 - h/2);
pv.setSize(w, h);
pv.setVisible(true);
}
43
Tell me the difference between an applet and a Japplet?
229
what is mean by API ?
Please answer me.
Advance thanks.