Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Swing

0 votes
486 views
1 answer
    I am working on an application that involves the user requiring to hover over several moving dots on the screen ... a JComponent? Many thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
530 views
1 answer
    How do I display my "Click" objects in a JTable? ArrayList<Click> myClicks = new ArrayList<Click>(); Click ... docs are a little confusing). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
572 views
1 answer
    I know how to draw a rounded rectangle but I want to define roundness for each corner separately and draw something like the image below : See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
593 views
1 answer
    I unfortunately have to use multiple windows in this program and I don't think CardLayout is going to work because ... I might be doing wrong? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
666 views
1 answer
    I am trying to create a search feature in my program similar to google search bar, where when user is typing ... can show me some insight. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
460 views
1 answer
    I would like to be able to have three JPanels p1 p2 and p3, and have them lay out like so: I have been ... ; setTitle("Panel Window"); } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
578 views
1 answer
    I'm having some issues with my code to draw a Sierpinski's Triangle (or Sierpinski's Gasket), but I'm not ... ) { new SierpinskiGasket(); } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
486 views
1 answer
    I'm trying to set a documentFilter for my JTextArea. Having overriden the insert(...) method I admitted that it is ... new JTextArea(40, 40); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
445 views
1 answer
    Originally (See my previous question "Java how to make JFrames start off as a maximised window") I wanted to ... and cannot be restored down? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
523 views
1 answer
    What's the simplest way to desaturate a BufferedImage? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    i am doing a small Gui in java. i am using setBounds methods to set the position of buttons etc on my ... please help me in this small problem See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
576 views
1 answer
    I've written an app that custom draws everything inside paint() based on fixed pixel positions. Then I disabled resize ... , true); } } Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
640 views
1 answer
    I want to set the size of a JFrame such that the contentPane is the desired size. JFrame.setSize() doesn't ... it's managed. Ideas? Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
646 views
1 answer
    I have a JTable and its TableModel, it works well but what I want to do now is to get the selected cells ... exist. What should I do instead? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
775 views
1 answer
    setExtendedState(getExtendedState()|JFrame.MAXIMIZED_BOTH); setResizable(false); setUndecorated(true); System.out.println("-- ... frame's size. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
614 views
1 answer
    I've seen a couple of ways of doing theism they both seem to work but I'm just wondering if one is better ... ; Is one of these 'correct'? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
457 views
1 answer
    I am trying to render a java.text.AttributedString which is both bold and superscript. While it works to make ... frame.setVisible(true); } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
613 views
1 answer
    how to import a Text file content to a JTextArea in a Java application using JFileChooser? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
488 views
1 answer
    Can someone show me what I'm doing wrong? I was able to get drag and drop working with a regular panel but now ... (null); } }); } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
537 views
1 answer
    can any one tell me how to implement a standalone java client for playing FM radio. I searched over the net could ... is over, how to test it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
560 views
1 answer
    I've got a short question and I hope somebody can help me. Please look at the following code snippet: public ... in that position, do something. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
681 views
1 answer
    I am using JFrame to create my GUI for a desktop application. The size of the GUI I am setting according to ... . How do I achieve that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
554 views
1 answer
    wondered if anyone could point me in the right directon, i have developed a pong game and it needs double ... player2.drawPadel(dbg); } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
667 views
1 answer
    I'm using Java AWT to draw lines on a panel (Line2D and Graphics2D.drawLine()) and I'm wondering how I can draw ... it in Java is failing me. :) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
686 views
1 answer
    I've got one textField where I only accept numbers from the keyboard, but now I have to change it as it's a "price ... { e.consume(); } } }); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
815 views
1 answer
    I have this: JOptionPane.showMessageDialog(null, " " + company1 + " Has Higher A Market Value Than " + company2, ... . Any clues or hints? TIA! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
559 views
1 answer
    I've created an application using Swing with a text area (JTextArea). I want to create an "edit" menu, with ... I implement the cut/copy/paste? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
649 views
1 answer
    Does anyone know a way to open up an instance of the platform's (Windows/Linux/Mac) browser within a Swing ... libraries that do this? Anything? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...