473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Buttons and Java Frames

I am trying to open a java frame on the click of a button from a main java screen to enable a file to be written to it and edited. I can get the button to open notepad, but can't get it to open a frame. Can anyone help ??

Many thanks.

Annette
Oct 15 '07 #1
3 1861
JosAH
11,448 Expert 8TB
I am trying to open a java frame on the click of a button from a main java screen to enable a file to be written to it and edited. I can get the button to open notepad, but can't get it to open a frame. Can anyone help ??

Many thanks.

Annette
Why do you want to display that other JFrame then? You already opened notepad
that took care of the editing and all. What is that other JFrame supposed to do?

kind regards,

Jos
Oct 15 '07 #2
Why do you want to display that other JFrame then? You already opened notepad
that took care of the editing and all. What is that other JFrame supposed to do?

kind regards,

Jos
I am trying to open an existing document that is in a separate frame that can be copied, with a frame below that can be edited. Both are then appended to a file. So basically it will be two frames, one that a document gets opened into (uneditable) and one that can have text pasted into and then both appended to a file. I can't get notepad to do what I want it to do so was going to scrap Notepad and start again with Frames, but can't get a frame to work from the button?? Any help would really be appreciated. I may be overcomplicating this but am very new to Java and this project has to be in Java....!!

thanks.

Annette
Oct 15 '07 #3
r035198x
13,262 8TB
I am trying to open an existing document that is in a separate frame that can be copied, with a frame below that can be edited. Both are then appended to a file. So basically it will be two frames, one that a document gets opened into (uneditable) and one that can have text pasted into and then both appended to a file. I can't get notepad to do what I want it to do so was going to scrap Notepad and start again with Frames, but can't get a frame to work from the button?? Any help would really be appreciated. I may be overcomplicating this but am very new to Java and this project has to be in Java....!!

thanks.

Annette
Perhaps you should have a look at JTextComponents.
You can read all about it here.
Oct 16 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

198
by: Michael N. Christoff | last post by:
Java, the software developed by Sun Microsystems in the mid-1990s as a universal operating system for Internet applications, gave NASA a low-cost and easy-to-use option for running Spirit, the...
10
by: Dr. Mercury | last post by:
Greetings to all - Someone suggested that Java might be the answer for a little conversion program I need. It's pretty simple, really. Just take a column of numbers: 139 259 433 637
12
by: Stephen Remde | last post by:
is it possible to make vb.net apps have xp style buttons in xp? Stephen
7
by: Trvl Orm | last post by:
I am working with 2 frames, Left and Right and the main code is in the left frame, which has been attached. Can someone please help me with this code. I am new to JavaScript and can't figure it...
1
by: Neil Cherry | last post by:
What I'm basically trying to do is call a Java applet public method ( public void setInterval(int i) {...} ) from javascript in Firfox 1.0.7. I've not done this before but most of google agrees...
6
by: AJBopp | last post by:
I'm wrestling with CSS variations between Firefox and IE. I'm trying to create rollover buttons in a menu frame. It is working perfectly in Firefox but in IE only the first button is properly...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
by: harshavardhan | last post by:
Hi, here is the problem: Consider there are three frames in a HTML page. When I try to print these frames using java script, only the third document is being printed thrice. <HTML><HEAD> <script...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.