[Show all top banners]

Ayus
Replies to this thread:

More by Ayus
What people are reading
Subscribers
:: Subscribe
Back to: Computer/IT Refresh page to view new replies
 IT -- Solutions Center[Forum]

[Please view other pages to see the rest of the postings. Total posts: 182]
PAGE: <<  1 2 3 4 5 6 7 8 9 10 NEXT PAGE
[VIEWED 75983 TIMES]
SAVE! for ease of future access.
The postings in this thread span 10 pages, View Last 20 replies.
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 !!!!

 
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

 
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);
      }
    }
}


 
Posted on 04-14-11 3:24 PM     [Snapshot: 3545]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Thanks a lot Ayush!
 
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 &#39; but it does not seems to be working, also i tried using &apos;(though it is deprecated).

&#39; seems to work everywhere except for the alert box 

thanks in advance :)

 
Posted on 04-14-11 7:40 PM     [Snapshot: 3583]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 alert("nyshangal's");
 


 
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 
 
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?

 
Posted on 04-15-11 10:47 AM     [Snapshot: 3654]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

var test="this &#39;  is test";

alert(test.replace("&#39;", " ' "));

 
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&#39;un article ou d&#39;un sujet dans le champ de recher

there should be ' in place of &#39, 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...

 
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&#39;un article ou d&#39;un sujet dans le champ de recher
";

alert(test.replace("&#39;", " ' "));


 
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)

 
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!!!

 
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...:)

 
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.

 
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 

 
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.


 
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.


 
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.
 
Posted on 04-19-11 2:52 PM     [Snapshot: 3887]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Ayus chota DR hood... lol
 
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?
 



PAGE: <<  1 2 3 4 5 6 7 8 9 10 NEXT PAGE
Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 7 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
अमेरिकामा बस्ने प्राय जस्तो नेपालीहरु सबै मध्यम बर्गीय अथवा माथि (higher than middle class)
ढ्याउ गर्दा दसैँको खसी गनाउच
जाडो, बा र म……
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters