473,407 Members | 2,315 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,407 software developers and data experts.

I need some sort of pop up window, but which one?!

94
Hi folks, I am wrapping up a project that has taken me two months to complete. The last obstacle I have to face is finding a way to print something out to the user.

I want this to be a pop up window of some kind (JoptionPane or something similiar). But here is the problem, the information displayed in this result set is not of a static nature. It is the results from a query I have made to my database (Access if that helps).

I am just not sure of a way to get my result set into a swing element (doesnt have to be swing but that is all I know as far as GUI stuff goes and i don't know it very well).

I am not looking for anything extremely complex, just a simple pop up window that displays the results of my query.


PS. the query results will be a series of strings ex. "Yahoo Incorporated"


Any nudges in the right direction are appreciated.
Nov 4 '07 #1
2 1304
Laharl
849 Expert 512MB
For a series of strings, a JOptionPane isn't probably the best idea, you might want to use a JScrollPanel on a JFrame to ensure you can view all of the strings.

A Canvas with a Graphics2D environment can work too, it's just (probably) a little more complicated, iirc.
Nov 5 '07 #2
dav3
94
For a series of strings, a JOptionPane isn't probably the best idea, you might want to use a JScrollPanel on a JFrame to ensure you can view all of the strings.

A Canvas with a Graphics2D environment can work too, it's just (probably) a little more complicated, iirc.

Thanks for the reply i messed around with a couple of things, but at this stage in the development of the project I think I am just going to output the results to a txt file (which actually works out better).
Nov 5 '07 #3

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

Similar topics

8
by: Johnny Knoxville | last post by:
I've added a favicon to my site (http://lazyape.filetap.com/) which works fine if you add the site to favourites the normal way, but I have some JavaScript code on a couple of pages with a link,...
2
by: Mike Button | last post by:
Hello all, I am really really desperate on what I should do, and I am asking for help from anyone in this newsgroup, here's the situation: I am creating a form that is being run on a server...
4
by: Nhmiller | last post by:
This is directly from Access' Help: "About designing a query When you open a query in Design view, or open a form, report, or datasheet and show the Advanced Filter/Sort window (Advanced...
4
by: Brie_Manakul | last post by:
I need to set up an if else to show different weather scripts based on the city selection they choose. Any help on this would be great. Thanks! <%@ page language="java" import="java.util.*,...
3
by: Simon L | last post by:
I'm creating a GUI which is a bitmap with active areas, so when I paint the dialog I calculate the rectangles containing objects. When I get a click event, I want to know which (if any) rectangle...
8
by: markww | last post by:
Hi, If I have a vector of structs like this: struct IMAGE { unsigned char *pPix; string strName; int nNumber; };
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
12
by: adamurbas | last post by:
ya so im pretty much a newb to this whole python thing... its pretty cool but i just started today and im already having trouble. i started to use a tutorial that i found somewhere and i followed...
3
by: 100grand | last post by:
Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price...
16
by: Man-wai Chang ToDie (33.6k) | last post by:
Is it possible to build a Visual C++ GUI program without using MFC, using VC++ 2008 Express Edition? Forget about the time and speed issue. -- @~@ Might, Courage, Vision, SINCERITY. / v \ ...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.