Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Swing-AWT swings window header
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


raveen
swings window header
1 Answer(s)      3 years and 3 months ago
Posted in : Swing AWT


i have a string1 it contains 3 parts,for example "123456 service hello" and string2 contains "change request " like this. and the string3 should contain "123456 "........." hello" ".........." can be whatever we give from string2,that should be displayed on the screen. i need logic for this program . i want to apply this to window header part. Thanks in advance


Advertisement
View Answers

September 20, 2011 at 4:09 PM


import java.awt.*;
import javax.swing.*;

class Header{
    public static void main(String []args){
      String st1="123456 service hello";
      String arr[]=st1.split(" ");
      String st2=JOptionPane.showInputDialog(null,"Enter string2: ");
      String st3=st1.replace(arr[1],st2);
      JFrame f=new JFrame(st3);
      f.setLayout(null);
      JLabel l=new JLabel(st3);
      l.setBounds(50,10,300,20);
      f.add(l);
      f.setSize(300,100);
      f.setVisible(true);
    }
}


Related Tutorials/Questions & Answers:
swings window header
swings window header  i have a string1 it contains 3 parts,for example "123456 service hello" and string2 contains "change request " like... for this program . i want to apply this to window header part. Thanks
swings header
. i need logic for this program . i want to apply this to window header part...swings header   have a string1 it contains 3 parts,for example "123456 service hello" and string2 contains text "change request " like
Advertisements
How to set the border in header and footer from login page using swings/awt
How to set the border in header and footer from login page using swings/awt  Hi, How to set the border in header and footer from login page using swings/awt
Window
Window  how to create an window of a person like regestration form
SWINGS
SWINGS  WHAT ARE THE DIFFERENCES BETWEEN AWT AND SWINGS
swings
need logic for this program . i want to apply this to window header part. Thanks
table header
table header  how set the header to the TableModel
header files
header files   do you have a all header files of java
header() in php
header() in php  hello, Use of header() in php?   hello, header() is used for redirect the page.if you want to redirect one page to another we can use
Header file
Header file  when we use, Scanner input=new Scanner(System.in); this statement in a java program,which header filemust be imported to the program?   Hi Friend, Import the package java.util.*; Thanks
window in center
window in center  if i run the programme thw window is in lie in top left corner i want a window open in center
php header syntax
php header syntax  What is the correct syntax of PHP Header
Window Blind
Window Blind  Custom built . Over 30 years of shutter experience. Free in-home consultations
Sliding window protocol
Sliding window protocol  Hello Everyone. Will anybody send me the code to make sliding window protocol animation using java swings. I have to do project with all types sliding protocols such as selectiverepeat,gobackN..etc. I
Chat window
the chat window pops up.. It is a div in the chat homepage.. There are few other... in the same application. I want to know how to retain the chat window (along..., the chat window should be constant across all pages in the application for current
http header content length
http header content length  How to check the request header content length in HTTP
window closing
window closing  hello, In my project i have login,logout and some jsp pages are there and each jsp page is using javascript and onunload script. and i need one solution that,when ever user trying to close browser window
Multi window
contains all the details. when i submit this page, a new window opens and asks to enter password. if password entered is correct, the flow goes to previous window
Window Script
Window Script  i want to write windows script can you help me in writing those i want to write script so that it follows below steps Step 1) downloading file from FTP 2) Unzip it 3) Edit it 4) zip it 5) upload again to FTP
alignment for header and footer
alignment for header and footer  header and footer alignment is not fit like footer is not fit in bottom some white space is there in jsf, what to do
E-Mail header extractor
E-Mail header extractor  i want to extract email header with using of java so please show the code of email extractor as result all the field show different color and or it extract ip where the email came
E-Mail header extractor
E-Mail header extractor  i want to extract email header with using of java so please show the code of email extractor as result all the field show different color and or it extract ip where the email came
PHP header IE - PHP
PHP header IE  I tried the given code in PHP which is working for firefox header('Content-type: '.$theMimeType); ob_clean(); // clean output buffer flush(); // flush output buffer readfile($thePath); exit
JSP & Swings
JSP & Swings  How to integrate jsp and swings
Resize Header in CSS
Resize Header in CSS  Hi all, Please let me know if we can resize the Header tags in HTML for example H1,H2 and so on... Actually, it looks very...;We can resize header tags in CSS .. and further call that class into you HTML
swings question
swings question  how to change the background color with the help of color values by using swings
swings for webnms
swings for webnms  if i am expanding node of jtree then i want to collapse previous expanding node of jtree in swings how is it possible
Removal of XML header
Removal of XML header  I need to retrieve a few records from the file at a time to generate xml.But each time while retrieving the records from the file, I dont want the XML header to appear again..How do I achieve this?What
regarding header files - Spring
regarding header files  i am working on linux platform. i a using spring framework 2.5.4.while comlinig the client program i.e from demo which given in tutorial. error is these two package does not exist import
active window means
active window means  active window means what?   The active window is the term used to describe the window that is currently being used
Header Tag:
Header Tag:       bean:header Tag... request header. This tag retrieve the value of the specified request header (may... scope attribute of type String or String[]. If no header with the specified
 

 

 

DMCA.com