Stocks
Stock Tracker GUI Application in Java with Swing
Install / Use
/learn @CheetahCodes21/StocksREADME
Stocks
The code implements a simple stock tracker application with a graphical user interface (GUI) using Java's Swing library. The application allows users to enter the name of a stock and retrieve its corresponding price. It supports three predefined stocks: "AAPL" (Apple), "GOOG" (Google), and "TSLA" (Tesla).
When the program is executed, a window titled "Stock Tracker" is displayed. The user interface consists of a text field where the user can enter a stock name and a "Get Price" button to retrieve the stock's price.
When the user clicks the "Get Price" button, the entered stock name is retrieved from the text field. The code then searches for the stock name in the predefined stocks array. If a match is found, it displays a message dialog showing the corresponding price for that stock. If no match is found, it displays a "Stock not found" message.
Overall, the code provides a simple way for users to track the prices of specific stocks through a user-friendly GUI.
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
