[VIEWED 86488
TIMES]
|
SAVE! for ease of future access.
|
|
|
|
Ayus
Please log in to subscribe to Ayus's postings.
Posted on 02-14-11 10:39
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
1
?
Liked by
|
|
Shoot out your problems...
Lets share and expand the knowledge.....!!!!
We are open to share on(any IT related stuffs) :
- Javascript/JQuery/Ajax
- Java,JSP,Servlets and Frameworks
- WebServices
- Unix, Linux, Webserver Administration
+ many more !!!!
|
|
|
|
Ayus
Please log in to subscribe to Ayus's postings.
Posted on 04-12-11 1:03
PM [Snapshot: 3452]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Excellent site to learn apache products: awesome for java developers !!
https://cwiki.apache.org/confluence/login.action?logout=true
|
|
|
Ayus
Please log in to subscribe to Ayus's postings.
Posted on 04-14-11 3:20
PM [Snapshot: 3544]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
@java_help
60% is complete. Rest you complete by urself.{just copy/paste]. if you dont understand, post again.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DemoGui extends JFrame implements ActionListener
{
private JMenuBar menu;
private JMenu m1,m2,m3;
private JMenuItem Open,SaveAs,Exit,FontType,TextAreaColor, Plain, Bold,Italic;
private JPanel pMain,pNorth,pCenter;
private JTextArea tac;
public DemoGui()
{
//menu bar and menu item initialization
menu = new JMenuBar();
m1 = new JMenu("File");
m2 = new JMenu("Style");
Open = new JMenuItem("Open");
Open.addActionListener(this);
SaveAs = new JMenuItem("SaveAs");
Exit = new JMenuItem("Exit");
FontType = new JMenu("FontType");
TextAreaColor = new JMenu("TextAreaColor");
Plain = new JMenuItem("Plain");
Bold = new JMenuItem("Bold");
Italic = new JMenuItem("Italic");
//text area initialization
tac = new JTextArea(2,3);
tac.setText("Your Text ");
//initialization panel
pNorth = new JPanel();
pCenter = new JPanel();
//add menuitem to menu
m1.add(Open);
m1.add(SaveAs);
m1.add(Exit);
FontType.add(Plain);
FontType.add(Bold);
FontType.add(Italic);
m2.add(FontType);
m2.add(TextAreaColor);
menu.add(m1);
menu.add(m2);
pCenter.setLayout(new BoxLayout(pMain,BoxLayout.Y_AXIS));
pCenter.setBorder(BorderFactory.createTitledBorder("TEXT AREA"));
pCenter.setLayout(new GridLayout(2,0));
pCenter.add(tac);
pNorth.setBackground(Color.white);
pNorth.add(menu);
this.getContentPane().add(pCenter,"Center");
this.getContentPane().add(pNorth,"North");
this.setSize(400,300);
this.setResizable(false);
this.setLocation(150,150);
this.setTitle("MENU");
this.show();
}
public static void main(String[] args)
{
try{
DemoGui lg = new DemoGui();
lg.show();
}catch(Exception e){
System.out.println("Exception:\t"+e);
}
}
public void actionPerformed(ActionEvent e) {
if(e.getSource()==Open){
JOptionPane.showMessageDialog(this,
"Rest you do by urself{one sub-menu and file opening a file: use JFileChooser)",
"Give a TRy",
JOptionPane.INFORMATION_MESSAGE);
System.out.println("HelloS");
}
if(e.getSource()==Exit){
System.exit(0);
}
}
}
|
|
|
Java_help
Please log in to subscribe to Java_help's postings.
Posted on 04-14-11 3:24
PM [Snapshot: 3545]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
|
|
|
nyshangal
Please log in to subscribe to nyshangal's postings.
Posted on 04-14-11 7:32
PM [Snapshot: 3578]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
I have one question, how to display apostrophe in a javascript alert box
i tried ' but it does not seems to be working, also i tried using '(though it is deprecated).
' seems to work everywhere except for the alert box
thanks in advance :)
|
|
|
prankster
Please log in to subscribe to prankster's postings.
Posted on 04-14-11 7:40
PM [Snapshot: 3583]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
|
|
|
nyshangal
Please log in to subscribe to nyshangal's postings.
Posted on 04-15-11 7:38
AM [Snapshot: 3632]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
welll i cannot use ' prankstar's' like that, because it seems to be invalid character, when i try to insert it into db
|
|
|
Ayus
Please log in to subscribe to Ayus's postings.
Posted on 04-15-11 9:29
AM [Snapshot: 3642]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
@nyshangal
are u trying to insert or display apostrophe ?
with javascript alert box we are displaying the apos.
Can u clear ur question?
|
|
|
bange
Please log in to subscribe to bange's postings.
Posted on 04-15-11 10:47
AM [Snapshot: 3654]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
var test="this ' is test";
alert(test.replace("'", " ' "));
|
|
|
nyshangal
Please log in to subscribe to nyshangal's postings.
Posted on 04-15-11 1:09
PM [Snapshot: 3669]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
i am working on the french site
so this is hte msg i am trying to display
Vous devez saisir le nom d'un article ou d'un sujet dans le champ de recher
there should be ' in place of ', it is coming in alert box,,
if i am displaying it in a normal file, it works but does not work in case of alert...
|
|
|
bange
Please log in to subscribe to bange's postings.
Posted on 04-15-11 2:40
PM [Snapshot: 3683]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
is it a regular javascript alert or custom alert?
If its regular alert then won't the following work?
var test="Vous devez saisir le nom d'un article ou d'un sujet dans le champ de recher
";
alert(test.replace("'", " ' "));
|
|
|
default061
Please log in to subscribe to default061's postings.
Posted on 04-18-11 10:16
PM [Snapshot: 3738]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
If there are differnet access level for different users , lets say customers, managers, employee etc.
How do you set and check those level of authorization in Java/J2EE environment. ( or any java frameworks)
|
|
|
nepali8
Please log in to subscribe to nepali8's postings.
Posted on 04-19-11 12:23
AM [Snapshot: 3772]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
hello!!!!!!!!!!!
need some help in c #
I am using windows form application. As i already have my picture saved in bin\debug subdirectory of the current project.I am trying to show an image on PictureBOx when radio button is selected other it should remain invisisble.
Thanks in advance!!!
|
|
|
paasa
Please log in to subscribe to paasa's postings.
Posted on 04-19-11 6:28
AM [Snapshot: 3788]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Steps:
1) Set the visibility of picture box to false.
2)Load the image in picture box on form load event.
3) Set the visibility of picture box to true on radio click event programmatically...:)
|
|
|
Ayus
Please log in to subscribe to Ayus's postings.
Posted on 04-19-11 9:11
AM [Snapshot: 3818]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
@default:
The way i would probably do it is:
- Obviously we will have a login page
- If you login as admin, show all the tabs/links with admin rights as well.
- If you login as a user, hide the necessary tabs/link as normal users wont be able to see it.
or
- once you login as admin, you can create permission page where you can give permission to users. On the basis of those permissions, users can access the site. This would be more complex than the first one. We had latter one in my earlier work.
|
|
|
nepali8
Please log in to subscribe to nepali8's postings.
Posted on 04-19-11 11:31
AM [Snapshot: 3831]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
hello!!!!
@ passa
Need some example. If could explain it lil bit more it will be great.
thanks
|
|
|
shivabuti
Please log in to subscribe to shivabuti's postings.
Posted on 04-19-11 12:00
PM [Snapshot: 3837]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Guys I need help with the following questions. It is an assignment and I need to submit it pretty soon. Thanks for everybody.
1. Write a flow chart to organize a list of your DVD movies by Title
2.Write a flow chart to organize either
Your homework for a course by date or
Take 10-12 playing cards and order them by suit and value.
Same thing with the pseudo-code
1. Write a pseudo-code to organize a list of your DVD movies by Title.
2. Write a pseudo-code to organize either
Your homework for a course by date or
Take 10-12 playing cards and order them by suit and value.
|
|
|
Ayus
Please log in to subscribe to Ayus's postings.
Posted on 04-19-11 12:28
PM [Snapshot: 3853]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
@shivabhuti,
check sorting pseudo-codes in internet. Lots and lots of them.
Both refers to sorting so lots of them are in net. If you dont understand, post again.
|
|
|
shivabuti
Please log in to subscribe to shivabuti's postings.
Posted on 04-19-11 1:39
PM [Snapshot: 3872]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Thanks Ayus for your reply. If you could and have time, would you mind doing it for me? I am sorry to say that but it will be really really thankful to you. Thanks Again. I tried but I just do not get to work it.
|
|
|
zeran
Please log in to subscribe to zeran's postings.
Posted on 04-19-11 2:52
PM [Snapshot: 3887]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Ayus chota DR hood... lol
|
|
|
prankster
Please log in to subscribe to prankster's postings.
Posted on 04-19-11 3:05
PM [Snapshot: 3892]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
@shivabuti, can you paste or tell us here what you've tried?
|
|