swings window header

Ads
 

swings window header

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

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

Ads









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
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
Window
Window  how to create an window of a person like regestration form
JSP & Swings
JSP & Swings  How to integrate jsp and swings
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
Swings & JSP
Swings & JSP  Hai all, Can we use Swing components in a JSP?? Suppose if we enter details in a swing dialog box..and If we want the result in a JSP..is that possible??? Thank you
table header
table header  how set the header to the TableModel
header files
header files   do you have a all header files of java
Java Swings
Java Swings  I am doing one project on java Swings, in this i have created one jframe where i defined some JButtons and Jcombobox's, here i need to insert one JTable with headers(IN CURRENT JFrame only).pls help me urgently
java swings
java swings  Hi, I need a sample code for once click the exit tab the frame window will be closed. Instead of button close i need tab close option.Please send the sample code immediately.......?Its very urgent........ Thanks
swings
swings
Swings and JDBC
Swings and JDBC  Hi.. I am vinay.. I am developing a small application using swings and mysql. I am sending part of the code here.. The problem is i need to update the mysql fields with values which are gettin from dynamiclly
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
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
Image Movement using Swings
Image Movement using Swings  How to move image using Swings
how to create frame in swings
how to create frame in swings  how to create frame in swings
Window Blind
Window Blind  Custom built . Over 30 years of shutter experience. Free in-home consultations
java code using swings
java code using swings  code that should be able to enter data of student details using all swings into the access database using jdbc connectivity
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 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
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
http header content length
http header content length  How to check the request header content length in HTTP
An application using swings and vector methods
An application using swings and vector methods   Hi, I want an application in Java swings which uses good selection of Vectors methods
ModuleNotFoundError: No module named 'header'
ModuleNotFoundError: No module named 'header'  Hi, My Python... 'header' How to remove the ModuleNotFoundError: No module named 'header'... to install padas library. You can install header python with following command
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
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

Ads